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

相关推荐
少妇的美梦11 小时前
logstash教程
运维
chen94512 小时前
k8s集群部署vector日志采集器
运维
chen94512 小时前
aws ec2部署harbor,使用s3存储
运维
白帽黑客沐瑶16 小时前
【网络安全就业】信息安全专业的就业前景(非常详细)零基础入门到精通,收藏这篇就够了
网络·安全·web安全·计算机·程序员·编程·网络安全就业
christine-rr16 小时前
linux常用命令(4)——压缩命令
linux·服务器·redis
東雪蓮☆17 小时前
深入理解 LVS-DR 模式与 Keepalived 高可用集群
linux·运维·服务器·lvs
qq_2642208917 小时前
LVS负载均衡群集和LVS+Keepalived群集
运维·负载均衡·lvs
树码小子17 小时前
Java网络编程:(socket API编程:TCP协议的 socket API -- 回显程序的服务器端程序的编写)
java·网络·tcp/ip
乌萨奇也要立志学C++17 小时前
【Linux】进程概念(二):进程查看与 fork 初探
linux·运维·服务器
雨落Liy17 小时前
Nginx 从入门到进阶:反向代理、负载均衡与高性能实战指南
运维·nginx·负载均衡