一、实验拓扑
三、实验步骤
1、配置IP地址
2、R1和R5间使用PPP的PAP认证,R5为主认证方
3、R2和R5间使用PPP的CHAP认证,R5为主认证方
4、R3与R5间使用HDLC封装
5、配置缺省
6、R1、R2、R3、R4做nat
7、R1/2/3构建一个MGRE环境,R1为中心站点
8、R1/4间为点到点GRE
9、整个私有网络基于RIP全网可达
10、打破水平分割
三、实验步骤
1、配置IP地址
R1:
192.168.1.0/24
1.1.1.1/24
R2:
192.168.2.0/24
2.2.2.2/24
R3:
192.168.3.0/24
3.3.3.3/24
R4:
192.168.4.0/24
4.4.4.4/24
上为网段IP 下为环回路由IP
2、R1和R5间使用PPP的PAP认证,R5为主认证方
R5:
[r5]aaa
[r5-aaa]local-user huawei password cipher 123456
Info: Add a new user.
[r5-aaa]local-user huawei service-type PPP
[r5-aaa]int s4/0/0
[r5-Serial4/0/0]link-protocol ppp
[r5-Serial4/0/0]ppp authentication-mode pap
R1:
[r1]int s0/0/0
[r1-Serial0/0/0]link-protocol ppp
[r1-Serial0/0/0]ppp pap local-user huawei
[r1-Serial0/0/0]ppp pap local-user huawei password cipher 123456
3、R2和R5间使用PPP的CHAP认证,R5为主认证方
R5:
[r5-aaa]int s4/0/1
[r5-Serial0/0/1]link-protocol ppp
[r5-Serial0/0/1]ppp authentication-mode chap
R2:
[r2]int s0/0/1
[r2-Serial0/0/1]link-protocol ppp
[r2-Serial0/0/1]ppp chap user piupiu
[r2-Serial0/0/1]ppp chap password cipher 123456
4、R3与R5间HDLC封装
R5:
[r5]int s0/0/2
[r5-Serial3/0/2]link-protocol hdlc
Warning: The encapsulation protocol of the link will be changed. Continue? [Y/N]
:y
R3:
[r3]int s0/0/0
[r3-Serial0/0/0]link-protocol hdlc
Warning: The encapsulation protocol of the link will be changed. Continue? [Y/N]
:y
5、配置缺省
[r1]ip route-static 0.0.0.0 0 192.168.1.2
[r2]ip route-static 0.0.0.0 0 192.168.2.2
[r3]ip route-static 0.0.0.0 0 192.168.3.2
[r4]ip route-static 0.0.0.0 0 192.168.4.2