In Ubuntu there was inbuilt command whose job is to network card reconfiguration. Lets see the syntax
jay@server:~$ sudo /etc/init.d/networking restart
****OutPut****
[sudo] password for jay:
* Running /etc/init.d/networking restart is deprecated because it may not enable again some interfaces
* Reconfiguring network interfaces... ssh stop/waiting
ssh start/running, process 1818
[ OK ]
This Ubuntu script will start and stop all network interface (NIC) at once.
Alternative
jay@server:~$ sudo ifconfig eth0 down
(replace eth0 with your ethernet number)
wait for ethernet down.
jay@server:~$ sudo ifconfig eth0 up
[sudo] password for jay:
Comments
Post a Comment