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

相关推荐
先跑起来再说21 分钟前
Go 语言的 Mutex 底层实现详解:状态位、CAS、自旋、饥饿模式与信号量
服务器·后端·golang
最后一个bug44 分钟前
CPU的MMU中有TLB还需要TTW的快速查找~
linux·服务器·系统架构
zhengfei6111 小时前
【POC漏洞】XXX网上阅卷系统 monitor 未授权访问
网络·安全·web安全
zdd567892 小时前
行存表与列存表简述
运维·postgresql
福尔摩斯张2 小时前
Linux的pthread_self函数详解:多线程编程中的身份标识器(超详细)
linux·运维·服务器·网络·网络协议·tcp/ip·php
2401_832298102 小时前
一云多芯时代:云服务器如何打破芯片架构壁垒
运维·服务器·架构
ArrebolJiuZhou2 小时前
02arm指令集(一)——LDR,MOV,STR的使用
linux·网络·单片机
一只旭宝2 小时前
Linux专题八:生产者消费者,读写者模型以及网络编程
linux·网络
代码游侠2 小时前
复习——网络基础知识
网络·笔记·网络协议·算法·http
Web极客码3 小时前
如何在 Linux 中终止一个进程?
linux·运维·服务器