拓扑图
要求
1.R5为ISP,只能进行IP地址配置;其所有地址均为公有IP地址
2.R1和R5间使用PPP的PAP认证,R5为主认证方;
R2与R5之间使用PPP的chap认证,R5为主认证方;
R3与R5之间使用HDLC封装。
3.R1/R2/R3构建一个MGRE环境,R1为中心站点;R1、R4间为点到点的GRE。
4.整个私有网络基于RIP全网可达
5.所有PC设置私有IP为源IP,可以访问R5环回
ppp的pap认证:
[r1-Serial4/0/0]ppp pap local-user huawei password cipher 123456
[r5-aaa]local-user huawei password cipher 123456
[r5-aaa]local-user huawei service-type ppp
[r5-Serial4/0/0]ppp authentication-mode pap
ppp的chap认证:
[r2-Serial4/0/0]ppp chap user admin
[r2-Serial4/0/0]ppp chap password cipher 654321
[r5-aaa]local-user admin password cipher 654321
[r5-aaa]local-user admin service-type ppp
[r5-Serial4/0/1]ppp authentication-mode chap
hdlc封装:
[r3]int ser 4/0/0
[r3-Serial4/0/0]link-protocol hdlc[r3-Serial4/0/0]ip address unnumbered interface GigabitEthernet 0/0/0
[r3]ip route-static 35.0.0.1 24 Serial 4/0/0
mgre环境搭建 :
[r1]int Tunnel 0/0/0
[r1-Tunnel0/0/0]ip ad 192.168.1.1 25
[r1-Tunnel0/0/0]tunnel-protocol gre p2mp[r1-Tunnel0/0/0]source 15.0.0.1
[r2]int Tunnel 0/0/0
[r2-Tunnel0/0/0]ip ad 192.168.3.2 24
[r2-Tunnel0/0/0]tunnel-protocol gre p2mp[r2-Tunnel0/0/0]source Serial 4/0/0
[r2-Tunnel0/0/0]nhrp entry 192.168.3.1 25.0.0.1 register