Question : change ip address, subnet mask and gateway in Unix Solaris 8?

have solaris 8 running on sun blade 100.  need to change tcp/ip config.  i edited /etc/hosts to new hme0, but don't see where to put subnet mask.

Answer : change ip address, subnet mask and gateway in Unix Solaris 8?

The best and cleanest solution is to run  "sys-unconfig".  This will clear out a number of settings such as network settings, and then reboot the system.

On reboot you will be prompted to enter the new network settings, including IP address/netmask/DNS servers/etc.  Alternatively it will give you the option to use DHCP is that's what you would prefer.

It is also possible to change the IP by manually editing a number of files on /etc, but I wouldn't recommend it - sys-unconfig is much easier and is guaranteed to update the right files for you.
Random Solutions  
 
programming4us programming4us