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 IamaSherpa 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 2

Status
Not open for further replies.

E3p0

Technical User
May 31, 2001
65
US
What do I need to do and where I need to go to change the IP address on our Enterprise 3500 running Solaris 2.7.
Thanks
Novice level answer please.
 
log in as root, edit the /etc/hosts file changing the address of the hostname in question..

example:
cat /etc/hosts
127.0.0.1 localhost
10.0.1.1 loghost
10.0.1.2 ftp.example.org mail.example.org

if you want to change IP to 10.0.1.3, simply change the IP listed in the /etc/hosts file, issue a reboot command, and on reboot it will be changed :)

-John
 
Hi,
If u r making IP changes in the same subnet then u can do so using ifconfig command:
ifconfig hme0 <new IP>[hme0 is the N/W interface]
However to make these changes permanent, edit the file /etc/hosts and replace old IP for the server with new one.
But if u r making changes in diff subnet then edit files:
/etc/hosts,/etc/defaultrouter,/etc/netmasks
In all these replace old values with new ones...

I hope this helps.....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top