What I did was simply to change to ip address in /etc/hosts, and re-boot (on Solaris 2.5.1). The system should pick up the new IP and configure itself accordingly.
I'm sure others will disagree and I'm sure on the newer version of Solaris. You'll find a lengthy discussion on the subject here: thread60-31076
I did this a couple timees myself on different machines and it has worked each time. Just change the IP in /etc/hosts and reboot. For reference I cahnged the IPs on machines running Solaris 2.6 (Sun E3500, E3000 and a 1000).
You can also start from scratch.
To do it "live" look for your device in /etc/path_to_inst.
The interface will be either le0, hme0, glm0, or something along those lines. Then you can if you wish create entries in /etc/hosts and the hostname.Xe0 (the interface).
For example to make a 10/100 work type.
ifconfig hme0 plumb
ifconfig hme0 IPADDRESS NETMASK
ifconfig hme0 up
ifconfig -a should now show the working interface. Also see the man for route,resolv.conf,nsswitch.conf....
This will help you get up and running.
1) Run /usr/sbin/sys-unconfig ( This will take you through the first part of the Solaris install, system identification. Requires reboot. This is safe!
2) If /usr/sbin/ifconfig interface ipaddress ( This is immediate but will reset back when you reboot.)
3) assuming your interface is hme0, edit /etc/hostname.hme0 and insert the new IP address. ( reboot ).
As far as I am concerned #1 is the best way, but if you cannot afford to reboot first do #2 then #3. #3 will make sure the settings remian when you reboot next.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.