I am trying to change the IP address in Solaris, but am failing to do so.
The IP address needs to be a fixed number, like 10.0.11.10
I have tried changing the IP address in /etc/hosts which I changed the hostname and the IP address, but when I try ping the computer name, it says:
Ping request could not find host SolarisTest. Please check the name and try again.
I have done what they told me to try on this site. But still stuck.
They say to do this: "If using Solaris 9 or above, users may need to edit the IP address in /etc/inet/ipnodes" which I did, and the file looks exactly the same as the /etc/hosts/ file. I already changed the IP address in the /etc/hosts/ file.
- Please can someone show me how to change the IP address on Solaris 11?
Edit
I have tried ifconfig -a and it showed me the old IP address 10.0.10.80 and I changed /etc/hosts/ to show 10.0.11.10 - so I have no idea why it is always changing.
2nd Edit
This link also shows stuff about how to change the IP address, as I have tried that as well, and also got nowhere.
/etc/hostsis only for host name resolution (like DNS). It has no bearing on what IP addresses are affected to local interfaces. – Mat Aug 2 '12 at 10:26sudo #ifconfig hme0 10.0.11.10 netmask 255.0.0.0 upand it still didn't work. In fact it showed this error:ifconfig: could not create address: No such interface- Does that mean that the interface is wrong? What is the interface? – Kevdog777 Aug 2 '12 at 10:29