一,重分布的定义
router eigrp 100
network 14.1.1.1 0.0.0.0
auto-summary
!
router ospf 1
log-adjacency-changes
network 13.1.1.1 0.0.0.0 area 0
!
router rip
version 2
network 12.0.0.0
no auto-summary
router rip
version 2
network 0.0.0.0
no auto-summary
log-adjacency-changes
network 0.0.0.0 255.255.255.255 area 0
network 0.0.0.0
no auto-summary
router rip
version 2
redistribute eigrp 100 metric 1 (距离矢量协议重分布时需指定metric)
redistribute rip subnets (缺少关键字subnet,将无法对无类网络进行重分布)
redistribute ospf 1 metric 10000 100 255 1 1500 (距离矢量协议重分布时需指定metric)
2.0.0.0/32 is subnetted, 1 subnets
R 2.2.2.2 [120/1] via 12.1.1.2, 00:00:09, Serial0/0
3.0.0.0/32 is subnetted, 1 subnets
O 3.3.3.3 [110/65] via 13.1.1.3, 00:06:15, Serial0/1
4.0.0.0/32 is subnetted, 1 subnets
D 4.4.4.4 [90/409600] via 14.1.1.4, 00:06:36, FastEthernet0/0
2.0.0.0/32 is subnetted, 1 subnets
R 2.2.2.2 [120/1] via 12.1.1.2, 00:00:09, Serial0/0
3.0.0.0/32 is subnetted, 1 subnets
O 3.3.3.3 [110/65] via 13.1.1.3, 00:06:15, Serial0/1
4.0.0.0/32 is subnetted, 1 subnets
D 4.4.4.4 [90/409600] via 14.1.1.4, 00:06:36, FastEthernet0/0
4.0.0.0/32 is subnetted, 1 subnets
R 4.4.4.4 [120/1] via 12.1.1.1, 00:00:05, Serial0/0 -----------------------------R1上以eigrp学到此条路由
14.0.0.0/24 is subnetted, 1 subnets
R 14.1.1.0 [120/1] via 12.1.1.1, 00:00:05, Serial0/0------------------------------该接口在R1的eigrp进程下
2.0.0.0/32 is subnetted, 1 subnets
O E2 2.2.2.2 [110/20] via 13.1.1.1, 00:05:46, Serial0/1-----------------------------R1上以rip学到此条路由
12.0.0.0/24 is subnetted, 1 subnets
O E2 12.1.1.0 [110/20] via 13.1.1.1, 00:05:47, Serial0/1------------------------------该接口在R1的rip进程下
D EX 3.3.3.3 [170/307200] via 14.1.1.1, 00:06:26, FastEthernet0/0-----------------------------R1上以ospf学到此条路由
13.0.0.0/24 is subnetted, 1 subnets
D EX 13.1.1.0 [170/307200] via 14.1.1.1, 00:06:26, FastEthernet0/0 ---------------------该接口在R1的ospf进程下