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..
by ricni
This discussion is closed to new replies.
Trending Linux posts
Sort by Trending