zoukankan      html  css  js  c++  java
  • [原]linux下如何查看本机IP,gateway,DNS

    IP:
        ifconfig

    gateway:
    [root@localhost ~]# netstat -rn
    Kernel IP routing table
    Destination     Gateway         Genmask         Flags   MSS Window irtt Iface
    172.16.44.0     0.0.0.0          255.255.255.0    U         0      0          0 vmnet8
    172.16.10.0     0.0.0.0          255.255.255.0        U         0      0          0 vmnet1
    172.16.0.0       0.0.0.0          255.255.252.0        U         0      0          0 eth0
    169.254.0.0     0.0.0.0          255.255.0.0           U         0      0          0 eth0
    0.0.0.0         172.16.0.254    0.0.0.0           UG        0      0          0 eth0

    (第一个以0.0.0.0开始的行的gateway是默认网关)


    DNS:
    [root@localhost ~]# cat /etc/resolv.conf
    search               localdomain
    nameserver 172.16.0.250
    作者:yuandianlws 发表于2012-5-25 8:37:44 原文链接
    阅读:2428 评论:0 查看评论
  • 相关阅读:
    【JavaWeb 实际项目 03】
    【JavaWeb EL表达式&JSTL标签库 09】
    【JavaWeb jsp 08】
    【JavaWeb 实际项目 02】
    【JavaWeb Servlet 07】
    【JavaWeb Servlet 06】
    【JavaWeb xml&tomcat 05】
    【JavaWeb jQuery 04】
    【JavaWeb jQuery 03】
    【JavaWeb JavaScript 02】
  • 原文地址:https://www.cnblogs.com/yuandianliws/p/3568288.html
Copyright © 2011-2022 走看看