Chinaunix首页 | 论坛 | 博客
  • 博客访问: 595622
  • 博文数量: 178
  • 博客积分: 1400
  • 博客等级: 上尉
  • 技术积分: 2162
  • 用 户 组: 普通用户
  • 注册时间: 2009-05-12 20:06
文章分类

全部博文(178)

文章存档

2011年(1)

2010年(94)

2009年(86)

我的朋友

分类:

2010-01-27 13:26:15

使用命令

route 命令 获取路由表

如下

>route

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.70.0.0       *               255.255.0.0     U     0      0        0 eth0
169.254.0.0     *               255.255.0.0     U     0      0        0 eth0
default         10.70.10.252    0.0.0.0         UG    0      0        0 eth0

>route -n

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.70.0.0       0.0.0.0         255.255.0.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         10.70.10.252    0.0.0.0         UG    0      0        0 eth0

其中使用-n参数,返回ip地址

Destination    和Genmask都为0.0.0.0的一项是默认网关

另外,使用tracert -r命令也可得到相同的结果
阅读(731) | 评论(0) | 转发(0) |
0

上一篇:图片

下一篇:dos下查看网关

给主人留下些什么吧!~~