Table of Content
interface not up
Sometimes interface not up in opensuse vmware guest after image moved or copied.
linux:~ # ifconfig -a eth3 Link encap:Ethernet HWaddr 00:0C:29:DA:FE:8F BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) Interrupt:10 Base address:0x1424
interface name mismatch
The reason could be interface name mismatch with file under network folder:
linux:~ # cd /etc/sysconfig/network linux:/etc/sysconfig/network # ls -ltr total 47 -rw-r--r-- 1 root root 239 Sep 9 2005 ifroute-lo -rw-r--r-- 1 root root 5779 Sep 9 2005 ifcfg.template -rw-r--r-- 1 root root 141 Sep 9 2005 ifcfg-lo drwxr-xr-x 2 root root 48 Sep 9 2005 if-down.d drwx------ 2 root root 48 Sep 9 2005 providers -rw-r--r-- 1 root root 5469 Feb 9 2007 wireless drwxr-xr-x 2 root root 1336 Feb 9 2007 scripts drwxr-xr-x 2 root root 88 Feb 9 2007 if-up.d -rw-r--r-- 1 root root 6707 Feb 9 2007 dhcp -rw-r--r-- 1 root root 6981 Feb 15 2007 config -rw-r--r-- 1 root root 209 Dec 11 2007 ifcfg-eth2 drwxr-xr-x 6 root root 352 Dec 20 2007 . drwxr-xr-x 7 root root 1544 Dec 20 2007 ..
bring up the interface
then we need to rename and bring up the interface manually:
linux:/etc/sysconfig/network # mv ifcfg-eth2 ifcfg-eth3 linux:/etc/sysconfig/network # ifup eth3 eth3 Starting DHCP Client Daemon on eth3... . . . . . IP/Netmask: 192.168.6.175 / 255.255.254.0 ('linux') linux:/etc/sysconfig/network # ifconfig -a eth3 Link encap:Ethernet HWaddr 00:0C:29:DA:FE:8F inet addr:192.168.6.175 Bcast:192.168.7.255 Mask:255.255.254.0 inet6 addr: fe80::20c:29ff:feda:fe8f/64 Scope:Link UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1 RX packets:267 errors:0 dropped:0 overruns:0 frame:0 TX packets:182 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:24366 (23.7 Kb) TX bytes:21452 (20.9 Kb) Interrupt:10 Base address:0x1424
verify network connectivity
Also you can verify network connectivity by:
linux:/etc/sysconfig/network # netstat -rn Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 192.168.6.0 0.0.0.0 255.255.254.0 U 0 0 0 eth3 linux:/etc/sysconfig/network # nslookup google.ca Server: 192.168.0.1 Address: 192.168.0.1#53 Non-authoritative answer: Name: google.ca Address: 74.125.95.106 Name: google.ca Address: 74.125.95.147 Name: google.ca Address: 74.125.95.99 Name: google.ca Address: 74.125.95.103 Name: google.ca Address: 74.125.95.104 Name: google.ca Address: 74.125.95.105