實驗五——————RIPv2協議配置

FLy_鵬程萬里發表於2018-05-27

實驗目的

通過本實驗,可以掌握以下技能:

  • 配置介面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



sa





gill



配置RIPV2協議

sa


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


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


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協議驗證

sa


twins


gill 


驗證IP配置

sa


twins


gill


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 伺服器


至此,該實驗完成!

相關文章