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

Jhillsmo
Jhillsmo used Ask the Experts™
on
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.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Commented:
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.
Top Expert 2007

Commented:
you can update the file /etc/netmasks

please see:

http://oreilly.com/catalog/solaris8/chapter/ch04.html

Author

Commented:
followed docbert's advise and figured it out.

Author

Commented:
verty clear and concise

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial