神州数码路由重分布配置

实验要求:掌握路由重分布的配置

拓扑如下

R1

enable  进入特权模式

config  进入全局模式

hostname R1  修改名称

interface l0  进入端口

ip address 192.168.3.254 255.255.255.0  设置IP地址

interface s0/1  进入端口

ip address 192.168.1.1 255.255.255.0  设置IP地址

physical-layer speed 64000  设置同步时钟

exit  返回上一级

router rip  启动RIP协议

version 2  选择版本

network 192.168.1.0  添加直连网段到RIP

network 192.168.3.0  添加直连网段到RIP

 

R2

enable  进入特权模式

config  进入全局模式

hostname R2  修改名称

interface s0/1  进入端口

ip address 192.168.2.1 255.255.255.0  设置IP地址

physical-layer speed 64000  设置同步时钟

interface s0/2  进入端口

ip address 192.168.1.2 255.255.255.0  设置IP地址

physical-layer speed 64000  设置同步时钟

exit  返回上一级

router ospf 1  启动OSFP协议

network 192.168.2.0 255.255.255.0 area 0  添加直连网段到OSPF

redistribute rip  将RIP协议重分布到OSPF

redistribute connect    将直连网段重分布到OSPF

exit  返回上一级

router rip  启动RIP协议

version 2  选择版本

network 192.168.1.0  将直连网段添加到RIP

redistribute ospf 1  将OSPF重分布到RIP

redistribute connect  将直连网段重分布到RIP

 

R3

enable  进入特权模式

config  进入全局模式

hostname R3  修改名称

interface l0  进入端口

ip address 192.168.4.254 255.255.255.0  设置IP地址

interface s0/2  进入端口

ip address 192.168.2.2 255.255.255.0    设置IP地址

physical-layer speed 64000  设置同步时钟

exit  返回上一级

router ospf 1  启动OSPF协议

network 192.168.2.0 255.255.255.0 area 0  添加直连网段到OSPF

network 192.168.4.0 255.255.255.0 area 0  添加直连网段到OSPF

 

相关命令

redistribute connect     将直连网段重分布到协议中

redistribute rip        RIP重分布到协议中

redistribute ospf [进程号]     OSPF重分布到协议中

posted on 2018-07-17 16:50  学不动了呀~~~~  阅读(1709)  评论(0编辑  收藏  举报