思维导图+实验报告册
思维导图:
实验报告册
实验拓扑及要求
实验思路
1、配置IP地址
2、私网通,公网通---配置静态路由协议,测试公网通
3、配置R1-R5的ppp的pap认证,R5为主认证方
4、R2与R5之间使用ppp的CHAP认证,R5为主认证方;
5、R3与R5之间使用HDLC封装;
6、配置GRE VPN
7、配置MGRE VPN
一、配置IP地址
R1
[r1]int g0/0/0
[r1-GigabitEthernet0/0/0]ip add 192.168.1.1 24
[r1-GigabitEthernet0/0/0]int s4/0/0
[r1-Serial4/0/0]ip add 15.1.1.1 24
R2
[r2]int g0/0/0
[r2-GigabitEthernet0/0/0]ip add 192.168.2.2 24
[r2-GigabitEthernet0/0/0]int s4/0/0
[r2-Serial4/0/0]ip add 25.1.1.2 24
R3
[r3]int g0/0/0
[r3-GigabitEthernet0/0/0]ip add 192.168.3.3 24
[r3-GigabitEthernet0/0/0]int s4/0/0
[r3-Serial4/0/0]ip add 35.1.1.3 24
R4
[r4]int g0/0/1
[r4-GigabitEthernet0/0/1]ip add 192.168.4.4 24
[r4-GigabitEthernet0/0/1]int g0/0/0
[r4-GigabitEthernet0/0/0]ip add 45.1.1.4 24
R5
[r5-Serial4/0/0]int s4/0/1
[r5-Serial4/0/1]ip add 15.1.1.5 24
[r5-Serial4/0/0]int s3/0/0
[r5-Serial3/0/1]ip add 25.1.1.5 24
[r5-Serial4/0/1]int s4/0/0
[r5-Serial4/0/0]ip add 35.1.1.5 24
[r5-Serial4/0/0]int g0/0/0
[r5-GigabitEthernet0/0/0]ip add 45.1.1.5 24
[r5]int l0
[r5-LoopBack0]ip add 5.5.5.5 24
二、私网通,公网通---配置静态路由协议,测试公网通
- R1静态路由
[r1]ip route-static 0.0.0.0 0 15.1.1.5
- R2静态路由
[r2]ip route-static 0.0.0.0 0 25.1.1.5
- R3静态路由
[r3]ip route-static 0.0.0.0 0 35.1.1.5
- R4静态路由
[r4]ip route-static 0.0.0.0 0 45.1.1.5
三、配置R1和R5的PPP的PAP认证,R5为主认证方
R5配置(主认证方)
[r5]aaa
[r5-aaa]local-user wangdaye password cipher wdy12345
[r5-aaa]local-user wangdaye service-type ppp
[r5]int s4/0/1
[r5-Serial4/0/1]ppp authentication-modepap
R1配置(被认证方)
[r1]int s4/0/0
[r1-Serial4/0/0]ppp pap local-user wangdaye password cipher wdy12345
四、R2与R5之间使用ppp的CHAP认证,R5为主认证方
R5配置(主认证方)
[r5]aaa
[r5-aaa]local-user zhangdaye password cipher zdy12345
[r5-aaa]local-user zhangdaye service-type ppp
[r5-aaa]int s3/0/1
[r5-Serial3/0/1]ppp authentication-mode chap
R2配置(被认证方)
[r2]int s4/0/0
[r2-Serial4/0/0]ppp chap user zhangdaye
[r2-Serial4/0/0]ppp chap password cipher zdy12345
五、R3与R5之间使用HDLC封装
注:R5和R3的串口默认封装为PPP,需要改成HDLC
R5配置
[r5]int s4/0/0
[r5-Serial4/0/0]link-protocol hdlc
R3配置
[r3]int s4/0/0
[r3-Serial4/0/0]link-protocol hdlc
六、配置GRE VPN
- R1配置(GRE总部)
[r1]int t0/0/0
[r1-Tunnel0/0/0]ip add 10.1.1.1 24
[r1-Tunnel0/0/0]tunnel-protocol gre
[r1-Tunnel0/0/0]source 15.1.1.1
[r1-Tunnel0/0/0]description 45.1.1.4
[r1]ip route-static 192.168.4.0 24 Tunnel 0/0/0
- R4配置(GRE分支)
[r4]int t0/0/0
[r4-Tunnel0/0/0]ip add 10.1.1.2 24
[r4-Tunnel0/0/0]tunnel-protocol gre
[r4-Tunnel0/0/0]source 45.1.1.4
[r4-Tunnel0/0/0]description 15.1.1.1
[r4]ip route-static 192.168.1.0 24 Tunnel 0/0/0
七、配置MGRE VPN
- 配置NHRP协议,构建公共隧道
- R1(中心站点)配置
[r1]int t0/0/1
[r1-Tunnel0/0/1]ip add 10.1.2.1 24
[r1-Tunnel0/0/1]tunnel-protocol gre p2mp
[r1-Tunnel0/0/1]source 15.1.1.1
[r1-Tunnel0/0/1]nhrp network-id 1
- R2(分支)配置
[r2]int t0/0/1
[r2-Tunnel0/0/1]ip add 10.1.2.2 24
[r2-Tunnel0/0/1]tunnel-protocol gre p2mp
[r2-Tunnel0/0/1]source 25.1.1.2
[r2-Tunnel0/0/1]nhrp network-id 1
[r2-Tunnel0/0/1]nhrp entry 10.1.2.1 15.1.1.1 register
- 配置RIPv2,传递私网路由
- R1配置
[r1]rip 1
[r1-rip-1]version 2
[r1-rip-1]network 192.168.1.0
[r1-rip-1]network 10.1.1.0
[r1-rip-1]network 10.0.0.0
- R2配置
[r2]rip 1
[r2-rip-1]version 2
[r2-rip-1]undo summary
[r2-rip-1]network 192.168.2.0
[r2-rip-1]network 10.0.0.0
- R3配置
[r3]rip 1
[r3-rip-1]version 2
[r3-rip-1]undo summary
[r3-rip-1]network 192.168.3.0
[r3-rip-1]network 10.0.0.0
- R4配置
[r4]rip 1
[r4-rip-1]version 2
[r4-rip-1]undo summary
[r4-rip-1]network 192.168.4.0
[r4-rip-1]network 10.0.0.0
- Easy IP配置(PC访问R5环回)
R1配置
[r1]acl 2000
[r1-acl-basic-2000]rule permit source 192.168.2.0 0.0.0.255
[r1-acl-basic-2000]int s4/0/0
[r1-Serial4/0/0]nat outbound 2000
R2配置
[r2]acl 2000
[r2-acl-basic-2000]rule permit source 192.168.2.0 0.0.0.255
[r2-acl-basic-2000]int s4/0/0
[r2-Serial4/0/0]nat outbound 2000
R3配置
[r3]acl 2000
[r3-acl-basic-2000]rule permit source 192.168.3.0 0.0.0.255
[r3-acl-basic-2000]int s4/0/0
[r3-Serial4/0/0]nat outbound 2000
R4配置
[r4]acl 2000
[r4-acl-basic-2000]rule permit source 192.168.4.0 0.0.0.255
[r4-acl-basic-2000]int g0/0/0
[r4-GigabitEthernet0/0/0]nat outbound 2000
八、ping通测试
