Operating System - HP-UX
1833570 Members
3582 Online
110061 Solutions
New Discussion

To restart network without reboot?

 
SOLVED
Go to solution
leereg_4
Advisor

To restart network without reboot?

How to restart the network without reboot if the IP address changed?
How many services can be restart like this and what they are?
Always UNIX
5 REPLIES 5
Varghese Mathew
Trusted Contributor
Solution

Re: To restart network without reboot?

Hi,

In case you want to stop and then restart the network services, you can do that using the command,
# /sbin/init.d/net stop

will stop all the running network services, so you need to have the console access or say, do it from the console.

then
# /sbin/init.d/net.start

will start all the network services ...

Cheers !!!
Mathew
Cheers !!!
Shahul
Esteemed Contributor

Re: To restart network without reboot?


Hi

To restart the network

#cd /sbin/rc2.d
#./S*net stop
#./S*net start

Best of luck

Shahul
KapilRaj
Honored Contributor

Re: To restart network without reboot?

Hi leereg,

I do not recommend just stopping network services . The best way is to goto runlevel 1. this can be achieved by

#init 1
#init 3

Good luck,

kaps
Nothing is impossible
Ravi_8
Honored Contributor

Re: To restart network without reboot?

Hi,
#lanscan
make sure which lan is up (lan0,lan1,lan2..)
#ifconfig lan0/lan1/lan2 down
#ifconfig lan0/lan1/lan2 up

never give up
Bill Hassell
Honored Contributor

Re: To restart network without reboot?

This is probably obvious, but do not stop and start the network unless you are on the console. As you might expect, stopping the network services will disconnect everyone including root. Then you'll have to go to the real console.


Bill Hassell, sysadmin