From: Stephen Powell on 29 Mar 2010 11:00 On Mon, 29 Mar 2010 08:17:53 -0400 (EDT), Roman Gelfand wrote: > On Fri, Mar 26, 2010 at 10:55 AM, Stephen Powell wrote: >> On Thu, 25 Mar 2010 23:16:59 -0400 (EDT), Roman Gelfand wrote: >>> >>> My server has two onboard nics. Â I am using etho. Â For the longest >>> time it was working no problem. Â Then it just lost network >>> connectivity. Â Â When running ifconfig I get RX packets:0. >>> >>> Would any one know a way to fix it? Â I had similar problem with >>> centos. Â The solution there was to assign eth1 device to alias eth0. >> >> Each network adapter (I assume they are both ethernet) has a >> MAC (Media Access Control) address built-in to it. Â This MAC >> address is assigned by the manufacturer when the board is made, and >> is unique to that physical board. Â Another board of that same identical >> make and model will have a different MAC address. Â Linux uses this MAC >> address to uniquely identify Ethernet adapters. Â udev creates rules to >> determine which MAC address to assign to eth0, which MAC address to assign >> to eth1, etc. Â These rules are stored in directory /etc/udev/rules.d. >> The exact name of the file to look at is dependent on the machine >> architecture and which release of udev you have, but >> "persistent-net" is the key phrase to look for. Â On my Debian Lenny >> machine for the i386 architecture, the file is called >> 70-persistent-net.rules. >> >> Typically, this type of problem happens >> when one of the ethernet adapters is replaced. Â In the case of an >> ethernet adapter built-in to the motherboard, that would mean >> that the motherboard gets replaced. Â Or sometimes it happens >> as the result of moving a hard drive from one computer to another, >> which, as viewed by the operating system stored on that hard drive, >> means that the NICs changed. Â In the case of a stand-alone NIC >> you can move the old NIC to the new machine, but in the case of >> a NIC built-in to the motherboard, you would need to swap motherboards >> to keep the MAC address the same, and most people don't do that. >> >> In any event, the solution is to edit that file >> (/etc/udev/rules.d/70-persistent-net.rules) and change the MAC >> addresses in that file according to which one you want to be eth0 >> and which one you want to be eth1. Â In the case of a computer >> with only one network connection, I usually advise people to erase >> that file, it which case it will be regenerated at the next boot >> with eth0 assigned to the one and only MAC address. Â But in the >> case of multiple adapters, I advise people to edit the file. >> >> Â ifconfig -a >> >> will show you the MAC addresses of the cards currently present >> in the machine (look for "HWaddr"). Â Compare that to the MAC >> addresses in /etc/udev/rules.d/70-persistent-net.rules. Â From >> that you should be able to figure out which MAC address belongs >> to the old card that is no longer installed and which "device" >> it used to be. Â Change the entry for the new card to match that >> device name and delete the entry for the old MAC address. Â Then, >> shutdown and reboot. >> > > Thanks you. That has worked great for me. You're welcome. I'm glad you got it working. -- .''`. Stephen Powell <zlinuxman(a)wowway.com> : :' : `. `'` `- -- To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org Archive: http://lists.debian.org/463160059.66141269874354744.JavaMail.root(a)md01.wow.synacor.com
|
Pages: 1 Prev: (no subject) Next: Help for non-Debian distributions (was How to read log files) |