一. 划分ip地址
pc1,pc2,pc3:
R1:
R2:
R3:
R4:
配置缺省路由
[R1]ip route-static 0.0.0.0 0 12.1.1.2
[R3]ip route-static 0.0.0.0 0 23.1.1.2
[R4]ip route-static 0.0.0.0 0 24.1.1.2
二.配置nat
R1:
R3:
R4:
三.R1 R2之间使用hdlc封装
四.R2 R3 为ppp封装,pap认证 ,R2为主认证方
五. R2 R4 为ppp封装,chap认证 ,R2为主认证方
[R2-Serial3/0/0]ppp authentication-mode chap
[R4-Serial4/0/0]ppp chap user huawei
[R4-Serial4/0/0]ppp chap password cipher huawei
六.图中要求为R1 R2 R3构建MGRE环境,但R1 R2 R3 为直连路由,故应该为R1 R3 R4 构建MGRE环境
R1配置
关闭水平路由,开启广播
[R1-Tunnel0/0/0]nhrp network-id 100
R3配置:
R4 配置:
七. rip全网可达
R1配置:
R3配置:
R4 配置:
八.测试