当前位置:网站首页>How Huawei routers configure static routes
How Huawei routers configure static routes
2022-07-06 05:52:00 【Creator of high-quality network system】
The experiment purpose
Use static routing to make IP Data reachable
The topology
The experimental steps
1: Rename and configure IP Address
system-view
[Huawei]sysname R1 [R1]interface Ethernet 0/0/0
[R1-Ethernet0/0/0]ip address 12.1.1.1 255.255.255.0
[R1-Ethernet0/0/0]undo shutdown
system-view
[Huawei]sysname R2
[R2]interface Ethernet 0/0/0
[R2-Ethernet0/0/0]ip address 12.1.1.2 255.255.255.0
[R2-Ethernet0/0/0]undo shutdown
[R2]interface Ethernet 0/0/1
[R2-Ethernet0/0/1]ip add
[R2-Ethernet0/0/1]ip address 23.1.1.2 255.255.255.0
[R2-Ethernet0/0/1]undo shutdown
[Huawei]sysname R3
[R3-Ethernet0/0/0]ip address 23.1.1.3 255.255.255.0
[R3-Ethernet0/0/0]undo shutdown
2: In the middle router R2 Test whether the direct connection is connected
[R2-Ethernet0/0/1]ping 12.1.1.1
PING 12.1.1.1: 56 data bytes, press CTRL_C to break
Reply from 12.1.1.1: bytes=56 Sequence=1 ttl=255 time=160 ms Reply from 12.1.1.1: bytes=56 Sequence=2 ttl=255 time=20 ms Reply from 12.1.1.1: bytes=56 Sequence=3 ttl=255 time=10 ms Reply from 12.1.1.1: bytes=56 Sequence=4 ttl=255 time=30 ms Reply from 12.1.1.1: bytes=56 Sequence=5 ttl=255 time=40 ms
— 12.1.1.1 ping statistics — 5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 10/52/160 ms
[R2-Ethernet0/0/1]ping 23.1.1.3
PING 23.1.1.3: 56 data bytes, press CTRL_C to break
Reply from 23.1.1.3: bytes=56 Sequence=1 ttl=255 time=50 ms Reply from 23.1.1.3: bytes=56 Sequence=2 ttl=255 time=50 ms Reply from 23.1.1.3: bytes=56 Sequence=3 ttl=255 time=50 ms Reply from 23.1.1.3: bytes=56 Sequence=4 ttl=255 time=30 ms Reply from 23.1.1.3: bytes=56 Sequence=5 ttl=255 time=30 ms
— 23.1.1.3 ping statistics — 5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 30/42/50 ms
3: stay R1 Go straight ping R3 Will not work , You need to configure an authentication route in the direction of going and returning
[R1-Ethernet0/0/0]ping 23.1.1.3
PING 23.1.1.3: 56 data bytes, press CTRL_C to break Request time out
stay R1 And R3 Configure default routes respectively on :
[R1]ip route-static 23.1.1.0 255.255.255.0 12.1.1.2
[R3]ip route-static 12.1.1.0 255.255.255.0 23.1.1.2
4: Then test connectivity :
[R1]ping 23.1.1.3
PING 23.1.1.3: 56 data bytes, press CTRL_C to break
Reply from 23.1.1.3: bytes=56 Sequence=1 ttl=254 time=80 ms Reply from 23.1.1.3: bytes=56 Sequence=2 ttl=254 time=70 ms Reply from 23.1.1.3: bytes=56 Sequence=3 ttl=254 time=60 ms Reply from 23.1.1.3: bytes=56 Sequence=4 ttl=254 time=40 ms Reply from 23.1.1.3: bytes=56 Sequence=5 ttl=254 time=50 ms
— 23.1.1.3 ping statistics — 5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 40/60/80 ms
// The above indicates successful communication .
4: It can also set priority for a static routing device , That is to say CISCO Management distance in (AD value ), To achieve floating routing and other effects . as follows :
[R1]ip route-static 23.1.1.0 255.255.255.0 12.1.1.2 preference 10
Please refer to NA My lab manual , Combined with Huawei's orders here , Realize floating static on Huawei's router , Select static , Summarize static , Default static , Static and other effects of load balancing .
View routing table :
[R1]display ip routing
Route Flags: R - relay, D - download to fib
Routing Tables: Public
Destinations : 5 Routes : 5
Destination/Mask Proto Pre Cost Flags NextHop Interface 12.1.1.0/24 Direct 0 0 D 12.1.1.1 Ethernet0/0/0
12.1.1.1/32 Direct 0 0 D 127.0.0.1 Ethernet0/0/0
23.1.1.0/24 Static 10 0 RD 12.1.1.2 Ethernet0/0/0
127.0.0.0/8 Direct 0 0 D 127.0.0.1 InLoopBack0
127.0.0.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0
5: When you want to cancel this default route , Play in front UNDO
[R1]undo ip route-static 23.1.1.0 255.255.255.0 12.1.1.2 preference 10
边栏推荐
- Baidu online AI competition - image processing challenge: the 8th program of handwriting erasure
- LeetCode_字符串反转_简单_557. 反转字符串中的单词 III
- 嵌入式面试题(一:进程与线程)
- MIT6.s081-2020 Lab2 System Calls
- Pytorch代码注意的细节,容易敲错的地方
- Classes and objects (I) detailed explanation of this pointer
- 【经验】win11上安装visio
- 授予渔,从0开始搭建一个自己想要的网页
- J'ai un chaton.
- Migrate Infones to stm32
猜你喜欢
实践分享:如何安全快速地从 Centos迁移到openEuler
Station B, Master Liu Er - dataset and data loading
Jushan database appears again in the gold fair to jointly build a new era of digital economy
The ECU of 21 Audi q5l 45tfsi brushes is upgraded to master special adjustment, and the horsepower is safely and stably increased to 305 horsepower
P2802 go home
Is it difficult for an information system project manager?
【SQL server速成之路】——身份驗證及建立和管理用戶賬戶
[JVM] [Chapter 17] [garbage collector]
Leetcode 701 insertion operation in binary search tree -- recursive method and iterative method
Hongliao Technology: Liu qiangdong's "heavy hand"
随机推荐
H3C防火墙RBM+VRRP 组网配置
[email protected] raspberry pie
27io stream, byte output stream, OutputStream writes data to file
OSPF configuration command of Huawei equipment
Baidu online AI competition - image processing challenge: the 8th program of handwriting erasure
【经验】UltralSO制作启动盘时报错:磁盘/映像容量太小
c语言——冒泡排序
H3C V7版本交换机配置IRF
Processes and threads
How to get list length
After the project is released, index Html is cached
Rustdesk builds its own remote desktop relay server
Analysis of grammar elements in turtle Library
【经验】win11上安装visio
Construction of yolox based on paste framework
MIT6.s081-2020 Lab2 System Calls
Sequoiadb Lake warehouse integrated distributed database, June 2022 issue
实践分享:如何安全快速地从 Centos迁移到openEuler
The digital economy has broken through the waves. Is Ltd a Web3.0 website with independent rights and interests?
The ECU of 21 Audi q5l 45tfsi brushes is upgraded to master special adjustment, and the horsepower is safely and stably increased to 305 horsepower