Changing IP but not visible in ifconfig
Hi Friends,
I have installed SuSE Linux Enterprise server 10 on VM Ware workstation. I have changed ip, so that i can access it via my host machine. but IP changes are not reflected in ifconfig output. ----- testmachine:~ # ifconfig lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:62 errors:0 dropped:0 overruns:0 frame:0 TX packets:62 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:4128 (4.0 Kb) TX bytes:4128 (4.0 Kb) testmachine:~ # cd /etc/sysconfig/network testmachine:/etc/sysconfig/network # ls -ltr total 65 drwx------ 2 root root 48 May 3 2007 providers -rw-r--r-- 1 root root 239 May 4 2007 ifroute-lo -rw-r--r-- 1 root root 27470 May 4 2007 ifcfg.template drwxr-xr-x 2 root root 208 Nov 28 2012 ifservices.template drwxr-xr-x 2 root root 1272 Nov 28 2012 scripts drwxr-xr-x 2 root root 88 Nov 28 2012 if-up.d drwxr-xr-x 2 root root 88 Nov 28 2012 if-down.d -rw-r--r-- 1 root root 6736 Jan 18 16:20 dhcp -rw-r--r-- 1 root root 24 Jan 18 17:02 routes.YaST2save -rw-r--r-- 1 root root 283 Jan 18 17:02 ifcfg-eth-id-00:0c:29:bb:a9:3f -rw-r--r-- 1 root root 141 Jan 18 17:04 ifcfg-lo -rw-r--r-- 1 root root 9254 Jan 18 17:05 config testmachine:/etc/sysconfig/network # cat ifcfg-eth-id-00:0c:29:bb:a9:3f BOOTPROTO='static' BROADCAST='' ETHTOOL_OPTIONS='' IPADDR='192.168.0.10' MTU='' NAME='VMWare 82545EM Gigabit Ethernet Controller (Copper)' NETMASK='255.255.255.0' NETWORK='' REMOTE_IPADDR='' STARTMODE='auto' UNIQUE='rBUF.5dU8kR7eh2C' USERCONTROL='no' _nm_name='bus-pci-0000:02:01.0' testmachine:/etc/sysconfig/network # service network restart Shutting down network interfaces: eth1 device: Intel Corporation 82545EM Gigabit Ethernet Controller (Copper) (rev 01) No configuration found for eth1 Nevertheless the interface will be shut down. done Shutting down service network . . . . . . . . . . . . . done Hint: you may set mandatory devices in /etc/sysconfig/network/config Setting up network interfaces: lo lo IP address: 127.0.0.1/8 done eth1 device: Intel Corporation 82545EM Gigabit Ethernet Controller (Copper) (rev 01) No configuration found for eth1 unused Setting up service network . . . . . . . . . . . . . . done testmachine:/etc/sysconfig/network # ifconfig lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:72 errors:0 dropped:0 overruns:0 frame:0 TX packets:72 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:4780 (4.6 Kb) TX bytes:4780 (4.6 Kb) testmachine:/etc/sysconfig/network # ----- Please help me on this!! Regards Umesh |
Quote:
In this case you don't have a "/etc/sysconfig/network/ifcfg-eth1" configuration file as in Code:
cp /etc/sysconfig/network/ifcfg-eth-id-00:0c:29:bb:a9:3f /etc/sysconfig/network/ifcfg-eth1 |
thanks mate.. That worked..
Regards Umesh |
All times are GMT -5. The time now is 04:00 AM. |