error fetching interface information: device not found
i have two servers installed with debian.
server 1 is my asterisk server server 2 is my vicidial server eth0 is working with private IP address eth1 is working with public IP address i cloned both server so i will have a backup. when i restored both servers for use and i tried changing IP on both NIC using ifconfig eth0:error fetching interface information: device not found eth1:error fetching interface information: device not found lo and behold! eth0 became eth2 eth1 became eth3 both are configured but asterisk clients could not log vicidal clients can though how can i resolve this? any help is depply appreciated. |
Quote:
-------------------- Steve Stites |
nope.i used acronis in cloning the HD.
|
Udev is associating devices names with MAC address in /etc/udev/rules.d/**-persistent-net.rules file (** are random numbers). You can set new rules which should look like :
Code:
SUBSYSTEM=="net", DRIVERS=="?*", ATTR{address}=="??:??:??:??:??:??", NAME="eth0" You can then delete the old rules and reload network. Hope it helps. |
can you expound more on it. am just a newbie and i really dunno how to do it. thanks in advance.
|
Sorry, since you were talking about two servers I assumed i could go for the short version !
So network cards are managed by a helper program called "udev". Udev is great because it can managed dynamically the removal/addition of hardware, but it's attributing names to devices in it's own kind of way. For network cards names need to be consistent from one boot to the next, so udev is associating the conventional interface name (eth*) to it's unique MAC address (MAC address is build inside the device itself). Those associations are stored in the folder /etc/udev/rules.d/ where you will find a "yx_persistent-net.rules" file ("yx" are random numbers, depends on your system). The "rules" udev use to name the devices are of the form : Code:
SUBSYSTEM=="net", DRIVERS=="?*", ATTR{address}=="xx:xx:xx:xx:xx:xx", NAME="eth0" All you need to do is reading your actual network card MAC address with : Code:
sudo /sbin/ifconfig -a You will need root privileges to edit the "yx_persistent-net.rules" file. Reboot when done (restarting the network should be enough though...) Hope it's more understandable this time ! ;) |
a million thanks!
thank you very much thiev! you been a good help!
|
Good it helped.
|
Very great solution.. thanks a lot
|
eth0; error fetching interface information
Had the same trouble after switching network cards on a original build 2.6.33 thinking i had a bad card. Checked /etc/udev/rules.d/ (my network rule file). The eth0 had been changed to eth5. Editing eth5 back to eth0 solved the problem.
|
All times are GMT -5. The time now is 10:39 AM. |