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,
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 :
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.
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,
Re: Change IP Address on Solaris 10
Quote:
Originally Posted by
comodo
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,
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.