Re: Hiding a network interface.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Thanks,
Matt

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


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux