实验:
r1:
int lo0
ip add 1.1.1.1 255.255.255.255
int s1/0
no sh
ip add 12.1.1.1 255.255.255.0
router rip
ver 2
no au
net 12.0.0.0.0
r2:
int lo0
ip add 2.2.2.2 255.255.255.255
int s1/0
clock rate 64000
ip add 12.1.1.2 255.255.255.0
int f0/0
no sh
ip add 24.1.1.2 255.255.255.0
int s1/1
clock rate 64000
ip add 23.1.1.255.255.255.0
router rip ver 2
no auto
net 12.0.0.0
router eigrp 100
no au
net 2.2.2.2 0.0.0.0
net 23.1.1.2 0.0.0.0
net 24.1.1.2 0.0.0.0
r3:
int lo0
ip add 3.3.3.3 255.255.255.0
int s1/1
ip add 23.1.1.3 255.255.255.0
int s1/0
no sh
ip add 34.1.1.3 255.255.255.0
clock rate 64000
router eigrp 100
no au
network 23.1.1.3 0.0.0.0
router ospf 1
router-id 3.3.3.3
net 34.1.1.3 0.0.0.0 area 0
r4:
int lo0
ip add 4.4.4.4 255.255.255.0
int f0/0
no shu
ip add 24.1.1.4 255.255.255.0
int s1/0
ip add 34.1.1.4 255.255.255.0
no sh
router eigrp 100
net 24.1.1.4 0.0.0.0
router ospf 1
router-id 4.4.4.4
net 34.1.1.4 0.0.0.0 area 0
r1:
router rip
redistribute connected
ip route 200.1.1.1 255.255.255.255 null0
router rip
redistribute static
r2:
router rip
redistribute eigrp 100 metric 1
router eigrp 100
redistribute rip metric 1000 1000 255 1 1500
r3:
router eigrp 100
redistribute ospf 1 metric 1000 1000 255 1 1500
router ospf 1
redistribute eigrp 100 subnets
r4:
int f0/0
no shutdown
router ospf 1
red eigrp 100 subnets
router eigrp 100
redistribute ospf 1 metric 1000 1000 255 1 1500
r4:
router ospf 1
distrance ospf 171
标签:环路,33,0.0,add,255.255,int,ip,router,路由 From: https://www.cnblogs.com/smoke520/p/18362018