实验二十一、RIP-2 在NBMA 网络的配置
一、 实验目的
1. 掌握RIP 协议在NBMA (非广播多点可达)环境下的配置
2. 理解NBMA 环境的特殊性
二、 应用环境
在帧中继的网络中,通常一个物理接口对应多条 PVC,由于水平分割的原因,导致 RIP 路
由无法学习。
三、 实验设备
1. DCR-1751 三台
2. DCR-2630 (安装相应模块满足三个serial 接口) 一台
3. CR-V35FC 三条
4. CR-V35MT 三条
四、 实验拓扑
五、 实验要求
ROUTER-A ROUTER-B ROUTER-C
S1/1 192.168.1.1/24 S1/0 192.168.1.2/24 S03 192.168.1.3/24
F0/0 192.168.2.1/24 F0/0 192.168.3.1/24 F0/0 192.168.4.1/24六、 实验步骤
第一步:参照实验 15,将帧中继网络配置好,并测试连通性
第二步:配置路由器A、B、C 的RIP-2 协议
Router-A#conf
Router-A_config#int f0/0
Router-A_config_f0/0#ip address 192.168.2.1 255.255.255.0
Router-A_config_f0/0#exit
Router-A_config#router rip
Router-A_config_rip#version 2
Router-A_config_rip#network 192.168.1.0
Router-A_config_rip#network 192.168.2.0
Router-B#conf
Router-B_config#int f0/0
Router-B_config_f0/0#ip address 192.168.3.1 255.255.255.0
Router-B_config_f0/0#exit
Router-B_config#router rip
Router-B_config_rip#version 2
Router-B_config_rip#network 192.168.1.0
Router-B_config_rip#network 192.168.3.0
Router-B_config_rip#^Z
Router-C#conf
Router-C_config#int f0/0
Router-C_config_f0/0#ip address 192.168.4.1 255.255.255.0
Router-C_config_rip#exit
Router-C_config#router rip
Router-C_config_rip#version 2
Router-C_config_rip#network 192.168.1.0
Router-C_config_rip#network 192.168.4.0
第三步:查看各路由器的路由表
路由器A:
Router-A#sh ip route
Codes: C - connected, S - static, R - RIP, B - BGP, BC - BGP connected
D - DEIGRP, DEX - external DEIGRP, O - OSPF, OIA - OSPF inter area
ON1 - OSPF NSSA external type 1, ON2 - OSPF NSSA external type 2
OE1 - OSPF external type 1, OE2 - OSPF external type 2
DHCP - DHCP type
VRF ID: 0
C 192.168.1.0/24 is directly connected, Serial1/1 C 192.168.2.0/24 is directly connected, FastEthernet0/0
R 192.168.3.0/24 [120,1] via 192.168.1.2(on Serial1/1)
R 192.168.4.0/24 [120,1] via 192.168.1.3(on Serial1/1)
Router-B#sh ip route
Codes: C - connected, S - static, R - RIP, B - BGP, BC - BGP connected
D - DEIGRP, DEX - external DEIGRP, O - OSPF, OIA - OSPF inter area
ON1 - OSPF NSSA external type 1, ON2 - OSPF NSSA external type 2
OE1 - OSPF external type 1, OE2 - OSPF external type 2
DHCP - DHCP type
VRF ID: 0
C 192.168.1.0/24 is directly connected, Serial1/0
R 192.168.2.0/24 [120,1] via 192.168.1.1(on Serial1/0)
C 192.168.3.0/24 is directly connected, FastEthernet0/0
R 192.168.4.0/24 [120,2] via 192.168.1.3(on Serial1/0
Router-C#sh ip route
Codes: C - connected, S - static, R - RIP, B - BGP, BC - BGP connected
D - DEIGRP, DEX - external DEIGRP, O - OSPF, OIA - OSPF inter area
ON1 - OSPF NSSA external type 1, ON2 - OSPF NSSA external type 2
OE1 - OSPF external type 1, OE2 - OSPF external type 2
DHCP - DHCP type
VRF ID: 0
C 192.168.1.0/24 is directly connected, Serial0/3
R 192.168.2.0/24 [120,1] via 192.168.1.1(on Serial0/3)
R 192.168.3.0/24 [120,2] via 192.168.1.2(on Serial0/3)
C 192.168.4.0/24 is directly connected, FastEthernet0/0
!都学习到所有的路由
第四步:启动路由器A 的S1/1 接口RIP 协议水平分割
(帧中继环境下水平分割默认被关闭了)
Router-A#conf
Router-A_config#int s1/1
Router-A_config_s1/1#ip rip split-horizon
第五步:再次查看路由器B 和C 的路由表(过3 分钟后)
Router-B#sh ip route
Codes: C - connected, S - static, R - RIP, B - BGP, BC - BGP connected
D - DEIGRP, DEX - external DEIGRP, O - OSPF, OIA - OSPF inter area
ON1 - OSPF NSSA external type 1, ON2 - OSPF NSSA external type 2 OE1 - OSPF external type 1, OE2 - OSPF external type 2
DHCP - DHCP type
VRF ID: 0
C 192.168.1.0/24 is directly connected, Serial1/0
R 192.168.2.0/24 [120,1] via 192.168.1.1(on Serial1/0)
C 192.168.3.0/24 is directly connected, FastEthernet0/0
!注意到没有了192.168.4.0 这条路由
Router-C#sh ip route
Codes: C - connected, S - static, R - RIP, B - BGP, BC - BGP connected
D - DEIGRP, DEX - external DEIGRP, O - OSPF, OIA - OSPF inter area
ON1 - OSPF NSSA external type 1, ON2 - OSPF NSSA external type 2
OE1 - OSPF external type 1, OE2 - OSPF external type 2
DHCP - DHCP type
VRF ID: 0
C 192.168.1.0/24 is directly connected, Serial0/3
R 192.168.2.0/24 [120,1] via 192.168.1.1(on Serial0/3)
C 192.168.4.0/24 is directly connected, FastEthernet0/0
!注意到没有了192.168.3.0 这条路由