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
相关推荐
华章酱7 小时前
Linux服务器快速排查有问题的ip请求
服务器·安全·线上问题·攻击排查
luj_17687 小时前
击穿分析五大关键步骤
开发语言·网络·c++·经验分享·算法
工业HMI实战笔记7 小时前
【拯救HMI】:自动化对外输出新范式:从设备出口到 “技术 + 服务” 全链条交付
运维·自动化
Safeploy安策数据8 小时前
密钥管理入门:从泄漏复盘看企业如何守住密钥安全底线
大数据·运维·微服务
开开心心就好8 小时前
低年级识字练笔顺工具,电脑和安卓端都能用
前端·javascript·网络·安全·scala·erlang·语音识别
个性小王8 小时前
配置kali在线源(阿里云)
网络·网络安全
闲云野鹤在人间8 小时前
Docker入门|第2章 容器架构详解
linux·运维·docker·容器·架构·云计算
wzq11_6668 小时前
Docker数据卷管理
运维·docker·容器
captain3768 小时前
网络原理(4)-TCP ▲▲▲
java·服务器·网络·网络协议·tcp/ip
snow@li8 小时前
服务器运维:Let’s Encrypt 证书 + HTTPS + HTTP/2 全景分析
运维