- 论坛徽章:
- 0
|
![]()
当EIGRP网络内所有的路由都需要配置到达EXTORNAL NETWORK的默认路由时,可以在全局配置在使用 ip default-network 命令
![]()
以上是其中一种方法,其实除了使用 ip default-network 命令来让其它路由自动配置默认路由外,还可以使用重分布 redistribute 来达到同样的效果
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
同样,其实路由协议也可以使用 重分布 redistribute 来达到相同的效果
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/45250/showart_695608.html |
|