zoukankan      html  css  js  c++  java
  • Linux_Networking_Network Check

    Interface check

      ifconfig

      cat /etc/network/interface

        # interfaces(5) file used by ifup(8) and ifdown(8)


    #auto ens33
    #iface ens33 inet dhcp
    auto lo
    iface lo inet loopback


    #auto ens33
    #iface ens33 inet dhcp
    #iface ens33 inet static
    #address 10.175.4.197
    #network 10.175.4.0
    #netmask 255.255.252.0
    #broadcast 10.175.7.255
    #gateway 10.175.4.1
    #dns-nameservers 10.175.2.11

    auto ens33
    iface ens33 inet static
    address 10.175.38.10
    network 10.175.38.0
    netmask 255.255.255.0
    broadcast 10.175.38.255
    gateway 10.175.38.1
    dns-nameservers 219.238.239.155

      sudo systemctl restart NetworkManager.service

      sudo service network-manager restart

       sudo /etc/init.d/networking restart

      OR

      sudo /etc/init.d/network-manager restart
    #####   DNS   ############
    cat /etc/resolv.conf
    nameserver   8.8.8.8

    nslookup www.bing.com


    ########### routing #########3
    route -nNvee




  • 相关阅读:
    第十二周作业
    第十一周作业
    第十周作业
    第九周作业
    第八周作业
    bzoj3561DZY Loves Math VI
    bzoj3529[Sdoi2014]数表
    bzoj3309DZY Loves Math
    bzoj2823[AHOI2012]信号塔
    bzoj2301[HAOI2011]Problem b
  • 原文地址:https://www.cnblogs.com/tlfox2006/p/7281588.html
Copyright © 2011-2022 走看看