/etc/sysconfig/network
/etc/sysconfig/network-
Then reboot.
or-
Use sysctl to change the hostname
Use:
sysctl kernel.hostname
to read the current hostname, and
sysctl kernel.hostname=NEW_HOSTNAME
to change it.
CHAGING IP ADDRESS IN LINUX.
vi /etc/sysconfig/network-
vi /etc/sysconfig/network
And restart the interfaces...
/etc/init.d/network restart
Try /sbin/setup or /usr/sbin/setup
or edit /etc/network/interfaces
No comments:
Post a Comment