Anyone knows which files I need to amend if I wish to change the IP address of a Solaris machine. As I know the hosts, netmasks under /etc. Any other files?? Pls help.
Solaris IP can be changed using the follow commands:
(must be root)
#ifconfig -a "(displays your nic type & other info)"
#ifconfig nic-name ip-number netmask you-net-mask
#ifconfig nic-name plumb
Example for an Intel machine with 3com nic:
#ifconfig -a
#ifconfig elxl0 10.0.0.1 netmask 255.0.0.0
#ifconfig elxl0 plumb
This is in addition to updating your /etc/ files.
goodluck.
Well, with bkonline's tip, the IP can very well be changed.. But the UP changes must be applied in /etc/hosts otherwise changes will be gone after the reboot.
Regds,
- Hemant
Networking and Systems Integration Group
Satyam Computer Services Ltd
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.