cat /etc/sysconfig/network
it will shows like this:
NETMASK=255.255.255.192
NETWORKING=yes
DHCP_HOSTNAME=server1
IPADDR=10.110.205.2
HOSTNAME=localhost
to change configuration you can use vi text editor
vi /etc/sysconfig/network
type this some important command.
i - to insert character
esc - to return into command mode
:w - save
:q - quit
then restart your network setting by using this command
service network restart
done! now your machine ip is configured correctly.
No comments:
Post a Comment