Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change IP address

Status
Not open for further replies.

jlmk

MIS
Feb 1, 2001
12
HK
Dear all,

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.
 
Following are the files u need to change the IP:
/etc/hosts
/etc/netmasks

U can change the IP of Solaris while its running by using ifconfig command as well. No need to boot the machine for the same.

Regds,

- Hemant
Networking and Systems Integration Group
Satyam Computer Services Ltd
 
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top