【无标题】

本文详细描述了如何在华为路由器上配置PPP连接,包括PAP和CHAP认证方式,以及GRE隧道的设置,涉及IP地址分配和NHRP网络注册。
摘要由CSDN通过智能技术生成

配置r5为isp
[Huawei]sysname isp
[isp]int g0/0/0
[isp-Serial0/0/0]ip ad 200.1.15.2 24
[isp-Serial0/0/0]int g0/0/1
[isp-Serial0/0/1]ip ad 200.1.25.2 24
[isp-Serial0/0/1]int g0/0/2
[isp-Serial0/0/2]ip ad 200.1.35.2 24
[isp-Serial0/0/2]int e4/0/0
[isp-GigabitEthernet0/0/0]ip ad 200.1.45.2 24
[isp-GigabitEthernet0/0/0]q
[isp]int lo0
[isp-LoopBack0]ip ad 5.5.5.5 24
[isp-LoopBack0]q

r1和r5之间使用ppp的pap协议
[R5]aaa
[R5-aaa]local-user dcc password cipher 123456
Info: Add a new user.
[R5-aaa]local-user dcc service-type ppp
[R5-aaa]int s0/0/2
[R5-Serial0/0/2]link-protocol ppp
[R5-Serial0/0/2]ppp authentication-mode pap
[R1]int Serial 0/0/0
[R1-Serial0/0/0]link-protocol ppp
[R1-Serial0/0/0]ppp pap local-user dcc password cipher 123456
r2和r5之间的ppp的chap协议
[R5]int s0/0/1
[R5-Serial0/0/1]ip add 1.1.1.1 24
[R5-Serial0/0/1]ppp authentication-mode chap
[R5-Serial0/0/1]ppp chap user rta
[R5-Serial0/0/1]ppp chap password cipher hello
[R5-Serial0/0/1]q
[R5]aaa
[R5-aaa]ocal-user rtb password cipherhello
[R5-aaa]local-user rtb service-type ppp
[R2]int s0/0/0
[R2-Serial0/0/0]ip add 1.1.1.2 24
[R2-Serial0/0/0]ppp chap user rtb
[R2-Serial0/0/0]ppp chap password cipher hello
[R2-Serial0/0/0]q
[R2]aaa
[R2-aaa]local-user rta password cipherhello
[R2-aaa]local-user rta service-type ppp
hdlc封装
[R5]interface Serial0/0/0
[R5-Serial0/0/0]link-protocol ppp
[R2-Serial0/0/0]ip address 5.0.12.1 255.255.255.252
[R3-Serial0/0/0]interface Serial0/0/0
[R3-Serial0/0/0]link-protocol ppp
[R3-Serial0/0/0]ip address 5.0.23.2 255.255.255.252
MGRE环境
[R1]interface Tunnel 0/0/0
[R1-Tunnel0/0/0]ip address 10.1.1.1 24
[R1-Tunnel0/0/0]tunnel-protocol gre p2mp
[R1-Tunnel0/0/0]source 14.1.1.1
[R1-Tunnel0/0/0]nhrp entry multicast dynamic
[R1-Tunnel0/0/0]nhrp network-id 100

[R2]interface Tunnel 0/0/0
[R2-Tunnel0/0/0]ip ad 10.1.1.2 24
[R2-Tunnel0/0/0]tunnel-protocol gre p2mp
[R2-Tunnel0/0/0]source Serial 4/0/0
[R2-Tunnel0/0/0]nhrp network-id 100
[R2-Tunnel0/0/0]nhrp entry 10.1.1.1 14.1.1.1 register
[R3]interface Tunnel 0/0/0
[R3-Tunnel0/0/0]ip ad 10.1.1.2 24
[R3-Tunnel0/0/0]tunnel-protocol gre p2mp
[R3-Tunnel0/0/0]source Serial 4/0/0
[R3-Tunnel0/0/0]nhrp network-id 100
[R3-Tunnel0/0/0]nhrp entry 10.1.1.1 14.1.1.1 register
点到点gre
[R1]
[R1]interface GigabitEthernet0/0/0
[R1-GigabitEthernet0/0/0]ip address 12.1.1.2 255.255.255.0
[R1-GigabitEthernet0/0/0]q
[R1]interface Tunnel0/0/0
[R1-Tunnel0/0/0]ip address 192.168.14.2 255.255.255.0
[R4]interface GigabitEthernet0/0/0
[R4-GigabitEthernet0/0/0]ip address 13.1.1.4 255.255.255.0
[R4-GigabitEthernet0/0/0]q
[R4]interface Tunnel0/0/0
[R4-Tunnel0/0/0] ip address 192.168.41.3 255.255.255.0
[r1]
interface Tunnel0/0/0
tunnel-protocol gre
source 12.1.1.2
destination 13.1.1.3
[r4]
interface Tunnel0/0/0
tunnel-protocol gre
source 13.1.1.3
destination 12.1.1.2
[r4]
[r1]ping 192.168.14.2

在这里插入图片描述

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值