1. 程式人生 > >linux檢視本機IP gateway dns

linux檢視本機IP gateway dns

分享一下我老師大神的人工智慧教程!零基礎,通俗易懂!http://blog.csdn.net/jiangjunshow

也歡迎大家轉載本篇文章。分享知識,造福人民,實現我們中華民族偉大復興!

               
IP: 
    ifconfig

gateway:
[[email protected]
~]# 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:

[[email protected] ~]# cat /etc/resolv.conf
search               localdomain
nameserver 172.16.0.250
           

給我老師的人工智慧教程打call!http://blog.csdn.net/jiangjunshow

這裡寫圖片描述