Re: [SLUG] Too many ethx ports
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-ethXfiles. 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
RE: [SLUG] Too many ethx ports
Apologies for top posting - this web based client does not accommodate proper indenting. Gerald, I am pretty sure you are using PCLOS or Mandriva with KDE. You should be able to go to /etc/sysconfig/network-scripts and remove the files of the form ifcfg-ethX. When done, use MCC -> Network & Internet to set up your network again using (now) the only available network card eth0. If have tested this and it works Regards, Rick Original Message: - From: Gerald [EMAIL PROTECTED] Date: Thu, 18 Sep 2008 07:14:43 +1000 To: slug@slug.org.au Subject: [SLUG] Too many ethx ports 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 -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html mail2web.com – Enhanced email for the mobile individual based on Microsoft® Exchange - http://link.mail2web.com/Personal/EnhancedEmail -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] Too many ethx ports
Dean Hamstead wrote: > what distribution are you running And what GUI, KDE or GNOME? Erik -- - Erik de Castro Lopo - "Using Java as a general purpose application development language is like going big game hunting armed with Nerf weapons." -- Author Unknown -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] Too many ethx ports
what distribution are you running 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 -- 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