H3C认证GRE典型配置案例
来源:才华咖 本文已影响3.6K人
来源:才华咖 本文已影响3.6K人
本文为大家详细描述了路由器上配置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口发出去。
H3C认证网络工程师(H3CNE)培训
H3C认证GRE典型配置案例
华为考试辅导:SECPATH的简单配置案例
Oracle认证:ORACLE绑定变量BINDPEEKING
国际认证RHCE(红帽认证)考试试题
WebSphere MQ Solution Designer认证考试
Oracle认证:Oracle内存结构研究-PGA篇
英语We bught ice creas学案分析
华为认证HCNA-Storage-BSSN模拟试题及答案
php字符串替换函数str-replace速度比preg-replace快
认证认可条例
H3C交换机配置实例
Our Teacher of English英语作文
高中英语作文:The Things Are Neglected
招聘与配置方案6篇
“双减”典型案例
H3C和CISCO交换机做聚合配置实例教学
H3CNE认证有效期限及重认证方法
交换机DHCP Relay的配置
Ought Parents to Give Children Pocket英语作文
Our English Teacher英语作文
phpstorm配置Xdebug进行调试PHP教程
2016最新H3C认证体系介绍—H3CIE
EIGRP路由协议的配置实例
华为认证安全专家HCIE-Security模拟试卷