Ubuntu Linux restart network

by Vivek Gite · 6 comments

Q. I’m new to Linux and installed Ubuntu Linux successfully on my HP Laptop. Now I need to restart my network. How do I restart network under Ubuntu Linux?

A. Ubuntu Linux comes with a script called networking ( Ubuntu restart network command)– it is use to activates or deactivates or restart all network interfaces (NIC) configured to start at boot time.

Ubuntu Linux restart network command

Open shell or terminal and type the command as follows:
$ sudo /etc/init.d/networking restart

You can this command on remote Ubuntu Linux server without any problem, but make sure you pass only restart option. This command also accepts start and stop options:

WARNING! These examples may stop remote networking service if executed. Always, use restart option over ssh session.

$ sudo /etc/init.d/networking start
$ sudo /etc/init.d/networking stop

Featured Articles:

Want to read Linux tips and tricks, but don't have time to check our blog everyday? Subscribe to our daily email newsletter to make sure you don't miss a single tip/tricks. Subscribe to our weekly newsletter here!

{ 6 comments… read them below or add one }

1 bayyou 02.27.08 at 1:59 am

Thanks for the tips, i already tried on my ubuntu ultimate 1.4 and working good. Thank you

2 Jezz 05.12.08 at 7:29 pm

Thanks for this tip it helped me loads. I am really grateful to people like yourself who bother to give up your time to help us newbies out. :)

3 Filype 03.06.09 at 12:31 am

Thanks a lot for the tip, it helped me heaps!!

4 syafiq 03.17.09 at 3:56 am

how to restart option over ssh?

5 Milind 07.29.09 at 1:57 pm

Ok, that works. But my network is not automatically started on reboot. I have to do it manually every time. How do I start it automatically every time I boot in the system.

6 Nasaboy 02.08.10 at 4:29 am

Milind, I had the same problem and tracked it down to: https://bugs.launchpad.net/ubuntu/+source/wpasupplicant/+bug/114310

The solution, for me, was to follow the workaround instructions on their page and modify the “/etc/rc.local” file to include the line “sh /etc/init.d/networking restart” just before “exit 0″.

Hope that helps.

Leave a Comment

You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Previous FAQ:

Next FAQ:

nixCraft FAQ PDF Collection Now Available To All