一、实验内容及要求
- R5为ISP,只能进行IP地址配置;其所有地址均为公有IP地址
- R1和R5间使用PPP的PAP认证,R5为主认证方;
- R2与R5之间使用PPP的chap认证,R5为主认证方;
- R3与R5之间使用HDLC封装。
- R1/R2/R3构建一个MGRE环境,R1为中心站点;
- R1、R4间为点到点的GRE。
- 整个私有网络基于RIP全网可达
- 所有PC设置私有IP为源IP,可以访问R5环回
二、地址配置
//配置公共网络
R1
----r1 的 mgre
- [r1]interface GigabitEthernet 0/0/0
- [r1-GigabitEthernet0/0/0]ip address 192.168.1.3 24
- [r1-GigabitEthernet0/0/0]q
- [r1]interface Serial 2/0/0
- [r1]-Serial2/0/0]ip address 15.0.0.2 8
[r1]ip route-static 0.0.0.0 0 15.0.0.3
--r1 的 gre
- [r1-Tunnel0/0/0]interface Tunnel 0/0/1
- [r1-Tunnel0/0/1]ip address 192.168.6.1 24
- [r1-Tunnel0/0/1]tunnel-protocol gre
- [r1-Tunnel0/0/1]source 15.0.0.2
- [r1-Tunnel0/0/1]destination 45.0.0.2
R2
- [r2]interface GigabitEthernet 0/0/0
- [r2-GigabitEthernet0/0/0]ip address 192.168.2.3 24
- [r2-GigabitEthernet0/0/0]g
- [r2]interface Serial 2/0/0
- [r2-Serial2/0/0]ip ad
[r2-Serial2/0/0]ip address 25.0.0.2 8
[r2]ip route-static 0.0.0.0 0 25.0.0.3
R3
- [r3]interface GigabitEthernet 0/0/0
- [r3-GigabitEthernet0/0/0]ip ad
- [r3-GigabitEthernet0/0/0]ip address 192.168.3.3 24
- [r3-GigabitEthernet0/0/0]q
- [r3]linterface Serial 2/0/0
- [r3]-Serial2/0/0]ip address 35.0.0.2 8
[r3]ip route-static 0.0.0.0 0 35.0.0.3
R4
- [R4]interface GigabitEthernet 0/0/0
- [R4-GigabitEthernet0/0/0]ip address 45.0.0.2 8
- [R4-GigabitEthernet0/0/0]interface GigabitEthernet 0/0/1
- [R4-GigabitEthernet0/0/1]ip address 192.168.4.3 24
[R4]ip route-static 0.0.0.0 0 45.0.0.3
R5
- [ISP]interface Serial 1/0/0
- [ISP-Serial1/0/0]ip address 15.0.0.3 8
- [ISP-Serial1/0/0]interface serial 2/0/0
- [ISP-Serial2/0/0]ip address 25.0.0.3 8
- [ISP-Serial2/0/0]interface Serial 1/0/1
- [ISP-Serial1/0/1]ip address 35.0.0.3 8
- [ISP-Serial1/0/1]q
- [ISP]interface GigabitEthernet 0/0/0
- [ISP-GigabitEthernet0/0/0]ip address 45.0.0.3 8
//配置私网
//中心配置
- [r1]int
- [r1]interface Tunnel 0/0/0
- [r1-Tunnel0/0/0]ip address 192.168.5.1 24
- [r1-Tunnel0/0/0]tunnel-protocol gre p2mp
- [r1-Tunnel0/0/0]source 15.0.0.2
- [r1-Tunnel0/0/0]nhrp network-id 1
//分支配置 msre
- [r2]interface Tunnel 0/0/0
- [r2-Tunnel0/0/0]ip address 192.168.5.2 24
- [r2-Tunnel0/0/0]tunnel-protocol gre p2mp
- [r2-Tunnel0/0/0lsource 25.0.0.2