当前位置: 代码迷 >> 综合 >> HCIP 第五天
  详细解决方案

HCIP 第五天

热度:70   发布时间:2023-12-13 22:01:30.0

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
路由器接口配置IP PC上配置IP地址 掩码 网关
R1和R5之间做PAP认证,R5为主认证方,R1为被认证方

PAP 明文传递用户名和密码
[r5]aaa 主认证方—服务端
[r5-aaa]local-user huawei password cipher huawei123
[r5-aaa]local-user huawei service-type ppp
[r5]int g 0/0/0
[r5-Serial0/0/0]link-protocol ppp
[r5-Serial0/0/0]ppp authentication-mode pap
[r5-Serial0/0/0]ip address 15.1.1.1 30

[r1]int g 0/0/1
[r1-Serial0/0/1]link-protocol ppp
[r1-Serial0/0/1]ppp pap local-user huawei password cipher huawei123
[r1-Serial0/0/1]ip address 10.1.1.2 30

[r5]aaa
[r5-aaa]local-user huawei password cipher huawei123
[r5-aaa]local-user huawei service-type ppp
[r5]int g 0/0/2
[r5-Serial0/0/2]link-protocol ppp
[r5-Serial0/0/2]ppp authentication-mode chap

被认证方
[r2]int g 0/0/1
[r2-Serial0/0/1]link-protocol ppp
[r2-Serial0/0/1]ppp chap user huawei
[r2-Serial0/0/1]ppp chap password cipher huawei123

R1 R2 R3之间做MGRE环境
中心站点:
interface Tunnel0/0/0
ip address 10.1.1.1 255.255.255.0
tunnel-protocol gre p2mp
source 15.1.1.1
nhrp entry multicast dynamic
nhrp network-id 100
分支站点:
interface Tunnel0/0/0
ip address 10.1.1.2 255.255.255.0
tunnel-protocol gre p2mp
source Serial 4/0/0
nhrp network-id 100
nhrp entry 10.1.1.1 15.1.1.1 register

R1与R4配置点到点GRE
[r1]interface Tunnel 0/0/0
[r1-Tunnel0/0/0]ip address 10.1.1.1 24
[r1-Tunnel0/0/0]tunnel-protocol gre
[r1-Tunnel0/0/0]source 12.1.1.1
[r1-Tunnel0/0/0]destination 23.1.1.2

rip
[r1]rip 1
[r1-rip-1]version 2
[r1-rip-1]un summary
[r1-rip-1]network 192.168.1.0
[r1-rip-1]net
[r1-rip-1]network 10.0.0.0

[r2]rip 1
[r2-rip-1]version 2
[r2-rip-1]un summary
[r2-rip-1]network 192.168.2.0
[r2-rip-1]net
[r2-rip-1]network 10.0.0.0

[r3]rip 1
[r3-rip-1]version 2
[r3-rip-1]un summary
[r3-rip-1]network 192.168.3.0
[r3-rip-1]net
[r3-rip-1]network 10.0.0.0

关闭水平分割
[r1-Tunnel0/0/0]undo rip split-horizon

实验最后ping r5环回没成功