zoukankan      html  css  js  c++  java
  • linux_下IP、网关、DNS地址配置

    root@kali:~# ifconfig
    eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
            inet 192.168.5.130  netmask 255.255.255.0  broadcast 192.168.5.255
            inet6 fe80::20c:29ff:fe65:1937  prefixlen 64  scopeid 0x20<link>
            ether 00:0c:29:65:19:37  txqueuelen 1000  (Ethernet)
            RX packets 40963  bytes 33133474 (31.5 MiB)
            RX errors 0  dropped 0  overruns 0  frame 0
            TX packets 21334  bytes 3411469 (3.2 MiB)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

    lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
            inet 127.0.0.1  netmask 255.0.0.0
            inet6 ::1  prefixlen 128  scopeid 0x10<host>
            loop  txqueuelen 1000  (Local Loopback)
            RX packets 26  bytes 1434 (1.4 KiB)
            RX errors 0  dropped 0  overruns 0  frame 0
            TX packets 26  bytes 1434 (1.4 KiB)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

    root@kali:~# route -n
    Kernel IP routing table
    Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
    0.0.0.0         192.168.5.1     0.0.0.0         UG    100    0        0 eth0
    192.168.5.0     0.0.0.0         255.255.255.0   U     100    0        0 eth0
    root@kali:~# cat /etc/resolv.conf
    # Generated by NetworkManager
    nameserver 192.168.1.13
    nameserver 192.168.1.14
    root@kali:~#

  • 相关阅读:
    RSA加密
    各种正则
    用Fragment制作的Tab页面产生的UI重叠问题
    Android源码下载
    Android Studio使用百度地图问题总结
    Android获取网络类型
    Android Studio类中实现Serializable自动生成serialVersionUID
    【Android开发】如何设计开发一款Android App
    UIViewController生命周期
    微信支付开发经验分享
  • 原文地址:https://www.cnblogs.com/hua198/p/8253187.html
Copyright © 2011-2022 走看看