GRE VPN——配置实验

1,按照图示配置IP地址

r1:

r2:

r3:

2,在R1和R3配置默认路由使公网区域互通

R1\]ip route-static 0.0.0.0 0 100.1.1.2 R3\]ip route-static 0.0.0.0 0 100.2.2.2 ### 3,在R1和R3上配置GRE VPN,使两端私网能够互相访问,Tunnel口IP地址如图,隧道双up: [R1-Tunnel0/0/0]tunnel-protocol gre [R1-Tunnel0/0/0]source 100.1.1.1 [R1-Tunnel0/0/0]destination 100.2.2.3 [R3-Tunnel0/0/0]tunnel-protocol gre [R3-Tunnel0/0/0]source 100.2.2.3 [R3-Tunnel0/0/0]destination 100.1.1.1 ping -a 192.168.3.1 192.168.3.3 PING 192.168.3.3: 56 data bytes, press CTRL_C to break Request time out Reply from 192.168.3.3: bytes=56 Sequence=2 ttl=255 time=40 ms Reply from 192.168.3.3: bytes=56 Sequence=3 ttl=255 time=30 ms Reply from 192.168.3.3: bytes=56 Sequence=4 ttl=255 time=30 ms Reply from 192.168.3.3: bytes=56 Sequence=5 ttl=255 time=20 ms --- 192.168.3.3 ping statistics --- 5 packet(s) transmitted 4 packet(s) received 20.00% packet loss round-trip min/avg/max = 20/30/40 ms ### 4,在R1和R3上配置RIPV2来传递两端私网路由 \[R1\]ip route-static 192.168.2.0 24 192.168.3.3 \[R3\]ip route-static 192.168.1.0 24 192.168.3.1 ping 192.168.1.1 PING 192.168.1.1: 56 data bytes, press CTRL_C to break Request time out Reply from 192.168.1.1: bytes=56 Sequence=2 ttl=127 time=20 ms Reply from 192.168.1.1: bytes=56 Sequence=3 ttl=127 time=30 ms Reply from 192.168.1.1: bytes=56 Sequence=4 ttl=127 time=30 ms Reply from 192.168.1.1: bytes=56 Sequence=5 ttl=127 time=20 ms --- 192.168.1.1 ping statistics --- 5 packet(s) transmitted 4 packet(s) received 20.00% packet loss round-trip min/avg/max = 20/25/30 ms

相关推荐
Kookoos24 分钟前
Dynamics 365 Finance + Power Automate 自动化凭证审核
运维·自动化·dynamics 365·power automate
DevSecOps选型指南4 小时前
2025软件供应链安全最佳实践︱证券DevSecOps下供应链与开源治理实践
网络·安全·web安全·开源·代码审计·软件供应链安全
ABB自动化4 小时前
for AC500 PLCs 3ADR025003M9903的安全说明
服务器·安全·机器人
努力学习的小廉4 小时前
深入了解linux系统—— 进程池
linux·运维·服务器
秃头菜狗4 小时前
各个主要目录的功能 / Linux 常见指令
linux·运维·服务器
利刃大大4 小时前
【在线五子棋对战】二、websocket && 服务器搭建
服务器·c++·websocket·网络协议·项目
国科安芯5 小时前
抗辐照MCU在卫星载荷电机控制器中的实践探索
网络·嵌入式硬件·硬件工程·智能硬件·空间计算
vfvfb5 小时前
bat批量去掉本文件夹中的文件扩展名
服务器·windows·批处理·删除扩展名·bat技巧
jiunian_cn6 小时前
【Linux】centos软件安装
linux·运维·centos
藥瓿亭6 小时前
K8S认证|CKS题库+答案| 6. 创建 Secret
运维·ubuntu·docker·云原生·容器·kubernetes·cks