当前位置:网站首页>Huawei Router: GRE Technology
Huawei Router: GRE Technology
2022-06-24 08:56:00 【Rabbit king cool】
The topology

R1 Configured according to topology IP Address
It is omitted here .
R2 GRE Part of the configuration
# Configure according to the topology IP
ip route-static 0.0.0.0 0 10.10.10.2 # Add a route , Make two public networks IP Interworking
[R2]interface Tunnel0/0/0 # New tunnel
[R2-Tunnel0/0/0]description to_jikong # Tunnel description
[R2-Tunnel0/0/0]tunnel-protocol gre # Tunnel protocol
[R2-Tunnel0/0/0]source 10.10.10.1 # source address
[R2-Tunnel0/0/0]de? # Note that these two are easy to make mistakes , must do destination
description Specify interface description
destination Destination address of the tunnel interface
[R2-Tunnel0/0/0]destination 10.10.20.1 # Destination address , Note that these two are easy to make mistakes
[R2-Tunnel0/0/0]ip add 192.168.254.1 24 # Configure the address for the tunnel
[R2-Tunnel0/0/0]q
[R2]ip route-static 192.168.12.0 255.255.255.0 192.168.254.2 # Configure static routing for the tunnel
It should be noted that :description( describe ) and destination( Destination address ), It's easy to type wrong .
R3 GRE Part of the configuration
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
The verification results
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
边栏推荐
猜你喜欢
随机推荐
Opencv daily function structure analysis and shape descriptor (7) finding polygon (contour) / rotating rectangle intersection
"Unusual proxy initial value setting is not supported", causes and Solutions
阿里资深软件测试工程师推荐测试人员必学——安全测试入门介绍
Telnet port login method with user name for liunx server
数据中台:国内大厂中台建设架构集锦
A tip to read on Medium for free
Data middle office: a collection of middle office construction architectures of large domestic factories
解决:模型训练时loss出现nan
2020中国全国各省市,三级联动数据,数据机构(数据来自国家统计局官网)
听说你还在花钱从网上买 PPT 模板?
华为路由器:ipsec技术
【LeetCode】387. 字符串中的第一个唯一字符
JS to find and update the specified value in the object through the key
leetcode 1268. Search suggestions system
开源之夏中选名单已公示,基础软件领域成为今年的热门申请
【NOI模拟赛】寄(树形DP)
打印出来的对象是[object object],解决方法
GradScaler MaxClipGradScaler
GradScaler MaxClipGradScaler
Why can ping fail while traceroute can









