• 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:~#

  • 相关阅读:
    SQL Server 存储过程
    FindControl的详细介绍
    Transaction-SQL 游标
    硬盘安装工具nt6 hdd installer无法卸载的问题
    Some question about Source Tree
    java 简单加密
    java 多态与多重继承
    构造方法和方法的重载
    64位WIN7上安装11G R2 ,PLSQL的配置方法
    语录(排名不分先后)
  • 原文地址:https://www.cnblogs.com/hua198/p/8253187.html
Copyright © 2020-2023  润新知