[原]linux下如何查看本机IP,gateway,DNS
2012-05-25 08:38
381 查看
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 查看评论
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 查看评论
相关文章推荐
- Linux下,查看网络配置(IP,Gateway,DNS)
- linux查看本机IP、gateway、dns
- Linux 查看IP、查看Gateway、查看DNS
- linux查看本机IP、gateway、DNS
- linux查看本机IP、gateway、dns
- linux查看本机IP、gateway、dns
- linux查看本机IP、gateway、dns
- linux查看本机IP、gateway、dns
- linux查看本机IP、gateway、dns
- linux查看本机IP、gateway、dns
- linux查看本机IP、出口IP、gateway、DNS
- linux查看本机IP、gateway、dns
- Linux下,查看网络配置(IP,Gateway,DNS)
- linux查看本机IP、gateway、dns
- linux 系统获取网络ip, mask, gateway, dns信息小程序
- 在linux如何查看IP
- 修改Linux中的主机名、如何查看Linux IP
- Linux查看IP 网关 DNS
- linux设置ip.dns.gateway
- linux -- 查看ip,路由,dns