浙江省高等学校教师教育理论培训

微信搜索“毛凌志岗前心得”小程序

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

Ubuntu Linux restart network

Ubuntu Linux restart network

by Vivek Gite on June 20, 2007 · 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

posted on 2012-02-27 09:47  lexus  阅读(348)  评论(0编辑  收藏  举报