Login to your server (preferrably via console or SSH) and switch to the root user
#vi /etc/sysconfig/network-scripts/ifcfg-eth0

Now modify the configuration by using the "i" command to insert information. When you are done updating the file, hit "ESC" and save the settings with ":w" and exit out with ":x". The file has now been modified, but the changes have not been loaded yet. Next we want to change the host name and the default gateway of the machine. From the root prompt type the following:
[root@localhost ~]# service network restart
Shutting down interface eth0: [ OK ]
Shutting down loopback interface: [ OK ]
Setting network parameters: [ OK ]
Bringing up loopback interface: [ OK ]
Bringing up interface eth0: [ OK ]
| How to check CPU information on Linux< Prev | Next >How To Configure Dynamic DNS |
|---|


