PPP配置

该文介绍了在华为路由器上配置PAP和CHAP认证的过程,包括设置本地用户、密码、服务类型以及链路协议,并展示了通过PPP协议进行身份验证后,两台路由器间成功通信的测试结果。
摘要由CSDN通过智能技术生成

一、PAP认证

RTA:
<Huawei>system-view
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname RTA
[RTA]aaa
[RTA-aaa]local-user huawei password cipher hello
Info: Add a new user.
[RTA-aaa]
[RTA-aaa]quit
[RTA]interface s2/0/0
[RTA-Serial2/0/0]link-protocol ppp
[RTA-Serial2/0/0]ppp authentication-mode pap
[RTA-Serial2/0/0]ip address 10.1.41.1 30
[RTA-Serial2/0/0]quit
[RTA]quit
<RTA>save
  The current configuration will be written to the device. 
  Are you sure to continue? (y/n)[n]:y
  It will take several minutes to save configuration file, please wait........
  Configuration file had been saved successfully
  Note: The configuration file will take effect after being activated
<RTA>
RTB:
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname RTB
[RTB]interface s2/0/0
[RTB-Serial2/0/0]link-protocol ppp
[RTB-Serial2/0/0]ppp pap local-user huawei password cipher hello
[RTB-Serial2/0/0]ip address 10.1.41.2 30
[RTB-Serial2/0/0]
Sep  2 2022 09:59:29-08:00 RTB %%01IFNET/4/LINK_STATE(l)[0]:The line protocol PP
P IPCP on the interface Serial2/0/0 has entered the UP state. 
[RTB-Serial2/0/0]quit
[RTB]quit
<RTB>save
  The current configuration will be written to the device. 
  Are you sure to continue? (y/n)[n]:y
  It will take several minutes to save configuration file, please wait.........
  Configuration file had been saved successfully
  Note: The configuration file will take effect after being activated
<RTB>
测试:
<RTA>ping 10.1.41.2
  PING 10.1.41.2: 56  data bytes, press CTRL_C to break
    Reply from 10.1.41.2: bytes=56 Sequence=1 ttl=255 time=70 ms
    Reply from 10.1.41.2: bytes=56 Sequence=2 ttl=255 time=30 ms
    Reply from 10.1.41.2: bytes=56 Sequence=3 ttl=255 time=20 ms
    Reply from 10.1.41.2: bytes=56 Sequence=4 ttl=255 time=30 ms
    Reply from 10.1.41.2: bytes=56 Sequence=5 ttl=255 time=30 ms

  --- 10.1.41.2 ping statistics ---
    5 packet(s) transmitted
    5 packet(s) received
    0.00% packet loss
    round-trip min/avg/max = 20/36/70 ms

二、CHAP认证 

RT1:
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname RT1
[RT1]aaa
[RT1-aaa]local-user huawei password cipher hello
Info: Add a new user.
[RT1-aaa]local-user huawei service-type ppp
[RT1-aaa]quit
[RT1]interface s2/0/0
[RT1-Serial2/0/0]link-protocol ppp
[RT1-Serial2/0/0]ppp authentication chap
[RT1-Serial2/0/0]ip address 10.1.41.1 30
[RT1-Serial2/0/0]quit
[RT1]quit
<RT1>save
  The current configuration will be written to the device. 
  Are you sure to continue? (y/n)[n]:y
  It will take several minutes to save configuration file, please wait.......
  Configuration file had been saved successfully
  Note: The configuration file will take effect after being activated
<RT1>
RT2:
<Huawei>system-view
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname RT2
[RT2]interface s2/0/0
[RT2-Serial2/0/0]link-protocol ppp
[RT2-Serial2/0/0]ppp chap user huawei
[RT2-Serial2/0/0]ppp chap password cipher hello
[RT2-Serial2/0/0]ip address 10.1.41.2 30
[RT2-Serial2/0/0]
Sep  2 2022 12:31:33-08:00 RT2 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol PP
P IPCP on the interface Serial2/0/0 has entered the UP state. 
[RT2-Serial2/0/0]quit
[RT2]quit
<RT2>save
  The current configuration will be written to the device. 
  Are you sure to continue? (y/n)[n]:y
  It will take several minutes to save configuration file, please wait........
  Configuration file had been saved successfully
  Note: The configuration file will take effect after being activated
<RT2>
测试:
<RT1>ping 10.1.41.2
  PING 10.1.41.2: 56  data bytes, press CTRL_C to break
    Reply from 10.1.41.2: bytes=56 Sequence=1 ttl=255 time=70 ms
    Reply from 10.1.41.2: bytes=56 Sequence=2 ttl=255 time=50 ms
    Reply from 10.1.41.2: bytes=56 Sequence=3 ttl=255 time=70 ms
    Reply from 10.1.41.2: bytes=56 Sequence=4 ttl=255 time=50 ms
    Reply from 10.1.41.2: bytes=56 Sequence=5 ttl=255 time=50 ms

  --- 10.1.41.2 ping statistics ---
    5 packet(s) transmitted
    5 packet(s) received
    0.00% packet loss
    round-trip min/avg/max = 50/58/70 ms

<RT1>

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值