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
  • 相关阅读:
    快速排序算法
    HTTP中的重定向和请求转发的区别
    单链表的逆置(头插法和就地逆置)
    水仙花数学习
    构建n位元的格雷码
    算法学习day01 栈和队列
    数据结构学习总结 线性表之双向链表
    设计模式
    Nginx 初步认识
    数据结构学习总结(2) 线性表之单链表
  • 原文地址:https://www.cnblogs.com/tlfox2006/p/7281561.html
Copyright © 2011-2022 走看看