Discussion Locked

Solaris 6,7

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
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

5 replies

by annaxleung

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

by ricni

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

by rkeckler2000

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

by ricni

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..

This discussion is closed to new replies.