How to change a host's IP address in solaris?
-
This will be permanent across reboots.
If your system has Solaris 10 11/06 or an earlier release, change the IP address in /etc/inet/ipnodes:
# vi /etc/inet/ipnodes
Change the IP address in /etc/hosts:
# vi /etc/hosts
Change the IP address in /etc/hostname. i.e. /etc/hostname.bge0:
# vi /etc/hostname.bge0
Make sure you still have the correct values in /etc/defaultrouter and /etc/netmasks (change these values as necessary in your network has changed).
Reboot your system:
# reboot -- -r
© Lightnetics 2024