bash# /etc/rc.d/init.d/network restart Shutting down interface eth0: [ OK ] Setting network parameters: [ OK ] Bringing up interface lo: [ OK ] Bringing up interface eth0: [ OK ]
If everything says OK then you should have an IP address. To see the IP address, type:
bash# ifconfig eth0 Link encap:Ethernet HWaddr 01:23:45:67:89:AB inet addr:1.2.3.4 Bcast:1.2.3.255 Mask:255.255.255.0 IPX/Ethernet 802.2 addr:CD956500:00C0F0407A8B UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:1920018 errors:0 dropped:0 overruns:0 frame:0 TX packets:349874 errors:5 dropped:0 overruns:0 carrier:5 collisions:0 txqueuelen:100 Interrupt:11 Base address:0x1000 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:23510 errors:0 dropped:0 overruns:0 frame:0 TX packets:23510 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0
In this example the IP address is 1.2.3.4. If you still do not have an IP address you can try to configure a static IP address using linuxconf, netconf, netcfg, or netconfig.