Operating System - HP-UX
1832993 Members
3966 Online
110048 Solutions
New Discussion

How to make changes to work in netconf without reboot?

 
Kenne
New Member

How to make changes to work in netconf without reboot?

If I change something in netconf-file, who do I
get the new values to work without to reboot the server. I tried with ifconfig lan0 down|up
but it doesn't work. Can someone help me with this?
2 REPLIES 2
Ivan Krastev
Honored Contributor

Re: How to make changes to work in netconf without reboot?

If you want to change ip addr, just use:

ifconfig ethX unplumb
/etc/init.d/net start

(second will reread netconf and will set parameters)

See man page for ifconfig.

regards,
ivan
Srinivas Thokala_1
Frequent Advisor

Re: How to make changes to work in netconf without reboot?


The simple way to refresh the lan is:
/sbin/init.d/net stop
/sbin/init.d/net start
But you need to connect through remote/local console, other wise you will lose connection.

Also you can try by using below commands.
#lanscan
# netstat â rn
#ifconfig lan4 to verify the lan status for up and running.
#ifconfig lan4 down ( to bring down lan4)
# unplumb lan4
# route â f ( flushing the default route)
NOTE: Caution, if you want to refresh default route.
#ifconfig lan4 up ( to bring up lan4)
# ifconfig lan4 inet 208.10.65.6 netmask 255.255.255.0
#route add net 10.214.32.126 gateway 10.214.34.255 (for public lan)
#ifconfig lan4 up ( to bring up lan4)
#ifconfig lan4 (to verify)

Srinivas

Srinivas Thokala