默认路由配置与路由表

    Read

Router(config)#ip route 0.0.0.0 0.0.0.0 172.99.255.254SourceByrd's Weblog-https://note.t4x.org/route/set-default-route/

注明:数据包在匹配所有明确路由后,才会匹配默认路由,也就是最后才会匹配默认路由。SourceByrd's Weblog-https://note.t4x.org/route/set-default-route/

查看路由信息:SourceByrd's Weblog-https://note.t4x.org/route/set-default-route/

Router#show ip route (Router#show ip route {static|address} {查看静态路由|查看某IP如何被转发) )SourceByrd's Weblog-https://note.t4x.org/route/set-default-route/

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 (默认路由)SourceByrd's Weblog-https://note.t4x.org/route/set-default-route/ SourceByrd's Weblog-https://note.t4x.org/route/set-default-route/

申明:除非注明Byrd's Blog内容均为原创,未经许可禁止转载!详情请阅读版权申明!
Byrd
  • by Published on November 26, 2012
  • 原文链接:https://note.t4x.org/route/set-default-route/
Comments  1  Guest  0  Pingback  1
匿名

Comment

Anonymous

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: