zoukankan      html  css  js  c++  java
  • Linux_Networking_restart network on Ubuntu

    The following commands will assist you with network restart procedure on Ubuntu 16.04 Xenial Xerus Linux. We will start with the most recommended commands and move down to more obscure or obsolete commands in case the above commands will fail from some reason. Let's begin with system and service manager by using systemctl command to restart network service:

    $ sudo  systemctl restart NetworkManager.service
    

    Next command service will restart a relevant networking System V init script:

    $ sudo service network-manager restart
    

    The following command nmcli is a command-line tool for controlling NetworkManager which will restart the Network Manager directly:

    $ sudo nmcli networking off
    $ sudo nmcli networking on
    

    The old fashion way using System V init scripts directly is still available on Ubuntu 16.04 Xenial Xerus Linux:

    $ sudo /etc/init.d/networking restart
    OR
    $ sudo /etc/init.d/network-manager restart
    

    In the last example we will restart the netowrk interface directly using ifup and ifdown commands. Note the -a option instructs ifup and ifdown commands to restart all available network interfaces marked "auto":

    $ sudo ifdown -a
    $ sudo ifup -a
  • 相关阅读:
    Android apk 的安装过程
    Android布局技巧
    Android achartengine统计图
    Less适配移动端rem
    jquery.cookie.js时间设置
    前端面试题记录
    js身份证号码验证(小程序版)
    leetcode算法题笔记|Reverse Integer
    leetcode算法题笔记|two sum
    微信小程序多商品评价评星提交
  • 原文地址:https://www.cnblogs.com/tlfox2006/p/7281561.html
Copyright © 2011-2022 走看看