- 积分
- 812
- 鸿鹄币
- 个
- 好评度
- 点
- 精华
- 最后登录
- 1970-1-1
- 阅读权限
- 40
- 听众
- 收听
中级工程师
   
|
ip default-network
发现有一条很强的命令:ip default-network!
网络拓扑
在这个拓扑中,R1/R2/R3运行EIGRP,R3上将172.16.23.0和192.168.34.0网络宣告进EIGRP,并使用命令"defualt-network 192.168.34.0"
在R1上我们看到的路由表如下:
R1#show ip route
Gateway of last resort is 172.16.12.2 to network 192.168.34.0
172.16.0.0/24 is subnetted, 3 subnets
D 172.16.23.0 [90/3072] via 172.16.12.2, 00:53:53, GigabitEthernet0/0
C 172.16.12.0 is directly connected, GigabitEthernet0/0
C 172.16.1.0 is directly connected, Loopback0
D* 192.168.34.0/24 [90/3328] via 172.16.12.2, 00:34:58, GigabitEthernet0/0
//出现了一条EIGRP默认路由
这时我们不只可以ping通192.168.34.4,还能ping通192.168.4.4!
R1#ping 192.168.34.4
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.34.4, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 380/432/476 ms
R1#ping 192.168.4.4
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.4.4, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 404/432/480 ms
ping通192.168.34.4不奇怪,但为啥能ping通路由表中没有的192.168.4.4?
“ip default-network“命令好强大!
大家是否能为我解疑,为什么加了这条命令后还能ping通192.168.4.4?
大家一起讨论讨论
|
|