GRE配置

本文详细介绍了GRE隧道的配置过程,包括AR1和AR3路由器的设置,以及GRE隧道在ISP之间的建立。同时,讨论了GRE隧道在与OSPF协议配合时可能出现的问题,以及隧道接口的虚假状态。此外,还提到了GRE的简单安全机制,强调了其在保障数据传输安全方面的作用。
摘要由CSDN通过智能技术生成

一、topo

在这里插入图片描述

二、配置

AR1

sys
sys AR1
dhcp en

acl 2000
rule permit source 192.168.10.0 0.0.0.255

int g0/0/0
ip ad 192.168.10.254 24
dhcp se int

int g0/0/1
ip ad 12.0.0.1 24
nat outbound 2000
q
ip route-static 0.0.0.0 0 12.0.0.2
int Tunnel0/0/0
ip ad 192.168.13.1 24
tunnel-protocol gre
source 12.0.0.1
destination 23.0.0.3
keepalive
q
ip route-static 192.168.20.0 24 Tunnel0/0/0

ISP

sys
sys ISP


int g0/0/1
ip ad 23.0.0.2 24

int g0/0/0
ip ad 12.0.0.2 24

int loopback 0
ip ad 2.2.2.2 32

AR3

sys
sys AR3
dhcp en

acl 2000
rule permit source 192.168.20.0 0.0.0.255

int g0/0/1
ip ad 192.168.20.254 24
dhcp se int

int g0/0/0
ip ad 23.0.0.3 24
nat outbound 2000
q
ip route-static 0.0.0.0 0 23.0.0.2
int Tunnel0/0/0
ip ad 192.168.13.3 24
tunnel-protocol gre
source 23.0.0.3
destination 12.0.0.1
keepalive
q
ip route-static 192.168.10.0 24 tunnel0/0/0

三、路由协议

通用路由封装协议GRE (Generic Routing Encapsulation)提供了将一种协议的报文封装在另一种协议报文中的机制,是一种隧道封装技术。GRE可以封装组播数据,并可以和IPSec结合使用,从而保证语音、视频等组播业务的安全。

与ospf使用时一直反复down<- ->full:
在这里插入图片描述

四、GRE隧道接口虚假状态

在这里插入图片描述

五、GRE简单安全机制

在这里插入图片描述

六、隧道接口

在这里插入图片描述

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值