实验五——————RIPv2协议配置

实验目的

通过本实验,可以掌握以下技能:

  • 配置接口IP地址。
  • 配置RIPv2协议。
  • 验证RIPv2协议配置。

设备需求

  • Cisco路由器3台,分别命名为twins、sa和gill。其中twins具有2个以太网接口;sa具有2个以太网接口;gill具有2个以太网接口。
  • 2条交叉线序双绞线。
  • 1台access server,及用于反向Telnet的相应电缆。
  • 1台带有超级终端程序的PC机,以及Console电缆及转接器。

拓扑结构及配置说明

实验的拓扑结构如图实验4所示,地址如下。通过2对交叉线序双绞线分别把twins和sa连接起来、twins和gill连接起来。

各路由器使用的接口及其编号见图的标注。各接口IP地址分配如下:

  • twins: E0:192.168.10.1  E1:192.168.11.1
  • sa: E0:192.168.10.2  E1:192.168.12.1
  • gill:E0:192.168.11.2  E1:192.168.15.1

实验配置

基本网络配置

这里采用图形化界面进行配置具体信息

twins

实验五——————RIPv2协议配置_第1张图片

实验五——————RIPv2协议配置_第2张图片

sa

实验五——————RIPv2协议配置_第3张图片


实验五——————RIPv2协议配置_第4张图片


gill

实验五——————RIPv2协议配置_第5张图片

实验五——————RIPv2协议配置_第6张图片

配置RIPV2协议

sa

实验五——————RIPv2协议配置_第7张图片

Router#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#router rip
Router(config-router)#version 2
Router(config-router)#network 192.168.10.2
Router(config-router)#network 192.168.12.1
Router(config-router)#^Z
Router#
%SYS-5-CONFIG_I: Configured from console by console

Router#
twins

实验五——————RIPv2协议配置_第8张图片

Router#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#router rip
Router(config-router)#version 2
Router(config-router)#network 192.168.10.1
Router(config-router)#network 192.168.11.1
Router(config-router)#^Z
Router#
%SYS-5-CONFIG_I: Configured from console by console

Router#

gill

实验五——————RIPv2协议配置_第9张图片

Router#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#router rip
Router(config-router)#version 2
Router(config-router)#network 192.168.11.2
Router(config-router)#network 192.168.15.1
Router(config-router)#^Z
Router#
%SYS-5-CONFIG_I: Configured from console by console

Router#

整体网络拓扑结构

实验五——————RIPv2协议配置_第10张图片


RIPv2协议验证

sa

实验五——————RIPv2协议配置_第11张图片

twins

实验五——————RIPv2协议配置_第12张图片

gill 

实验五——————RIPv2协议配置_第13张图片

验证IP配置

sa

实验五——————RIPv2协议配置_第14张图片

twins

实验五——————RIPv2协议配置_第15张图片

gill

实验五——————RIPv2协议配置_第16张图片

ping测试

从服务器ping到主机PC

SERVER>ipconfig

FastEthernet0 Connection:(default port)

   Link-local IPv6 Address.........: FE80::2E0:B0FF:FE2D:D805
   IP Address......................: 192.168.12.2
   Subnet Mask.....................: 255.255.255.0
   Default Gateway.................: 192.168.12.1

SERVER>ping 192.168.12.1

Pinging 192.168.12.1 with 32 bytes of data:

Reply from 192.168.12.1: bytes=32 time=0ms TTL=255
Reply from 192.168.12.1: bytes=32 time=3ms TTL=255
Reply from 192.168.12.1: bytes=32 time=5ms TTL=255
Reply from 192.168.12.1: bytes=32 time=0ms TTL=255

Ping statistics for 192.168.12.1:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum = 5ms, Average = 2ms

SERVER>ping 192.168.10.2

Pinging 192.168.10.2 with 32 bytes of data:

Reply from 192.168.10.2: bytes=32 time=0ms TTL=255
Reply from 192.168.10.2: bytes=32 time=2ms TTL=255
Reply from 192.168.10.2: bytes=32 time=0ms TTL=255
Reply from 192.168.10.2: bytes=32 time=0ms TTL=255

Ping statistics for 192.168.10.2:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum = 2ms, Average = 0ms

SERVER>ping 192.168.10.1

Pinging 192.168.10.1 with 32 bytes of data:

Reply from 192.168.10.1: bytes=32 time=8ms TTL=254
Reply from 192.168.10.1: bytes=32 time=6ms TTL=254
Reply from 192.168.10.1: bytes=32 time=0ms TTL=254
Reply from 192.168.10.1: bytes=32 time=5ms TTL=254

Ping statistics for 192.168.10.1:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum = 8ms, Average = 4ms

SERVER>ping 192.168.11.1

Pinging 192.168.11.1 with 32 bytes of data:

Reply from 192.168.11.1: bytes=32 time=1ms TTL=254
Reply from 192.168.11.1: bytes=32 time=0ms TTL=254
Reply from 192.168.11.1: bytes=32 time=0ms TTL=254
Reply from 192.168.11.1: bytes=32 time=0ms TTL=254

Ping statistics for 192.168.11.1:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum = 1ms, Average = 0ms

SERVER>ping 192.168.15.1

Pinging 192.168.15.1 with 32 bytes of data:

Reply from 192.168.15.1: bytes=32 time=2ms TTL=253
Reply from 192.168.15.1: bytes=32 time=1ms TTL=253
Reply from 192.168.15.1: bytes=32 time=1ms TTL=253
Reply from 192.168.15.1: bytes=32 time=1ms TTL=253

Ping statistics for 192.168.15.1:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 1ms, Maximum = 2ms, Average = 1ms

SERVER>ping 192.168.15.2

Pinging 192.168.15.2 with 32 bytes of data:

Reply from 192.168.15.2: bytes=32 time=11ms TTL=125
Reply from 192.168.15.2: bytes=32 time=1ms TTL=125
Reply from 192.168.15.2: bytes=32 time=7ms TTL=125
Reply from 192.168.15.2: bytes=32 time=0ms TTL=125

Ping statistics for 192.168.15.2:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum = 11ms, Average = 4ms

SERVER>

从PCping 服务器

实验五——————RIPv2协议配置_第17张图片

至此,该实验完成!

你可能感兴趣的:(【网络配置】,———网络设备与配置)