GRE VPN——配置实验

1,按照图示配置IP地址

r1:

r2:

r3:

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

R1ip 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

<R1>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来传递两端私网路由

R1ip route-static 192.168.2.0 24 192.168.3.3

R3ip route-static 192.168.1.0 24 192.168.3.1

复制代码
<R3>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
相关推荐
Dovis(誓平步青云)2 分钟前
番茄钟真正难的不是倒计时:启动、暂停、重置与页面销毁
android·服务器·前端
吹什么轩3 分钟前
Linux系统复习:权限的解析
linux·运维·服务器
幻步智能网络云专线7 分钟前
幻步智能:企业跨境网络与全球组网解决方案
网络
liebe1*115 分钟前
Module 2:Linux Fundamentals Part 1
linux·运维·服务器
小周学学学20 分钟前
horizon一些常见的故障处理
运维·服务器·vmware·虚拟化
liukuang11022 分钟前
董宇辉带走流量,东方甄选留下印钞机
大数据·网络·人工智能
imaol124 分钟前
进程 ---(多任务并行)
linux·运维·服务器
≮傷£≯√24 分钟前
OpenCV ncnn 人脸识别(一)
服务器·人工智能·opencv
mengge.cloud28 分钟前
0824LAMP项目实战:部署WordPress博客平台小白教程
android·linux·运维·服务器·学习·nginx
飞翔的火箭弹44 分钟前
企业网络资产管理用什么系统工具
开发语言·网络·php