PPP实验报告

文章描述了管理员如何在路由器R1、R2和R3上配置IP地址、MP-group接口,并启用单向和双向Chap验证以确保安全通信。同时,文中展示了接口状态的变化以及ping测试的结果。
摘要由CSDN通过智能技术生成

1.配置Ip地址

R1:
[R1]int Serial 3/0/0
[R1-Serial3/0/0]ip address 192.168.1.1 24
[R1-Serial3/0/0]q
[R1]
 
 
R2:
[R2]int Serial 3/0/0 
[R2-Serial3/0/0]ip address 192.168.1.2 24
[R2-Serial3/0/0]
Mar 24 2024 21:26:52-08:00 R2 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol PPP
 IPCP on the interface Serial3/0/0 has entered the UP state. 

创建MP-group接口并让接口加入MP-group组

R2

 

[R2]interface Mp-group 0/0/0

[R2]interface Serial 3/0/1
[R2-Serial3/0/1]ppp mp Mp-group 0/0/0
Mar 24 2024 21:39:06-08:00 R2 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol PPP
 on the interface Serial3/0/1 has entered the DOWN state. 
[R2-Serial3/0/1]q
[R2]int Serial 4/0/0
[R2-Serial4/0/0]ppp mp Mp-group 0/0/0
Mar 24 2024 21:39:40-08:00 R2 %%01IFNET/4/LINK_STATE(l)[3]:The line protocol PPP
 on the interface Serial4/0/0 has entered the DOWN state. 
 

R3 
 


[R3]interface Mp-group 0/0/0
[R3-Mp-group0/0/0]ip address 192.168.2.4 24
[R3-Mp-group0/0/0]
Mar 24 2024 22:01:48-08:00 R3 %%01IFNET/4/LINK_STATE(l)[5]:The line protocol PPP
 IPCP on the interface Mp-group0/0/0 has entered the UP state. 
 
[R3]interface Serial 3/0/0
[R3-Serial3/0/0]ppp mp Mp-group 0/0/0
Mar 24 2024 21:48:18-08:00 R3 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol PPP
 on the interface Serial3/0/0 has entered the DOWN state. 
[R3-Serial3/0/0]
Mar 24 2024 21:48:21-08:00 R3 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol PPP
 on the interface Serial3/0/0 has entered the UP state. 
[R3-Serial3/0/0]
Mar 24 2024 21:48:21-08:00 R3 %%01IFNET/4/LINK_STATE(l)[2]:The line protocol PPP
 on the interface Mp-group0/0/0 has entered the UP state. 
[R3-Serial3/0/0]q
[R3]interface Serial 3/0/1	
[R3-Serial3/0/1]ppp mp Mp-group 0/0/0
Mar 24 2024 21:48:47-08:00 R3 %%01IFNET/4/LINK_STATE(l)[3]:The line protocol PPP
 on the interface Serial3/0/1 has entered the DOWN state. 
[R3-Serial3/0/1]
Mar 24 2024 21:48:53-08:00 R3 %%01IFNET/4/LINK_STATE(l)[4]:The line protocol PPP
 on the interface Serial3/0/1 has entered the UP state. 
[R3-Serial3/0/1]q

查看配置


[R3-Mp-group0/0/0]display ip interface brief
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 2
The number of interface that is DOWN in Physical is 5
The number of interface that is UP in Protocol is 2
The number of interface that is DOWN in Protocol is 5
 
Interface                         IP Address/Mask      Physical   Protocol  
GigabitEthernet0/0/0              unassigned           down       down      
GigabitEthernet0/0/1              unassigned           down       down      
GigabitEthernet0/0/2              unassigned           down       down      
Mp-group0/0/0                     192.168.2.4/24       up         up        
NULL0                             unassigned           up         up(s)     
Serial4/0/0                       unassigned           down       down      
Serial4/0/1                       unassigned           down       down      
[R3-Mp-group0/0/0]
 
 
 
 

配置R1-R2单向的chap验证 

主验证方:

[R2]aaa
[R2-aaa]local-user xiaotudou password cipher xtd12345
Info: Add a new user.
[R2-aaa]local-user xiaotudou service-type ppp
[R2-aaa]q
[R2]interface Serial 3/0/0
[R2-Serial3/0/0]ppp authentication-mode chap

被验证方:

 

[R1]interface Serial 3/0/0
[R1-Serial3/0/0]ppp chap user xiaotudou
[R1-Serial3/0/0]ppp chap password cipher xtd12345
[R1-Serial3/0/0]

测试:

 

[R1]ping 192.168.1.2
  PING 192.168.1.2: 56  data bytes, press CTRL_C to break
    Reply from 192.168.1.2: bytes=56 Sequence=1 ttl=255 time=40 ms
    Reply from 192.168.1.2: bytes=56 Sequence=2 ttl=255 time=40 ms
    Reply from 192.168.1.2: bytes=56 Sequence=3 ttl=255 time=20 ms
    Reply from 192.168.1.2: bytes=56 Sequence=4 ttl=255 time=30 ms
    Reply from 192.168.1.2: bytes=56 Sequence=5 ttl=255 time=10 ms
 
  --- 192.168.1.2 ping statistics ---
    5 packet(s) transmitted
    5 packet(s) received
    0.00% packet loss
    round-trip min/avg/max = 10/28/40 ms

配置R2和R3的双向chap验证

R2:
主:

[R2-aaa]local-user tudou password cipher td12345
Info: Add a new user.    
[R2-aaa]local-user tudou service-type ppp
[R2-aaa]q
[R2]int Serial 3/0/1
[R2-Serial3/0/1]ppp authentication-mode chap


 
 
从:

[R2]interface Serial 4/0/0
[R2-Serial4/0/0]ppp chap user tudoudou
[R2-Serial4/0/0]ppp chap password cipher tdd12345
 


 
R3:
从:

[R3]interface Serial 3/0/0
[R3-Serial3/0/0]ppp chap user tudou
[R3-Serial3/0/0]ppp chap password cipher td12345
 


 
主:
 

[R3-aaa]local-user tudoudou password cipher tdd12345
Info: Add a new user.
[R3-aaa]local-user tudoudou service-type ppp
[R3]int Serial 3/0/1
[R3-Serial3/0/1]ppp authentication-mode chap
[R3-Serial3/0/1]

  • 2
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值