文章目录
实验1
实验环境
实验需求
实现PC1和PC2跨公网互访
实验步骤
1.配置PC1和PC2的IP、子网掩码、网关
2.配置路由器IP
R1 : G0/0/0 IP:192.168.1.254 24
G0/0/1 IP:200.1.22.1 24
R2 : G0/0/0 IP:200.1.23.1 24
G0/0/1 IP:182.168.1.254 24
R3 : G0/0/0 IP:200.1.22.2 24
G0/0/1 IP:200.1.23.2 24
3.配置GRE
[R1]interface Tunnel 0/0/1
[R1-Tunnel0/0/1]ip address 1.1.1.1 24
[R1-Tunnel0/0/1]tunnel-protocol gre
[R1-Tunnel0/0/1]source 200.1.22.1
[R1-Tunnel0/0/1]destination 200.1.23.1
R2:
[R2]int Tunnel 0/0/0
[R2-Tunnel0/0/0]ip add 2.2.2.2 24