默认路由配置与路由表

  • A+
所属分类:Route

Router(config)#ip route 0.0.0.0 0.0.0.0 172.99.255.254

注明:数据包在匹配所有明确路由后,才会匹配默认路由,也就是最后才会匹配默认路由。

查看路由信息:

Router#show ip route (Router#show ip route {static|address} {查看静态路由|查看某IP如何被转发) )

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 (默认路由)

发表评论

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

目前评论:1   其中:访客  0   博主  0   引用   1

    来自外部的引用: 1

    • 路由协议分类 – Byrd's Weblog