实验:
r1:
router eigrp 100
no auto
net 12.1.1.0
r2:
router eigrp 100
no au
net 12.0.0.0
router ospf 1
router-id 2.2.2.2
network 23.1.1.2 0.0.0.0 area 0
net 24.1.1.2 0.0.0.0 area 0
r3:
router ospf 1
router-id 3.3.3.3
net 23.1.1.3 0.0.0.0 area 0
net 34.1.1.3 0.0.0.0 area 0
r4:
router ospf 1
router-id 4.4.4.4
net 24.1.1.4 0.0.0.0 area 0
net 34.1.1.4 0.0.0.0 area 0
r1:
router eigrp 100
redistribute connected
r2:
router ospf 1
redistribute eigrp 100 subnets
router eigrp 100
redisitribute ospf 1 metric 1000 1000 255 1 1500
router ospf 1
net 24.1.1.2 0.0.0.0 area 1
r4:
router ospf 1
net 24.1.1.4 0.0.0.0 area 1
r2:
router rip
ver 2
no auto
net 23.1.1.2
net 24.1.1.2
r3:
router rip
ver 2
no au
net 23.0.0.0
router ospf 1
router-id 3.3.3.3
net 34.1.1.3 0.0.0.0 area 0
r4:
router rip
ver 2
no au
net 24.0.0.0
router ospf 1
router-id 4.4.4.4
net 34.1.1.4 0.0.0.0 area 0
r2:
router eigrp 100
red rip metric 1000 1000 255 1 1500
router rip
red eigrp 100 metric 1
r3;
router ospf 1
red rip subnets
router rip
red ospf 1 metric 1
r4:
router ospf 1
red rip subnets
router rip
red ospf 1 metric 1
r1:
ip route 0.0.0.0 0.0.0.0 null 0
router eigrp 100
red static
r2:
router eigrp 100
distance eigrp 90 119(更改eigrp外部管理距离)r3:
router ospf 1
distance ospf external 121 4.4.4.4 0.0.0.0(针对源rid为4.4.4.4发来的路由改管理距离)access-list 1 permit 1.1.1.1 0.0.0.0
router ospf 1
distance 121 4.4.4.4 0.0.0.0 1
r4:
access-list 1 permit 1.1.1.1 0.0.0.0
router ospf 1
distance 121 3.3.3.3 0.0.0.0 1
router rip
red ospf 1 metric 2
标签:4.4,0.0,34,eigrp,router,次优,net,ospf,路由 From: https://www.cnblogs.com/smoke520/p/18362019