当前位置:网站首页>华为路由器:GRE技术
华为路由器:GRE技术
2022-06-24 07:07:00 【兔子王cool】
实验拓扑

R1 按照拓扑配置好IP地址
这里省略。
R2 GRE部分的配置
#按照拓扑图配置好IP
ip route-static 0.0.0.0 0 10.10.10.2 #加一条路由,使得两个公网IP互通
[R2]interface Tunnel0/0/0 #新建隧道
[R2-Tunnel0/0/0]description to_jikong #隧道描述
[R2-Tunnel0/0/0]tunnel-protocol gre #隧道协议
[R2-Tunnel0/0/0]source 10.10.10.1 #源地址
[R2-Tunnel0/0/0]de? #注意这两容易敲错,一定要destination
description Specify interface description
destination Destination address of the tunnel interface
[R2-Tunnel0/0/0]destination 10.10.20.1 #目标地址,注意这两容易敲错
[R2-Tunnel0/0/0]ip add 192.168.254.1 24 #给隧道配置地址
[R2-Tunnel0/0/0]q
[R2]ip route-static 192.168.12.0 255.255.255.0 192.168.254.2 #给隧道配置静态路由
需要注意的是:description(描述)和destination(目标地址),很容易敲错。
R3 GRE部分的配置
ip route-static 0.0.0.0 0 10.10.20.2
[R3]interface Tunnel0/0/0
[R3-Tunnel0/0/0]description to_office
[R3-Tunnel0/0/0]tunnel-protocol gre
[R3-Tunnel0/0/0]source 10.10.20.1
[R3-Tunnel0/0/0]destination 10.10.10.1
[R3-Tunnel0/0/0]ip add 192.168.254.1 24
[R3-Tunnel0/0/0]q
[R3]ip route-static 192.168.11.0 255.255.255.0 192.168.254.1
验证结果
PC>ping 192.168.12.1
Ping 192.168.12.1: 32 data bytes, Press Ctrl_C to break
From 192.168.12.1: bytes=32 seq=1 ttl=126 time=15 ms
From 192.168.12.1: bytes=32 seq=2 ttl=126 time=16 ms
From 192.168.12.1: bytes=32 seq=3 ttl=126 time=15 ms
From 192.168.12.1: bytes=32 seq=4 ttl=126 time=32 ms
From 192.168.12.1: bytes=32 seq=5 ttl=126 time=31 ms
PC>ping 192.168.11.1
Ping 192.168.11.1: 32 data bytes, Press Ctrl_C to break
Request timeout!
From 192.168.11.1: bytes=32 seq=2 ttl=126 time=16 ms
From 192.168.11.1: bytes=32 seq=3 ttl=126 time=16 ms
From 192.168.11.1: bytes=32 seq=4 ttl=126 time=31 ms
From 192.168.11.1: bytes=32 seq=5 ttl=126 time=16 ms
边栏推荐
- A tip to read on Medium for free
- 疫情、失业,2022,我们高喊着摆烂和躺平!
- 基于单片机开发的酒精浓度测试仪方案
- Using sonar for code checking
- Solution: Nan occurs in loss during model training
- What is the future development trend of Business Intelligence BI
- RuntimeError: Missing dependencies:XXX
- 【E325: ATTENTION】vim编辑时报错
- 基于QingCloud的 “房地一体” 云解决方案
- Determination of monocular and binocular 3D coordinates
猜你喜欢

【PyTorch基础教程30】DSSM双塔模型代码解析

基于QingCloud的 “房地一体” 云解决方案

A tip to read on Medium for free

【LeetCode】387. 字符串中的第一个唯一字符

【LeetCode】541. 反转字符串 II

Detailed explanation of Base64 coding and its variants (to solve the problem that the plus sign changes into a space in the URL)
![[pytoch basic tutorial 31] youtubednn model analysis](/img/18/dbeab69894583f6e5230772ce44652.png)
[pytoch basic tutorial 31] youtubednn model analysis

从华为WeAutomate数字机器人论坛,看政企领域的“政务新智理”

玄铁E906移植----番外0:玄铁C906仿真环境搭建

liunx服务器 telnet 带用户名 端口登陆方法
随机推荐
Centos7 installation of jdk8, mysql5.7 and Navicat connection to virtual machine MySQL and solutions (solutions to MySQL download errors are attached)
Wan Weiwei, a researcher from Osaka University, Japan, introduced the rapid integration method and application of robot based on WRS system
K8S部署高可用postgresql集群 —— 筑梦之路
What is the future development trend of Business Intelligence BI
Idea another line shortcut
一文讲透,商业智能BI未来发展趋势如何
Determination of monocular and binocular 3D coordinates
Earthly 容器镜像构建工具 —— 筑梦之路
Jenkins自动化部署,连接不到所依赖的服务【已解决】
【NOI模拟赛】摆(线性代数,杜教筛)
orb slam build bug: undefined reference to symbol ‘_ ZN5boost6system15system_ categoryEv‘
Xiaohei ai4code code baseline nibble 1
rpiplay实现树莓派AirPlay投屏器
所说的Get post:请求的区别,你真的知道了吗??????
Numpy 中的方法汇总
【Pytorch基础教程31】YoutubeDNN模型解析
【LeetCode】387. 字符串中的第一个唯一字符
leetcode 1642. Furthest building you can reach
从华为WeAutomate数字机器人论坛,看政企领域的“政务新智理”
MyCAT读写分离与MySQL主从同步