技术在于专研
分类: 系统运维
2006-12-08 09:22:03
P1 R1:
P1R1(config)#ip route
P1R1(config-router)#default-information originate
P1r1 route table
P1R1#
*Mar 1 00:22:52.363: %SYS-5-CONFIG_I: Configured from console by console
P1R1#show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O -
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, 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
172.31.0.0/24 is subnetted, 1 subnets
C 172.31.1.0 is directly connected, Serial1/0
O
C
C
S*
P1R1#
P1R2 route table
P1R2#show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O -
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, 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
172.31.0.0/24 is subnetted, 1 subnets
O 172.31.1.0 [110/128] vi
C
O
C
O*E2
P1R2#
现在其中一台ROUTE中通告一个默认路由
通过Default-information origiate传播到外地的路由表中!
P1R4
P1R4#show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O -
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, 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
172.31.0.0/24 is subnetted, 1 subnets
O 172.31.1.0 [110/129] vi
C
O
O
O*E2
P1R4#
Default metric 是1 而不是BSCI自学指南P212上说的 10 书的作者已经试验验证了!