For When You Can't Have The Real Thing
[ start | index | login ]
start > CentOS > 7 > Start Interface With No IP Address

Start Interface With No IP Address

Created by dave. Last edited by dave, 30 days ago. Viewed 37 times. #1
[edit] [rdf]
labels
attachments
(2018-06-19)

Problem

I want a network interface on my CentOS 7 system to start at boot time but I don't want it to have an IP address.

Solution

Define the interface with a static IP, then edit /etc/sysconfig/network-scripts/ifcfg-$INTERFACE and comment out the IPADDR and PREFIX values. Reboot and you are good to go.

Why?

Well in this case it's because the machine is going to host a whack of VMs on this interface and the host doesn't need to talk out of it as it has other interface(s) to do that with. In the past I've wanted to do this to run fprobe or a similar network sniffer program.

no comments | post comment
This is a collection of techical information, much of it learned the hard way. Consider it a lab book or a /info directory. I doubt much of it will be of use to anyone else.

Useful:


snipsnap.org | Copyright 2000-2002 Matthias L. Jugel and Stephan J. Schmidt