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

相关推荐
深圳市恒星物联科技有限公司3 分钟前
水质流量监测仪:复合指标监测的管网智能感知设备
大数据·网络·人工智能
爱吃生蚝的于勒19 分钟前
【Linux】进程信号之捕捉(三)
linux·运维·服务器·c语言·数据结构·c++·学习
The森31 分钟前
Linux IO 模型纵深解析 01:从 Unix 传统到 Linux 内核的 IO 第一性原理
linux·服务器·c语言·经验分享·笔记·unix
文艺理科生Owen41 分钟前
Nginx 路径映射深度解析:从本地开发到生产交付的底层哲学
运维·nginx
期待のcode1 小时前
Redis的主从复制与集群
运维·服务器·redis
翼龙云_cloud1 小时前
腾讯云代理商: Linux 云服务器搭建 FTP 服务指南
linux·服务器·腾讯云
科技块儿1 小时前
2026年我会推荐哪些IP归属地查询网站?
网络·ip地址·ip归属地·运维工具·网络工具·实用网站·2026工具推荐
REDcker1 小时前
gRPC开发者快速入门
服务器·c++·后端·grpc
米羊1211 小时前
已有安全措施确认(中)
网络
江湖有缘2 小时前
零基础入门:使用 Docker 快速部署 Organizr 个人主页
java·服务器·docker