Dean

Gerald wrote:
Hi Guy's,
        How can I get rid of eth1,eth2,and just keep eth0. with no
        references to
        the other ports?
        The system is very confused and will not send/receive email with
        all the
network ports. The reason for the number of ports is because I tried a wireless
        network
        when the on board 1GB network failed that was eth0, then the
        wireless
        becane eth1 the next trail wan a 1GB Intel network card that
        became
        eth2.
        Now I want to get rid of eth0,eth1,eth2 then have eth0 only.
        The question is HOW?
        Many thanks in advance
        Gezza





FYI
a few pointers that have worked for me.



hardware detection is heavily influenced by

1/  /etc/modprobe.conf
2/ existing devices detected ( in redhat ..../etc/sysconfig/network-scripts/ifcfg-ethX )
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, moved etc......

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 (..../etc/sysconfig/network-scripts/route-ethX
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 /etc/sysconfig/network-scripts/ifcfg-eth0
#EG  add 1 line as follows
HWADDR=ab:cd:ef:gh:xx:xx
as apprporiate

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 system.








--
http://fragfest.com.au



--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to