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
You should follow me on twitter here or grab rss feed to keep track of new changes.
Featured Articles:
- 30 Handy Bash Shell Aliases For Linux / Unix / Mac OS X
- Top 30 Nmap Command Examples For Sys/Network Admins
- 25 PHP Security Best Practices For Sys Admins
- 20 Linux System Monitoring Tools Every SysAdmin Should Know
- 20 Linux Server Hardening Security Tips
- Linux: 20 Iptables Examples For New SysAdmins
- Top 20 OpenSSH Server Best Security Practices
- Top 20 Nginx WebServer Best Security Practices
- 20 Examples: Make Sure Unix / Linux Configuration Files Are Free From Syntax Errors
- 15 Greatest Open Source Terminal Applications Of 2012

- My 10 UNIX Command Line Mistakes
- Top 10 Open Source Web-Based Project Management Software
- Top 5 Email Client For Linux, Mac OS X, and Windows Users
- The Novice Guide To Buying A Linux Laptop













{ 9 comments… read them below or add one }
Thanks for the tips, i already tried on my ubuntu ultimate 1.4 and working good. Thank you
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. :)
Thanks a lot for the tip, it helped me heaps!!
how to restart option over ssh?
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.
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.
I get the following message:
* Running /etc/init.d/networking restart is deprecated because it may not enable again some interfaces
Is there any alternative to do the same remotely ?
#sudo service networking {restart/stop/start}
haha, stopt networking via ssh. ten minues i had to realize there can’t be any chance of a ping :D