【网络工程师配置篇】华为RIP路由基础配置续篇——重分发

11 篇文章 3 订阅
2 篇文章 0 订阅

                                                   

                                                             RIP路由重分发

一、RIP路由重分发功能介绍:将从其他路由协议学习的路由引入rip域内

二、RIP路由重分发应用场景:

   企业的网络里面启用了多种的路由协议,为了实现整个网络可以互相通信,共享资料,那么需要把其它路由协议的路由引入到RIP协议里面

三、RIP路由重分发实验配置:

  1.拓扑图

 

  2.实验目的:

     全网除了运行rip协议外,还有其他路由协议(如静态路由),需要把其它路由协议学习的路由,重分发进rip。

  3.配置思路:

        1)搭建好拓扑图环境,标出规划好的IP地址

        2)修改网络设备默认名称、配置好IP地址

        3)配置RIP路由重分发,使各网段之间实现互访

  4.配置过程:

    步骤一:修改网络设备默认名称、配置好IP地址

1)配置各PC信息

  

  

 

 2)配置路由器R1默认名称及接口IP

Router>en       //进入特权模式

Router#conf t    //进入全局配置模式

Enter configuration commands, one per line. End with CNTL/Z.

Router(config)#hostname R1     //给设备改名称

R1(config)#int fa0/1      //进入接口配置模式

R1(config-if)#ip address 192.168.1.2 255.255.255.0    //配置接口的ip地址、子网掩码

R1(config-if)#no shut    //激活接口,拓扑图上接口由红变绿

 R1(config-if)#

%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up

R1(config-if)#int fa0/0

R1(config-if)#ip address 172.16.0.1 255.255.0.0

R1(config-if)#no shut

R1(config-if)#

%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

3)配置路由器R2默认名称及接口IP

Router>en

Router#conf t

Enter configuration commands, one per line. End with CNTL/Z.

Router(config)#hostname R2

R2(config)#int fa0/0

R2(config-if)#ip add 172.16.0.2 255.255.0.0

R2(config-if)#no shut

 

R2(config-if)#

%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

 

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up

 

R2(config-if)#int fa0/1

R2(config-if)#ip add 172.17.0.1 255.255.0.0

R2(config-if)#no shut

4)配置路由器R3默认名称及接口IP

Router>en

Router#conf t

Enter configuration commands, one per line. End with CNTL/Z.

Router(config)#hostname R3

R3(config)#int fa0/1

R3(config-if)#ip add 172.17.0.2 255.255.0.0

R3(config-if)#no shut

 

R3(config-if)#

%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up

 

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up

 

R3(config-if)#int fa0/0

R3(config-if)#ip add 192.168.2.2 255.255.0.0

R3(config-if)#no shut

步骤二:配置RIP路由重分发,使各网段之间实现互访

1)配置RIP路由部分:

R1(config)#router rip

R1(config-router)#version 2

R1(config-router)#no auto-summary

R1(config-router)#network 192.168.1.0

R1(config-router)#network 172.16.0.0

2) 配置引入静态路由部分:

R2(config)#router rip

R2(config-router)#version 2

R2(config-router)#no auto-summary

R2(config-router)#network 172.16.0.0

R2(config-router)#exit

R2(config)#ip route 192.168.2.0 255.255.255.0 172.17.0.2

R2(config)#router rip

R2(config-router)#redistribute static metric 3

 

3)配置静态路由:

R3(config)#ip route 0.0.0.0 0.0.0.0 172.17.0.1      //因为R3为边界路由器,所以可以直接配一条缺省路由,

四、配置验证:

 1)查看各路由器路由表,命令为show ip route

 

  

 

 

注意:1、在查看路由表的时候,需要在特权模式下进行,也即在“R1#”这样的提示信息后输入查看路由表的命令

      2、在路由表信息中,C:代表是直连的

                         R:代表是RIP路由信息

                         S:代表是静态路由信息

                         S*:代表是缺省路由信息

2)查看两台主机通过RIP重分发后的通信情况:

 

3)通过将思科模拟器实时模式切换为模拟模式,可以查看到如下信息:

 

通过上述路径,最终实现了PC0和PC1的通信

     4)在特权模式下,输入“write”可以保存配置

 

至此,RIP路由引入静态路由实验完成,后面会更新rip引入OSPF以及rip+OSPF+静态路由的综合实验

 

  • 0
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值