Hiding a network interface.

Matt Domsch Matt_Domsch at dell.com
Thu Feb 14 16:53:12 UTC 2008

On Thu, Feb 14, 2008 at 08:41:49AM -0600, Styma, Robert E (Robert) wrote:
> For reasons which are long and complicated, I need
> to hide a NIC interface.  The test machine is a
> box with 2 Nic interfaces on the motherboard and
> a strange PCI card with 2 more interfaces.  They
> appear as eth0, eth1, eth2, and eth3.  I need
> to make eth3 not be there. (Not allowed to use
> a soldering iron :-)  ).
> On Solaris I can use "ifconfig unplumb eth3" and
> the device is gone.  ifconfig no longer shows it.
> Is there a way to do this in Fedora/linux.  I thought
> about modules.conf, but that would get rid of both
> nic interfaces since they use the same driver.

You want the driver core to unbind the device.  It's done something
like this (note bnx2 is an ethernet driver, substitute for your own):

echo "eth3" > /sys/bus/pci/drivers/bnx2/unbind


Matt Domsch
Linux Technology Strategist, Dell Office of the CTO
linux.dell.com & www.dell.com/linux

More information about the fedora-list mailing list