当前位置:网站首页>Configuring OSPF load sharing for Huawei devices
Configuring OSPF load sharing for Huawei devices
2022-07-05 23:56:00 【Tony_ long7483】
Configure the interfaces VLAN
[LSW1]vlan batch 10 12 13
[LSW1-GigabitEthernet0/0/2]port link-type trunk
[LSW1-GigabitEthernet0/0/2]port trunk allow-pass vlan 12
[LSW1-GigabitEthernet0/0/3]port link-type trunk
[LSW1-GigabitEthernet0/0/3]port trunk allow-pass vlan 13
[LSW1-GigabitEthernet0/0/1]port link-type trunk
[LSW1-GigabitEthernet0/0/1]port trunk allow-pass vlan 10
[LSW2]vlan batch 12 23
[LSW2-GigabitEthernet0/0/1]port link-type trunk
[LSW2-GigabitEthernet0/0/1]port trunk allow-pass vlan 12
[LSW2-GigabitEthernet0/0/4]port link-type trunk
[LSW2-GigabitEthernet0/0/4]port trunk allow-pass vlan 23
[LSW3]vlan batch 13 34
[LSW3-GigabitEthernet0/0/1]port link-type trunk
[LSW3-GigabitEthernet0/0/1]port trunk allow-pass vlan 13
[LSW3-GigabitEthernet0/0/4]port link-type trunk
[LSW3-GigabitEthernet0/0/4]port trunk allow-pass vlan 34
[LSW4]vlan batch 23 34
[LSW4-GigabitEthernet0/0/2]port link-type trunk
[LSW4-GigabitEthernet0/0/2]port trunk allow-pass vlan 23
[LSW4-GigabitEthernet0/0/3]port link-type trunk
[LSW4-GigabitEthernet0/0/3]port trunk allow-pass vlan 34
[LSW4-GigabitEthernet0/0/1]port link-type trunk
[LSW4-GigabitEthernet0/0/1]port trunk allow-pass vlan 20Configure the IP Address
[LSW1-Vlanif12]ip add 10.1.12.1 24
[LSW1-Vlanif13]ip add 10.1.13.1 24
[LSW1-Vlanif10]ip add 10.1.10.1 24
[LSW2-Vlanif12]ip add 10.1.12.2 24
[LSW2-Vlanif23]ip add 10.1.23.2 24
[LSW3-Vlanif13]ip add 10.1.13.3 24
[LSW3-Vlanif34]ip add 10.1.34.3 24
[LSW4-Vlanif23]ip add 10.1.23.4 24
[LSW4-Vlanif34]ip add 10.1.34.4 24
[LSW4-Vlanif20]ip add 10.1.20.4 24
[LSW1]int LoopBack 0
[LSW1-LoopBack0]ip add 10.1.1.1 32
[LSW2]int LoopBack 0
[LSW2-LoopBack0]ip add 10.2.2.2 32
[LSW3]int LoopBack 0
[LSW3-LoopBack0]ip add 10.3.3.3 32
[LSW4]int LoopBack 0
[LSW4-LoopBack0]ip add 10.4.4.4 32To configure OSPF Basic function
[LSW1]ospf 1 router-id 10.1.1.1
[LSW1-ospf-1]area 0
[LSW1-ospf-1-area-0.0.0.0]network 10.1.10.0 0.0.0.255
[LSW1-ospf-1-area-0.0.0.0]network 10.1.12.0 0.0.0.255
[LSW1-ospf-1-area-0.0.0.0]network 10.1.13.0 0.0.0.255
[LSW2]ospf 1 router-id 10.2.2.2
[LSW2-ospf-1]area 0
[LSW2-ospf-1-area-0.0.0.0]network 10.1.12.0 0.0.0.255
[LSW2-ospf-1-area-0.0.0.0]network 10.1.23.0 0.0.0.255
[LSW3]ospf 1 router-id 10.3.3.3
[LSW3-ospf-1]area 0
[LSW3-ospf-1-area-0.0.0.0]network 10.1.13.0 0.0.0.255
[LSW3-ospf-1-area-0.0.0.0]network 10.1.34.0 0.0.0.255
[LSW4]ospf 1 router-id 10.4.4.4
[LSW4-ospf-1]area 0
[LSW4-ospf-1-area-0.0.0.0]network 10.1.23.0 0.0.0.255
[LSW4-ospf-1-area-0.0.0.0]network 10.1.34.0 0.0.0.255
[LSW4-ospf-1-area-0.0.0.0]network 10.1.20.0 0.0.0.255You can see going to 10.1.20.0 Two next hops of network segment 10.1.12.2 and 10.1.13.3 All become effective routes , Form load sharing
stay LSW1 Configure the equivalent route priority on
[LSW1-ospf-1]nexthop 10.1.12.2 weight 1It can be seen that , When the priority of the equivalent route is configured , Because the next jump is 10.1.12.2 The priority of the ( A weight of 1) Higher than the next jump is 10.1.13.3 The priority of the , therefore OSPF The next jump is preferred to 10.1.12.2 For the only optimal route
边栏推荐
- 【QT】Qt使用QJson生成json文件并保存
- What are the functions of Yunna fixed assets management system?
- 做自媒体影视短视频剪辑号,在哪儿下载素材?
- STM32__06—单通道ADC
- GD32F4xx uIP协议栈移植记录
- 15 MySQL stored procedures and functions
- C # input how many cards are there in each of the four colors.
- Rsync remote synchronization
- Use mapper: --- tkmapper
- How to improve eloquence
猜你喜欢
Mathematical model Lotka Volterra
保研笔记二 软件工程与计算卷二(13-16章)
GD32F4xx uIP协议栈移植记录
Do you regret becoming a programmer?
保研笔记一 软件工程与计算卷二(1-7章)
4 points tell you the advantages of the combination of real-time chat and chat robots
"14th five year plan": emphasis on the promotion of electronic contracts, electronic signatures and other applications
21.PWM应用编程
Rasa 3. X learning series -rasa x Community Edition (Free Edition) changes
The difference of time zone and the time library of go language
随机推荐
Zhongjun group launched electronic contracts to accelerate the digital development of real estate enterprises
Do you regret becoming a programmer?
Miaochai Weekly - 8
15 MySQL-存储过程与函数
妙才周刊 - 8
单商户V4.4,初心未变,实力依旧!
Rasa 3.x 学习系列-Rasa 3.2.1 新版本发布
Use mapper: --- tkmapper
Spire Office 7.5.4 for NET
STM32__ 06 - single channel ADC
openssl-1.0.2k版本升级openssl-1.1.1p
什么叫做信息安全?包含哪些内容?与网络安全有什么区别?
[EF core] mapping relationship between EF core and C data type
FFT 学习笔记(自认为详细)
GFS Distributed File System
多普勒效應(多普勒頻移)
Learn PWN from CTF wiki - ret2libc1
15 MySQL stored procedures and functions
Redis high availability - master-slave replication, sentinel mode, cluster
Redis高可用——主从复制、哨兵模式、集群