- 論壇徽章:
- 0
|
![]()
當(dāng)EIGRP網(wǎng)絡(luò)內(nèi)所有的路由都需要配置到達(dá)EXTORNAL NETWORK的默認(rèn)路由時(shí),可以在全局配置在使用 ip default-network 命令
![]()
以上是其中一種方法,其實(shí)除了使用 ip default-network 命令來(lái)讓其它路由自動(dòng)配置默認(rèn)路由外,還可以使用重分布 redistribute 來(lái)達(dá)到同樣的效果
R2(config)#router eigrp 50
R2(config-router)#redistribute static metric 10 10 10 10 10
R2#sh ip route
Codes: C - connected, S - static, 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
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 192.168.10.2 to network 0.0.0.0
192.168.10.0/30 is subnetted, 1 subnets
C 192.168.10.0 is directly connected, FastEthernet2/0
172.16.0.0/30 is subnetted, 2 subnets
C 172.16.1.4 is directly connected, FastEthernet1/0
C 172.16.1.0 is directly connected, FastEthernet0/0
S* 0.0.0.0/0 [1/0] via 192.168.10.2
R1#sh ip route
Codes: C - connected, S - static, 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
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.16.1.2 to network 0.0.0.0
172.16.0.0/30 is subnetted, 2 subnets
D 172.16.1.4 [90/30720] via 172.16.1.2, 00:22:04, FastEthernet0/0
C 172.16.1.0 is directly connected, FastEthernet0/0
D*EX 0.0.0.0/0 [170/256005120] via 172.16.1.2, 00:19:54, FastEthernet0/0
同樣,其實(shí)路由協(xié)議也可以使用 重分布 redistribute 來(lái)達(dá)到相同的效果
本文來(lái)自ChinaUnix博客,如果查看原文請(qǐng)點(diǎn):http://blog.chinaunix.net/u1/45250/showart_695608.html |
|