目录

HCIA-路由重分布

目录

HCIA-路由重分布

一、路由重分布是指在同一个网络中,将一种路由协议所学习到的路由信息导入到另一种路由协议中的技术,实现通信。

二、实验

https://i-blog.csdnimg.cn/direct/8cac706fcdd24b4482d2676904308da4.png

1、配置

AR1AR2AR3
sy sy AR1 int g 0/0/1 ip add 192.168.1.254 24 int g 0/0/0 ip add 10.1.1.1 24 rip version 2 net 192.168.1.0 net 10.0.0.0sy sy AR2 int g 0/0/1 ip add 11.1.1.2 24 int g 0/0/0 ip add 10.1.1.2 24 q ospf 1 router-id 2.2.2.2 import-route rip 1  引入rip路由 area 0.0.0.0 network 11.1.1.2 0.0.0.0 # rip 1 version 2 network 10.0.0.0 import-route ospf 1  引入ospf的路由sy sy AR3 int g 0/0/1 ip add 192.168.2.254 24 int g 0/0/0 ip add 11.1.1.3 24 q ospf router 3.3.3.3 area 0 net 192.168.2.254 0.0.0.255 net 11.1.1.3 0.0.0.0

2、查看路由表

https://i-blog.csdnimg.cn/direct/60be7240da1e4e36bc9e64627a68d2b7.png

https://i-blog.csdnimg.cn/direct/2802c70519eb496e9c649e3cb108c882.png

https://i-blog.csdnimg.cn/direct/049e2866572e4b52b1390ba78df9794d.png

3、验证

https://i-blog.csdnimg.cn/direct/4bd5ae6e692d42458de2a5110cc5eaa2.png