SLUG Mailing List Archives
Re: [SLUG] Too many ethx ports
- To: "Dean Hamstead" <dean@xxxxxxxxxxxxxxx>
- Subject: Re: [SLUG] Too many ethx ports
- From: "R.G.Salisbury" <rgsalisbury@xxxxxxxxxxxxxx>
- Date: Thu, 18 Sep 2008 16:46:09 +1000
- Cc: SLUG <slug@xxxxxxxxxxx>
How can I get rid of eth1,eth2,and just keep eth0. with no
the other ports?
The system is very confused and will not send/receive email with
network ports. The reason for the number of ports is because I
tried a wireless
when the on board 1GB network failed that was eth0, then the
becane eth1 the next trail wan a 1GB Intel network card that
Now I want to get rid of eth0,eth1,eth2 then have eth0 only.
The question is HOW?
Many thanks in advance
a few pointers that have worked for me.
hardware detection is heavily influenced by
2/ existing devices detected ( in redhat
3/ whether the existing devices are bound to the MAC address
4/ the order the kernel detection software sees the motherboard slots
Often to fix up the mess you can find yourself in :
Start afresh is often a good choice.............when hardware gets replaced,
This is a redhat solution but the logic applies to othe OSs
a/ delete all aliased NIC entries in /etc/modprobe.conf
b/ remove all /etc/sysconfig/network-scripts/ifcfg-ethX files.
Also remove any static routing files
c/ remove harware detection file ( in redhat ..../etc/sysconfig/hwconf )
d/ power down remove all Nics temporarily.
e/ power up with no NICS & test that no networking services tries to
reference any nics. ( if so the profile ..../etc/sysconfig/network
directory may need to be removed)
f/ power down ; add 1 NIC ; powerup and
/etc/sysconfig/network-scripts/ifcfg-eth0 is hopefully created.
Also an entry in /etc/modprobe.conf may now be aliasing to that NIC.
Nic should be seen in /etc/sysconfig/hwconf also
g/ find the MAC address of the card ( ifconfig |grep
Bind found MAC address to that nic in
#EG add 1 line as follows
That binding of the MAC to the device ethX will prevent it from being
renamed if more are added or removed.
Test with :
ifdown eth0 ; if up eth0 ; ifconfig eth0
Power down , add additional NICs following the same logic to bind the MAC
to the device.
NOW the kernel will not reorder or rename them when you mess with your