linux查看本机IPgatewayDNS
Posted ParamousGIS
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了linux查看本机IPgatewayDNS相关的知识,希望对你有一定的参考价值。
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
以上是关于linux查看本机IPgatewayDNS的主要内容,如果未能解决你的问题,请参考以下文章