Showing posts with label hostname. Show all posts
Showing posts with label hostname. Show all posts

Sunday, January 13, 2008

How to verify the applied settings in Linux

To verify the settings or changes in the configuration, you can use the following commands

->ifconfig - to verify the IP address
->route -n to verify the default route
->netstat -nr to verify the default route
->cat /etc/resolv.conf to verify the DNS settings
->hostname to verify the computer hostname

How to apply the new settings in Linux

To apply the configuration that has been done, you must run the following:

For Redhat/Mandrake

#service network restart
or
#/etc/rc.d/init.d/network [startstoprestart]

For debian/Debian based Linux

#/etc/init.d/networking[startstoprestart]

For Hostname settings take effect, restart the whole operating system.

How to configure Gateway and Hostname in Redhat and Mandrake

Edit and save the the file using linux editor

location: /etc/sysconfig/network

Value:

Networking=YES
Hostname=redhatenterprise
Gateway=192.168.0.254