實驗十七————點對點協議認證

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

實驗內容

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

2.利用PPP協議的PAP、CHAP認證完成

IP地址要求

  1. PC0和RouterA之間,使用172.16.1.0/24網路;
  2. RouterA和RouteB之間,使用192.168.1.0/24網路;
  3. RouterB和RouteC之間,使用192.168.2.0/24網路;
  4. PC1和RouterC之間,使用172.16.2.0/24網路;
  5. RouteB為DCE裝置,時脈頻率設為64000;

PPP設定要求

  1. RouterA和RouteB之間,使用PAP雙向認證(使用者名稱和密碼自定義)
  2. RouterB和RouteC之間,使用CHAP雙向認證(密碼自定義)

實驗目的

(1)掌握廣域網協議PPP的工作原理

(2)掌握PPP協議的PAP、CHAP認證工作原理

(3)掌握PPP的基本配置

(4)掌握標準ACL的配置;

(5)理解標準ACL在接入控制中的應用

實驗步驟

網路拓撲結構圖


PC的IP資訊:

PC0的IP地址:172.16.1.1 閘道器地址:172.16.1.254
PC1的IP地址:172.16.2.1 閘道器地址:172.16.2.254

路由器:

路由器的具體配置

RouterA


RouterB:


RouterC



測試

PC0ping其他所有的路由器以及PC1

PC>ipconfig

FastEthernet0 Connection:(default port)

   Link-local IPv6 Address.........: FE80::2E0:B0FF:FE9A:7920
   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=1ms 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.1.1

Pinging 192.168.1.1 with 32 bytes of data:

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

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

PC>ping 172.16.1.2

Pinging 172.16.1.2 with 32 bytes of data:

Request timed out.
Request timed out.

Ping statistics for 172.16.1.2:
    Packets: Sent = 2, Received = 0, Lost = 2 (100% loss),

Control-C
^C
PC>ping 192.168.1.2

Pinging 192.168.1.2 with 32 bytes of data:

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

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

PC>ping 192.168.2.1

Pinging 192.168.2.1 with 32 bytes of data:

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

Ping statistics for 192.168.2.1:
    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.2.2

Pinging 192.168.2.2 with 32 bytes of data:

Reply from 192.168.2.2: bytes=32 time=8ms TTL=253
Reply from 192.168.2.2: bytes=32 time=13ms TTL=253
Reply from 192.168.2.2: bytes=32 time=6ms TTL=253
Reply from 192.168.2.2: bytes=32 time=7ms TTL=253

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

PC>ping 172.16.2.254

Pinging 172.16.2.254 with 32 bytes of data:

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

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

PC>ping 172.16.2.1

Pinging 172.16.2.1 with 32 bytes of data:

Request timed out.
Reply from 172.16.2.1: bytes=32 time=6ms TTL=125
Reply from 172.16.2.1: bytes=32 time=2ms TTL=125
Reply from 172.16.2.1: bytes=32 time=186ms TTL=125

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

PC>

結論:實現了各個子網之間的互聯通訊

下面使用PPP協議的PAP、CHAP完成認證

ppp設定要求:

1.RouterA和RouteB之間,使用PAP雙向認證(使用者名稱和密碼自定義)     

2.RouterB和RouteC之間,使用CHAP雙向認證(密碼自定義)

RouterA:


RouterB:


RouterC:


測試:

結論:RouterA和RouterB之間完成了PAP認證,RouterB和RouterC之間完成了CHAP認證,實現了各個路由器之間的互通。

實驗到此結束!

相關文章