General discussion

Locked

Solaris 6,7

By ricni ·
How do you change the IP address on a NIC card while the server is up and make it PERMANENT?? Note: I tried ifconfig, etc/hosts,etc/inet/hosts (hard link to etc/host) but when the server reboots it goes back to the original configuration.. The only thing that works is the sys-unconfig but this is unacceptable.. Thanks

This conversation is currently closed to new comments.

5 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Solaris 6,7

by annaxleung In reply to Solaris 6,7

you also have to edit the etc/hostname.leo and put in the name of your new hostname and remove the old hostname. also change the /etc/nodename file if it exists and put the name of the new hostname and delete the old hostname. then reboot like this
#sync
#sync
#reboot

Collapse -

Solaris 6,7

by ricni In reply to Solaris 6,7

I tried this it does not even work..And
the #reboot is wrong.. I dont want to reboot... but this is really a good attempt..Thanks

Collapse -

Solaris 6,7

by rkeckler2000 In reply to Solaris 6,7

You must use the unplumb and plumb with the ifconfig to reset the ip address.
ifconfig le0 down
ifconfig le0 unplumb
ifconfig le0 198.162.1.1 netmask 255.255.255.0 plumb
ifconfig le0 up

If you are changing the netmasks, make sure you edit theetc/netmask file

Collapse -

Solaris 6,7

by ricni In reply to Solaris 6,7

This is highly acceptable... believe me I have spoken to numerous UNIX GURUs who
could not give me an acceptable answer...I have always seen the plumb but never really investigate it..Until I tested it a couple minutes ago... Thanks now I can manage new IP for my users web sites without rebooting..

Collapse -

Solaris 6,7

by ricni In reply to Solaris 6,7

This question was closed by the author

Back to Linux Forum
5 total posts (Page 1 of 1)  

Related Discussions

Related Forums