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




  • 相关阅读:
    thinkphp empty标签
    thinkphp present标签
    if标签
    thinkphp 范围标签
    thinkphp 比较标签
    thinkphp switch标签
    thinkphp for标签
    thinkphp foreach标签
    QueryList 来做采集
    thinkphp volist标签
  • 原文地址:https://www.cnblogs.com/tlfox2006/p/7281588.html
Copyright © 2011-2022 走看看