Originally Posted by
TheFu
You need to put those loopback lines back in. That is an important internal interface used by all sorts of program that need to communicate between each other inside the machine. ADD, not REPLACE.
Sorry, I have put them back. Thanks a lot.
I'd check that eth0 is being assigned during boot and that the /etc/udev/r*/*net* file has the MAC of the NIC assigned to eth0 too. If not, you probably want to reinstall the
udev package.
Please have a look at the code below on my pc.
Code:
root@ubuntu:~# cat /etc/udev/rules.d/70-persistent-net.rules
# This file was automatically generated by the /lib/udev/write_net_rules
# program, run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single
# line, and change only the value of the NAME= key.
# PCI device 0x1969:/sys/devices/pci0000:00/0000:00:1c.2/0000:02:00.0 (atl1c)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="50:e5:49:49:91:76", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
root@ubuntu:~#
root@ubuntu:~# ifconfig
eth0 Link encap:Ethernet HWaddr 50:e5:49:49:91:76
inet addr:192.168.0.101 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::52e5:49ff:fe49:9176/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1222 errors:0 dropped:0 overruns:0 frame:0
TX packets:1212 errors:0 dropped:0 overruns:0 carrier:1
collisions:0 txqueuelen:1000
RX bytes:1171922 (1.1 MB) TX bytes:180365 (180.3 KB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:2 errors:0 dropped:0 overruns:0 frame:0
TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:100 (100.0 B) TX bytes:100 (100.0 B)
root@ubuntu:~#
Bookmarks