實驗十六——————動態路由OSPF基礎

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

實驗內容

1、利用OSPF動態路由協議完成各個子網網路之間的互聯通訊


2、利用OSPF動態路由協議完成不同自治域之間的互聯通訊


實驗目的

  • 瞭解OSPF基本配置
  • 學會識別OSPF路由

實驗步驟

1、利用OSPF動態路由協議完成各個子網網路之間的互聯通訊

網路拓撲


PC主機的IP地址:192.16.1.1  閘道器地址:172.16.1.254

路由器地址根據實驗圖進行配置此處不再複述。

路由器其他配置

R1:

R2:


R3:


測試

使用pc1分別測試172.16.1.0、192.168.12.0、192.168.23.0、172.16.32.1、 172.16.33.1、172.16.34.1六個子網

PC>ipconfig

FastEthernet0 Connection:(default port)

   Link-local IPv6 Address.........: FE80::260:2FFF:FE36:1CCB
   IP Address......................: 172.16.1.1
   Subnet Mask.....................: 255.255.255.0
   Default Gateway.................: 172.16.1.254

PC>ping 172.16.1.254

Pinging 172.16.1.254 with 32 bytes of data:

Reply from 172.16.1.254: bytes=32 time=1ms TTL=255
Reply from 172.16.1.254: bytes=32 time=0ms TTL=255
Reply from 172.16.1.254: bytes=32 time=0ms TTL=255
Reply from 172.16.1.254: bytes=32 time=0ms TTL=255

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

PC>ping 192.168.12.1

Pinging 192.168.12.1 with 32 bytes of data:

Reply from 192.168.12.1: bytes=32 time=1ms TTL=255
Reply from 192.168.12.1: bytes=32 time=0ms TTL=255
Reply from 192.168.12.1: bytes=32 time=0ms 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 = 1ms, Average = 0ms

PC>ping 192.168.12.2

Pinging 192.168.12.2 with 32 bytes of data:

Reply from 192.168.12.2: bytes=32 time=8ms TTL=254
Reply from 192.168.12.2: bytes=32 time=5ms TTL=254
Reply from 192.168.12.2: bytes=32 time=5ms TTL=254
Reply from 192.168.12.2: bytes=32 time=1ms TTL=254

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

PC>ping 192.168.23.2

Pinging 192.168.23.2 with 32 bytes of data:

Reply from 192.168.23.2: bytes=32 time=1ms TTL=254
Reply from 192.168.23.2: bytes=32 time=6ms TTL=254
Reply from 192.168.23.2: bytes=32 time=5ms TTL=254
Reply from 192.168.23.2: bytes=32 time=5ms TTL=254

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

PC>ping 192.168.23.3

Pinging 192.168.23.3 with 32 bytes of data:

Reply from 192.168.23.3: bytes=32 time=12ms TTL=253
Reply from 192.168.23.3: bytes=32 time=2ms TTL=253
Reply from 192.168.23.3: bytes=32 time=2ms TTL=253
Reply from 192.168.23.3: bytes=32 time=6ms TTL=253

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

PC>ping 172.16.32.1

Pinging 172.16.32.1 with 32 bytes of data:

Reply from 172.16.32.1: bytes=32 time=7ms TTL=253
Reply from 172.16.32.1: bytes=32 time=2ms TTL=253
Reply from 172.16.32.1: bytes=32 time=6ms TTL=253
Reply from 172.16.32.1: bytes=32 time=2ms TTL=253

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

PC>ping 172.16.33.1

Pinging 172.16.33.1 with 32 bytes of data:

Reply from 172.16.33.1: bytes=32 time=2ms TTL=253
Reply from 172.16.33.1: bytes=32 time=6ms TTL=253
Reply from 172.16.33.1: bytes=32 time=2ms TTL=253
Reply from 172.16.33.1: bytes=32 time=2ms TTL=253

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

PC>ping 172.16.34.1

Pinging 172.16.34.1 with 32 bytes of data:

Reply from 172.16.34.1: bytes=32 time=8ms TTL=253
Reply from 172.16.34.1: bytes=32 time=11ms TTL=253
Reply from 172.16.34.1: bytes=32 time=2ms TTL=253
Reply from 172.16.34.1: bytes=32 time=2ms TTL=253

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

PC>

實驗的第一部分到此結束,下面開始實驗的第二部分

利用OSPF動態路由協議完成不同自治域之間的互聯通訊

路由器配置(在實驗一的基礎之上進行設定,根據實驗要求可以釋出只需要修改R1\R2即可):

R1


R2


測試:



結論:實現了不同自治域之間的互聯通訊。


相關文章