转载:http://blog.163.com/s_u/blog/static/1330836720106162505948/
R3(config)#no ip classless
R3#show ip route
<cut>
Gateway of last resort is 168.13.1.101 to network 0.0.0.0
R
C
R
C
S*
先来:ping
R3#ping
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 84/89/114 ms
R3#
再来:ping
R3#ping
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 168.13.200.1, timeout is 2 seconds:
...
Success rate is 0 percent (0/5)
相反:
R3(config)# ip classless
R3#ping
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 84/89/114 ms
R3#
再来:ping
R3#ping
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 168.13.200.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 80/88/112ms
这是为什么呢?
Cisco早期的IOS是缺省关闭该命令的,这也是为什么cisco路由器的路由表中一直会有诸如以下条目出现的原因
C
C
IE试题:
Refer to the exhibit. This exhibit shows the NAT configuration for Router A and the output for a ping issued from device 171.68.200.48 and destined to 172.16.47.142. Based on this information, what change must be made to Router A in order for the ping to work?
A. reload the router
B. clear the route cache
C. add a static route
D. configure IP as classless
E. load a newer IOS image
解:看图中路由设置,因为关掉了ip classless ,所以路由器做数据转发的时候会只查找主网络,没有找到也不会按照默认路由来走,另外一点观察最后的debug信息,会看到出去的数据包提示unroutabal