LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   eth0:device not found:why ? (https://www.linuxquestions.org/questions/debian-26/eth0-device-not-found-why-689751/)

jeya 12-11-2008 01:11 AM

eth0:device not found:why ?
 
hi ,i am running debian linux in vmware 2.0.4. when i try to up eth0 using ifconfig eth0 command it says eth0:device not found but if i type ifconfig alone configurations of eth3 is displayed?what is this meant to be?pls confirm soon

billymayday 12-11-2008 01:15 AM

VMWare has obviously assigned eth3 to this virtual machine. Just configure eth3 in place of eth0

jeya 12-11-2008 01:22 AM

thanks for reply,but where should i do the configuration.what do you mean by this.

billymayday 12-11-2008 01:25 AM

Are you running a GUI (in which case there will be a network tool you can use) or using the CLI (in which case use ifconfig)

AlucardZero 12-11-2008 10:08 AM

You mention using ifconfig, so just use eth3 instead of eth0.

jstephens84 12-11-2008 01:51 PM

Quote:

Originally Posted by jeya (Post 3371338)
hi ,i am running debian linux in vmware 2.0.4. when i try to up eth0 using ifconfig eth0 command it says eth0:device not found but if i type ifconfig alone configurations of eth3 is displayed?what is this meant to be?pls confirm soon

This can be caused by moving a vm image from one machine or another. Or sometimes weird things happen like that. If you could please post the following to help us out.

1. /etc/modules
2. /etc/network/interfaces
3. /etc/udev/rules.d/<file that has persistent-net.rules

that will give us a good start. Here we should be able to modifiy things to get you back to using eth0

aquaboot 12-11-2008 08:14 PM

Is there a free version of vmware? Not finding one...

-ab

jstephens84 12-11-2008 10:24 PM

look for vmware server. It is free and they do have a version for linux.

jeya 12-11-2008 10:35 PM

fwded the information
 
Quote:

Originally Posted by jstephens84 (Post 3372020)
This can be caused by moving a vm image from one machine or another. Or sometimes weird things happen like that. If you could please post the following to help us out.

1. /etc/modules
2. /etc/network/interfaces
3. /etc/udev/rules.d/<file that has persistent-net.rules

that will give us a good start. Here we should be able to modifiy things to get you back to using eth0

When I opened the first /etc/modules, I got the following information in the terminal /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.
I found there is nothing usefull with this information


i tried the next file /etc/network/interfaces

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
#allow-hotplug eth0
auto eth0
iface eth0-work inet dhcp
iface eth1 inet dhcp

iface eth3 inet static
address 192.168.1.200
netmask 255.255.255.0

auto eth3
this was the thing I got

finally, I opened /etc/udev/rules.d/
I found a file z25_persistent-net.rules
This was the result I got!


# This file was automatically generated by the /lib/udev/write_net_rules
# program, probably run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single line.
# MAC addresses must be written in lowercase.

# PCI device 0x1022:0x2000 (pcnet32)
SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:0c:29:75:4b:1e", NAME="eth0"

# PCI device 0x1022:0x2000 (pcnet32)
SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:0c:29:26:87:82", NAME="eth1"

# PCI device 0x1022:0x2000 (pcnet32)
SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:0c:29:30:6b:f1", NAME="eth2"

# PCI device 0x1022:0x2000 (pcnet32)
SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:0c:29:88:c2:aa", NAME="eth3"
their can be certain changes that has to be made in this file so as to convert eth3 to eth0
pls assist me in this regard

jstephens84 12-12-2008 12:57 AM

Well you can change the eth0 and eth3 in the udev file then save and do the same for the interfaces file then reboot and that should switch around everything.

jeya 12-12-2008 02:57 AM

Quote:

Originally Posted by jstephens84 (Post 3372604)
Well you can change the eth0 and eth3 in the udev file then save and do the same for the interfaces file then reboot and that should switch around everything.

i tried the same. as follows
in the /etc/network/interfaces

i changed eth3 to eth0 as follows
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
#allow-hotplug eth0
iface eth0-work inet dhcp
iface eth1 inet dhcp

# This file was automatically generated by the /lib/udev/write_net_rules
# program, probably run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single line.
# MAC addresses must be written in lowercase.

# PCI device 0x1022:0x2000 (pcnet32)
SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:0c:29:75:4b:1e", NAME="eth0"
# PCI device 0x1022:0x2000 (pcnet32)
SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:0c:29:26:87:82", NAME="eth1"
# PCI device 0x1022:0x2000 (pcnet32)
SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:0c:29:30:6b:f1", NAME="eth2"
# PCI device 0x1022:0x2000 (pcnet32)
SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:0c:29:88:c2:aa", NAME="eth3"
finally ,when i reboot the system in vmware,os says it is not able to read /etc/network/interfaces
but if i give ifconfig
it shows eth0 information alone
i am afraid ,whether i am aliasing eth3 as eth0.
kindly conclude

~
~
~

jstephens84 12-12-2008 08:23 AM

Quote:

Originally Posted by jeya (Post 3372712)
i tried the same. as follows
in the /etc/network/interfaces

i changed eth3 to eth0 as follows
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
#allow-hotplug eth0
iface eth0-work inet dhcp
iface eth1 inet dhcp

# This file was automatically generated by the /lib/udev/write_net_rules
# program, probably run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single line.
# MAC addresses must be written in lowercase.

# PCI device 0x1022:0x2000 (pcnet32)
SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:0c:29:75:4b:1e", NAME="eth0"
# PCI device 0x1022:0x2000 (pcnet32)
SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:0c:29:26:87:82", NAME="eth1"
# PCI device 0x1022:0x2000 (pcnet32)
SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:0c:29:30:6b:f1", NAME="eth2"
# PCI device 0x1022:0x2000 (pcnet32)
SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:0c:29:88:c2:aa", NAME="eth3"
finally ,when i reboot the system in vmware,os says it is not able to read /etc/network/interfaces
but if i give ifconfig
it shows eth0 information alone
i am afraid ,whether i am aliasing eth3 as eth0.
kindly conclude

~
~
~

In your earlier post you had eth3 setup with a Static IP. But it looks like you deleted the entry for the eth3 in your interfaces file.


All times are GMT -5. The time now is 02:21 AM.