Go Back   TechArena Community > Technology > Networking & Security
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



Change IP Address on Solaris 10

Networking & Security


Reply
 
Thread Tools Search this Thread
  #1  
Old 19-06-2009
Member
 
Join Date: May 2008
Posts: 97
Change IP Address on Solaris 10
  

Hello!

How can I run on Solaris 10, the IP address change?

I found/etc/hostname. "interface" (as is the interface name in it) then in /etc/hosts file under this name, the IP address change.

Is it accurate or is there any other way under Solaris 10?


Thank you,

Reply With Quote
  #2  
Old 19-06-2009
Member
 
Join Date: May 2008
Posts: 209
Re: Change IP Address on Solaris 10

You can change the IP Address by using ifconfig command.

Code:
ifconfig xl0 inet 192.168.1.1 netmask 255.255.255.0 broadcast 192.168.1.255
To change the IP in the hosts file :

Code:
vi /etc/hosts
To change the IP address :

Quote:
IP - /etc/hosts
Netmask - /etc/netmasks
Gateway - /etc/defaultrouter
IP (again) - /etc/inet/ipnodes
DNS Servers - /etc/resolv.conf
This will resolve your problem.
Reply With Quote
  #3  
Old 19-06-2009
Member
 
Join Date: Dec 2007
Posts: 493
Re: Change IP Address on Solaris 10

To change change IP Address without reboot :

1. Edit ->
Code:
/etc/hosts and  /etc/inet/ipnodes files
2. Restart network :

Code:
# svcadm restart network/physical
3. To ensure that IP address has been changed,

Code:
/etc/netmasks
Reply With Quote
  #4  
Old 19-06-2009
Member
 
Join Date: May 2008
Posts: 335
Re: Change IP Address on Solaris 10

Quote:
Originally Posted by comodo View Post
To change change IP Address without reboot :

1. Edit ->
Code:
/etc/hosts and  /etc/inet/ipnodes files
2. Restart network :

Code:
# svcadm restart network/physical
3. To ensure that IP address has been changed,

Code:
/etc/netmasks
Note : If you are not using IPV6 just removing the ipnodes file will cause the hosts file to assume it's previous function in setting the IP address.
Reply With Quote
Reply

  TechArena Community > Technology > Networking & Security
Tags: ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Change IP Address on Solaris 10"
Thread Thread Starter Forum Replies Last Post
How can I change my IP address? Panchu Networking & Security 3 20-11-2009 09:51 PM
Change ip address from 10.0.2.14 to 192.168.X.X dalsandhu Networking & Security 3 09-10-2009 03:06 PM
How can i change the hostname on Solaris Xylina Networking & Security 3 18-08-2009 10:05 PM
How to change WAN IP address? Rugby Networking & Security 3 13-01-2009 05:33 PM
Change IP address from cmd Octavio Networking & Security 3 07-01-2009 02:16 PM


All times are GMT +5.5. The time now is 09:24 AM.