ospf 配置asbr的重分发 ---出现问题“学不到rip”_第1张图片
 
 
配置单如下:可是在检查中出现了问题:r2 充当的asbr学不到rip的路由信息。
r1
en
conf t
host isp
int loopback 0
ip add 1.1.1.1 255.255.255.0
exit
int e 0/0
ip add 2.1.1.2 255.255.255.0
no shu
exit
router rip
net 1.1.1.0
net 2.1.1.0
exit
****************************************
r2
en
conf t
host sh
int e 0/0
ip add 2.1.1.2 255.255.255.0
no shu
exit
int e 0/1
ip add 192.168.1.1 255.255.255.0
no sh
exit
int loopback 0
ip add 192.168.64.1 255.255.255.0
exit
router ospf 1  **************配置ospf
net 192.168.1.0 0.0.0.255 area 0
net 192.168.64.0 0.0.0.255 area 1
exit
router ospf 1
redistribute rip subnets***************在ospf中注入rip
exit
router rip
net 2.1.1.0
exit
router rip
redistribute ospf 1 metric 12************将ospf注入rip
exit
*********************************
 

r3
en
conf t
host bj
int loopback 1
ip add 9.0.0.1 255.255.255.0
exit
int e 0/0
ip add 192.168.1.3 255.255.255.0
no sh
exit
int e 0/1
ip add 192.168.24.1 255.255.255.252
no sh
exit
router ospf 1
net 192.168.1.0 0.0.0.255 area 0
net 192.168.24.0 0.0.0.3 area 51
net 9.0.0.0 0.0.0.255 area 3
exit
exit
**********************************
r4
en
conf t
host gz
int e 0/0
ip add 192.168.24.2 255.255.255.252
no shu
exit
router ospf 1
net 192.168.24.0 0.0.0.3 area 51
exit
exit
*****************************************