0
点赞
收藏
分享

微信扫一扫

GRE VPN 实验

回溯 2022-06-07 阅读 71

一、实验拓扑及要求

GRE VPN 实验_GRE

二、配置

2.1配置ip地址、DHCP、路由、NAT

sys
sys R1
dhcp enable
int g0/0/0
ip add 192.168.10.254 24
dhcp select interface
int g0/0/1
ip add 12.0.0.1 24
q
ip route-s 0.0.0.0 0 12.0.0.2
acl 2000
rule permit source 192.168.10.0 0.0.0.255
q
int g0/0/1
nat outbound 2000

sys
sys ISP
int lo6
ip add 6.6.6.6 32
int g0/0/1
ip add 23.0.0.2 24
int g0/0/0
ip add 12.0.0.2 24

sys
sys R3
dhcp enable
int g0/0/1
ip add 192.168.20.254 24
dhcp select interface
int g0/0/0
ip add 23.0.0.3 24
q
ip route-s 0.0.0.0 0 23.0.0.2
acl 2000
rule permit source 192.168.20.0 0.0.0.255
q
int g0/0/0
nat outbound 2000

验证配置

GRE VPN 实验_GRE_02

GRE VPN 实验_VPN_03

GRE VPN 实验_VPN_04

2.2配置GRE

interface Tunnel 0/0/1
ip add 192.168.12.1 24
tunnel-protocol gre
source 12.0.0.1
destination 23.0.0.3
q
ip route-s 192.168.20.0 24 Tunnel 0/0/1

interface Tunnel 0/0/1
ip add 192.168.12.2 24
tunnel-protocol gre
source 23.0.0.3
destination 12.0.0.1
q
ip route-s 192.168.10.0 24 Tunnel 0/0/1

验证配置

GRE VPN 实验_VPN_05

GRE VPN 实验_GRE_06

GRE VPN 实验_GRE_07


举报

相关推荐

0 条评论