聚焦办公终端数据安全,守护企业核心资产,企业办公数据安全交流会
预约直播
产品
< 返回主菜单
产品中心
产品

交换机

交换机所有产品
< 返回产品
交换机主页
交换机

无线

无线所有产品
< 返回产品
无线主页
无线

云桌面

云桌面产品方案中心
< 返回产品
云桌面主页
云桌面

安全

安全所有产品
< 返回产品
安全主页
安全

【RSR】RSR如何vrf下基础配置RIP

发布时间:2013-09-11
点击量:4242

功能介绍:

RIP (Routing Information Protocol) 路由协议是一种相对古老,在小型以及同介质网络中得到了广泛应用的路由协议。RIP 采用距离向量算法,是一种距离向量协议。 RIPv1 在RFC 1058 文档中定义,RIPv2在 RFC 2453文档中定义,锐捷 RGOS软件同时支持这两个版本。 RIP 使用UDP报文交换路由信息,UDP端口号为 520。通常情况下 RIPv1 报文为广播报文;而 RIPv2 报文为组播报文,组播地址为 224.0.0.9。RIP 每隔 30 秒向外发送一次更新报文。如果设备经过 180 秒没有收到来自对端的路由更新报文则将所有来自此设备的路由信息标志为不可达,路由进入不可达状态后,120秒内仍未收到更新报文就将这些路由从路由表中删除。 

一、组网需求

路由器R1的F0/0、F0/1接口在vrf abc下,路由器R2为普通全局路由器,全网路由器运行rip协议,使全网路由可达。

      

二、组网拓扑

三、配置要点

1、在R1上配置vrf abc

2、基本ip地址配置

3、在R1上将对应的接口划入vrf

4、全网路由启用rip,并把对应的接口通告到rip进程

 

四、配置步骤

1、在R1上配置vrf abc

注意:

vrf是本地有效的,在本端起了vrf,只是本路由器上相同vrf下的接口互通,不同vrf的接口逻辑隔离,与对端路由器是否起vrf无关。

Ruijie(config)#hostname R1

R1(config)#ip vrf abc     //在路由器上启用vrf abc

R1(config-vrf)#exit

2、基本ip地址配置

R1(config)#interface fastEthernet 0/2

R1(config-if-FastEthernet 0/2)#ip address 192.168.1.1 255.255.255.0

R1(config-if-FastEthernet 0/2)#exit

R1(config)#interface fastEthernet 0/0

R1(config-if-FastEthernet 0/0)#ip address 10.1.1.1 255.255.255.0

R1(config-if-FastEthernet 0/0)#exit

 

Ruijie(config)#hostname R2

R2(config)#interface fastEthernet 0/0

R2(config-if-FastEthernet 0/0)#ip address 192.168.1.2 255.255.255.0

R2(config-if-FastEthernet 0/0)#exit

R2(config)#interface fastEthernet 0/1

R2(config-if-FastEthernet 0/1)#ip address 10.2.1.1 255.255.255.0

R2(config-if-FastEthernet 0/1)#exit

3、在R1上将对应的接口划入vrf

注意:

将接口划入到vrf时,若该接口有配置ip地址,会将ip地址移除,需要重新配置该接口的ip地址。

R1(config)#interface fastEthernet 0/2

R1(config-if-FastEthernet 0/2)#ip vrf forwarding abc

% Interface FastEthernet 0/2 IP address 192.168.1.1 removed due to enabling VRF abc

R1(config-if-FastEthernet 0/2)#ip address 192.168.1.1 255.255.255.0       //重新配置F0/2接口的ip地址

R1(config-if-FastEthernet 0/2)#exit

R1(config)#interface fastEthernet 0/0

R1(config-if-FastEthernet 0/0)#ip vrf forwarding abc

% Interface FastEthernet 0/0 IP address 10.1.1.1 removed due to enabling VRF abc

R1(config-if-FastEthernet 0/0)#ip address 10.1.1.1 255.255.255.0

R1(config-if-FastEthernet 0/0)#exit

4、全网路由启用rip并把对应的接口通告到rip进程

注意:

vrf下的RIP配置,只是相应配置需要在对应的vrf下 address-family ipv4 vrf ,配置vrf下的rip注意事项与配置普通rip一致,请参考 rip 基础配置 相关章节。

R1(config)#router rip

R1(config-router)#address-family ipv4 vrf abc     //在vrf abc下启用rip协议

R1(config-router-af)#version 2     //启用rip version 2

R1(config-router-af)#no auto-summary    //关闭自动汇总

R1(config-router-af)#network 192.168.1.0   //把192.168.1.0网段通告进rip进程

R1(config-router-af)#network 10.0.0.0

R1(config-router-af)#exit

R1(config-router)#exit

 

R2(config)#router rip

R2(config-router)#version 2

R2(config-router)#no auto-summary

R2(config-router)#network 192.168.1.0

R2(config-router)#network 10.0.0.0

R2(config-router)#exit

 

五、配置验证

查看R1对应vrf下的路由表及其它路由器的全局路由表,若每台路由器都能学习到整网的路由,则vrf下的rip配置正确。

R1#show ip route vrf abc

Routing Table: abc

 

Codes:  C - connected, S - static, R - RIP, B - BGP

        O - OSPF, IA - OSPF inter area

        N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2

        E1 - OSPF external type 1, E2 - OSPF external type 2

        i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2

        ia - IS-IS inter area, * - candidate default

 

Gateway of last resort is no set

C    10.1.1.0/24 is directly connected, FastEthernet 0/0

C    10.1.1.1/32 is local host.

R    10.2.1.0/24 [120/1] via 192.168.1.2, 00:02:53, FastEthernet 0/2

C    192.168.1.0/24 is directly connected, FastEthernet 0/2

C    192.168.1.1/32 is local host.

 

 

 

 

相关产品

返回顶部

收起
请选择服务项目
关闭咨询页
售前咨询 售前咨询
售前咨询
售后服务 售后服务
售后服务
意见反馈 意见反馈
意见反馈
更多联系方式