Router(config)#ip route 0.0.0.0 0.0.0.0 172.99.255.254文 章 源 自 note.t4x.orgByrd's Blog-https://note.t4x.org/route/set-default-route/
注明:数据包在匹配所有明确路由后,才会匹配默认路由,也就是最后才会匹配默认路由。文 章 源 自 note.t4x.orgByrd's Blog-https://note.t4x.org/route/set-default-route/
查看路由信息:文 章 源 自 note.t4x.orgByrd's Blog-https://note.t4x.org/route/set-default-route/
Router#show ip route (Router#show ip route {static|address} {查看静态路由|查看某IP如何被转发) )
0 1 2 3 4 5 6 7 8 9 10 11 |
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area * - candidate default, U - per-user static route, o - ODR P - periodic downloaded static route Gateway of last resort is 10.10.10.1 to network 0.0.0.0 C 10.0.0.0/8 is directly connected, FastEthernet0/1 (直连路由) C 172.28.0.0/16 is directly connected, FastEthernet0/0 S 200.200.200.0/24 [1/0] via 172.28.12.2 (静态理由) S* 0.0.0.0/0 [1/0] via 10.10.10.1 (默认路由) |
申明:除非注明Byrd's Blog内容均为原创,未经许可禁止转载!详情请阅读版权申明!
Trackbacks