H3C认证GRE典型配置案例
本文为大家详细描述了路由器上配置GRE的基本方法和详细步骤,给出了一种GRE基本的配置案例。
1. 组网需求
运行ip 协议的两个子网group1 和group2,通过在secpath1 和secpath2 之间使用三层隧道协议gre 实现互联。
2. 组网图
3. 配置步骤
(1) 配置secpath1
# 配置接口ethernet0/0/0。
[h3c] interface ethernet 0/0/0
[h3c-ethernet0/0/0] ip address
[h3c-ethernet0/0/0] quit
# 配置接口ethernet1/0/0(隧道的实际物理接口)。
[h3c] interface ethernet 1/0/0
[h3c-ethernet1/0/0] ip address
[h3c-ethernet1/0/0] quit
# 创建tunnel1 接口。
[h3c] interface tunnel 1
# 配置tunnel1 接口的ip 地址。
[h3c-tunnel1] ip address
# 配置tunnel 封装模式。
[h3c-tunnel1] tunnel-protocol gre
# 配置tunnel1 接口的源地址(ethernet1/0/0 的ip 地址)。
[h3c-tunnel1] source
# 配置tunnel1 接口的目的'地址(secpath2 的ethernet2/0/1 的ip 地址)。
[h3c-tunnel1] destination
[h3c-tunnel1] quit
# 配置从secpath1 经过tunnel1 接口到group2 的静态路由。
[h3c] ip route-static tunnel 1
(2) 配置secpath2
# 配置接口ethernet0/0/0。
[h3c] interface ethernet 0/0/0
[h3c-ethernet0/0/0] ip address
[h3c-ethernet0/0/0] quit
# 配置接口ethernet2/0/1(隧道的实际物理接口)。
[h3c] interface ethernet 2/0/1
[h3c-ethernet2/0/1] ip address
[h3c-ethernet2/0/1] quit
# 创建tunnel2 接口。
[h3c] interface tunnel 2
# 配置tunnel2 接口的ip 地址。
[h3c-tunnel2] ip address
# 配置tunnel 封装模式。
[h3c-tunnel2] tunnel-protocol gre
# 配置tunnel2 接口的源地址(ethernet2/0/1 的ip 地址)。
[h3c-tunnel2] source
# 配置tunnel2 接口的目的地址(secpath1 的ethernet1/0/0 的ip 地址)。
[h3c-tunnel2] destination
[h3c-tunnel2] quit
# 配置从secpath2 经过tunnel2 接口到group1 的静态路由。
[h3c] ip route-static tunnel 2
interface Tunnel0
tunnel source
tunnel destination
tunnel key 0
tunnel checksum
用以上例子为例,假设本端路由器
eth0:(连接内部局域网)
tunnel0:()
serial0:(连接Internet)
ip route
对端路由器
eth0:(连接内部局域网)
tunnel0:()
serial0:(连接Internet)
ip route
本端局域网里的主机发一个报文给:报文为{SA:10.1.12,DA:}
首先该报文会发给PC网关,即“本端路由器”,路由器根据目的地址路由,发现需要从tunnel0口发出,做GRE封装后,报文为{SA:,DA:,{原来报文}},然后实际上从Serial0口发出,经过Internet上的N个路由器后到达“对端路由器”,路由器解开GRE封装恢复原来报文,再从eth0口发出去。
-
2017计算机应用基础题库附带答案
NIT合格证书由教育部考试中心签发,是证书持有人计算机应用能力的证明。本站小编收集了一些关于计算机应用基础题库附带答案,希望大家认真阅读!【1】计算机应用基础题库附带答案1、[单选题]在计算机中,一条指令代码由操作码和__C_____两部分组成。(A)、指令码(B)...
-
计算机二级office高级应用试题及答案
一、单项选择题1.将程序像数据一样存放在计算机内存中运行,是1946年由提出的。A)图灵B)布尔C)冯·诺依曼D)爱因斯坦2.世界上生产微处理(CPU)芯片的厂家很多,就是其中之一。A)IBM公司B)微软公司C)Intel公司D)联想公司3.计算机能按人们的意图自动地进行操作...
-
厦门大学2017年3月计算机等级考试报名通知
厦门大学2017年3月计算机等级考试报名统一实行网上报名,不接纳现场报名。2017年考试继续使用2013版考试体系,同时对部分级别和科目进行调整,二级Access数据库程序设计(科目代码29)将使用新版考试大纲(2016年版),详细如下:一、关键时间:1、网上报名时间厦门大学思明...
-
2017年计算机二级mos office考试试题及答案「精选」
计算机应用是计算机学科与其他学科相结合的边缘学科,是计算机学科的组成部分。下面是小编整理的关于计算机二级mosoffice考试试题及答案,希望大家认真阅读!1[单选题]下列叙述中正确的是().A.结点中具有两个指针域的链表一定是二叉链表B.结点中具有两个指针域的链...