当前位置:网站首页>Huawei equipment configuration ospf-bgp linkage
Huawei equipment configuration ospf-bgp linkage
2022-07-06 06:49:00 【Tony7483】
1. Configure the interfaces VLAN
[LSW1]vlan batch 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
[LSW2]vlan batch 12 24
[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 24
[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 24 34 45
[LSW4-GigabitEthernet0/0/2]port link-type trunk
[LSW4-GigabitEthernet0/0/2]port trunk allow-pass vlan 24
[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 45
[LSW5]vlan batch 10 45
[LSW5-GigabitEthernet0/0/1]port link-type trunk
[LSW5-GigabitEthernet0/0/1]port trunk allow-pass vlan 45
[LSW5-GigabitEthernet0/0/2]port link-type trunk
[LSW5-GigabitEthernet0/0/2]port trunk allow-pass vlan 10
2. Configure the IP Address
[LSW1-Vlanif12]ip add 10.1.12.1 24
[LSW1-Vlanif13]ip add 10.1.13.1 24
[LSW1]int LoopBack 0
[LSW1-LoopBack0]ip add 10.1.1.1 32
[LSW2-Vlanif12]ip add 10.1.12.2 24
[LSW2-Vlanif24]ip add 10.1.24.2 24
[LSW2]int LoopBack 0
[LSW2-LoopBack0]ip add 10.2.2.2 32
[LSW3-Vlanif13]ip add 10.1.13.3 24
[LSW3-Vlanif34]ip add 10.1.34.3 24
[LSW3]int LoopBack 0
[LSW3-LoopBack0]ip add 10.3.3.3 32
[LSW4-Vlanif24]ip add 10.1.24.4 24
[LSW4-Vlanif34]ip add 10.1.34.4 24
[LSW4-Vlanif45]ip add 10.1.45.4 24
[LSW4]int LoopBack 0
[LSW4-LoopBack0]ip add 10.4.4.4 32
[LSW5-Vlanif45]ip add 10.1.45.5 24
[LSW5-Vlanif10]ip add 10.2.10.5 24
[LSW5]int LoopBack 0
[LSW5-LoopBack0]ip add 10.5.5.5 32
3. To configure OSPF Basic functions of
[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.12.0 0.0.0.255
[LSW1-ospf-1-area-0.0.0.0]network 10.1.13.0 0.0.0.255
[LSW1-ospf-1-area-0.0.0.0]network 10.1.1.1 0.0.0.0
[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.24.0 0.0.0.255
[LSW2-ospf-1-area-0.0.0.0]network 10.2.2.2 0.0.0.0
[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
[LSW3-ospf-1-area-0.0.0.0]network 10.3.3.3 0.0.0.0
[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.34.0 0.0.0.255
[LSW4-ospf-1-area-0.0.0.0]network 10.1.24.0 0.0.0.255
[LSW4-ospf-1-area-0.0.0.0]network 10.4.4.4 0.0.0.0
4. To configure IBGP Full connection
[LSW1]bgp 10
[LSW1-bgp]peer 10.2.2.2 as-number 10
[LSW1-bgp]peer 10.2.2.2 connect-interface LoopBack 0
[LSW1-bgp]peer 10.3.3.3 as-number 10
[LSW1-bgp]peer 10.3.3.3 connect-interface LoopBack 0
[LSW1-bgp]peer 10.4.4.4 as-number 10
[LSW1-bgp]peer 10.4.4.4 connect-interface LoopBack 0
[LSW2]bgp 10
[LSW2-bgp]peer 10.1.1.1 as-number 10
[LSW2-bgp]peer 10.1.1.1 connect-interface LoopBack 0
[LSW2-bgp]peer 10.3.3.3 as-number 10
[LSW2-bgp]peer 10.3.3.3 connect-interface LoopBack 0
[LSW2-bgp]peer 10.4.4.4 as-number 10
[LSW2-bgp]peer 10.4.4.4 connect-interface LoopBack 0
[LSW3]bgp 10
[LSW3-bgp]peer 10.1.1.1 as-number 10
[LSW3-bgp]peer 10.1.1.1 connect-interface LoopBack 0
[LSW3-bgp]peer 10.2.2.2 as-number 10
[LSW3-bgp]peer 10.2.2.2 connect-interface LoopBack 0 [LSW3-bgp]peer 10.4.4.4 as-number 10
[LSW3-bgp]peer 10.4.4.4 connect-interface LoopBack 0
[LSW4]bgp 10
[LSW4-bgp]peer 10.1.1.1 as-number 10
[LSW4-bgp]peer 10.1.1.1 connect-interface LoopBack 0
[LSW4-bgp]peer 10.2.2.2 as-number 10
[LSW4-bgp]peer 10.2.2.2 connect-interface LoopBack 0
[LSW4-bgp]peer 10.3.3.3 as-number 10
[LSW4-bgp]peer 10.3.3.3 connect-interface LoopBack 0
5. To configure EBGP Connect
[LSW4]bgp 10
[LSW4-bgp]peer 10.1.45.5 as-number 20
[LSW4-bgp]import-route direct
[LSW4-bgp]import-route ospf 1
[LSW5]bgp 20
[LSW5-bgp]router-id 10.5.5.5
[LSW5-bgp]peer 10.1.45.4 as-number 10
[LSW5-bgp]ipv4-family unicast
[LSW5-bgp-af-ipv4]network 10.2.10.0 24
6. To configure LSW2 On OSPF The cost value of the protocol
[LSW2]int Vlanif 12
[LSW2-Vlanif12]ospf cost 2
[LSW2]int Vlanif 24
[LSW2-Vlanif24]ospf cost 2
As you can see from the routing table ,LSW3 adopt BGP The protocol can learn the target network segment 10.2.10.0 The routing , The exit interface is Vlanif34; adopt OSPF The protocol can learn the target network segment 10.1.12.0 and 10.1.24.0 The routing , Routing overhead is 2
7. stay LSW3 On the configuration OSPF-BGP Linkage function
[LSW3]ospf 1
[LSW3-ospf-1]stub-router on-startup
8. Check the configuration : preservation 、 restart LSW3
It can be seen that , adopt BGP The protocol can learn the target network segment 10.2.10.0 The routing , The output interface becomes Vlanif12
边栏推荐
- 自动化测试环境配置
- What is the difference between int (1) and int (10)? Senior developers can't tell!
- Traffic encryption of red blue confrontation (OpenSSL encrypted transmission, MSF traffic encryption, CS modifying profile for traffic encryption)
- 攻防世界 MISC中reverseMe简述
- Wish Dragon Boat Festival is happy
- CS-证书指纹修改
- Changes in the number of words in English papers translated into Chinese
- Explain in detail the functions and underlying implementation logic of the groups sets statement in SQL
- Map of mL: Based on the adult census income two classification prediction data set (whether the predicted annual income exceeds 50K), use the map value to realize the interpretable case of xgboost mod
- The registration password of day 239/300 is 8~14 alphanumeric and punctuation, and at least 2 checks are included
猜你喜欢
《从0到1:CTFer成长之路》书籍配套题目(周更)
Do you really know the use of idea?
CS certificate fingerprint modification
[ 英语 ] 语法重塑 之 英语学习的核心框架 —— 英语兔学习笔记(1)
Lesson 7 tensorflow realizes convolutional neural network
Financial German translation, a professional translation company in Beijing
云服务器 AccessKey 密钥泄露利用
Map of mL: Based on the adult census income two classification prediction data set (whether the predicted annual income exceeds 50K), use the map value to realize the interpretable case of xgboost mod
机器人类专业不同层次院校课程差异性简述-ROS1/ROS2-
Fedora/rehl installation semanage
随机推荐
How to convert flv file to MP4 file? A simple solution
Apache dolphin scheduler source code analysis (super detailed)
云服务器 AccessKey 密钥泄露利用
Do you really know the use of idea?
Py06 dictionary mapping dictionary nested key does not exist test key sorting
成功解决AttributeError: Can only use .cat accessor with a ‘category‘ dtype
Lesson 7 tensorflow realizes convolutional neural network
Reflex WMS medium level series 3: display shipped replaceable groups
Facebook AI & Oxford proposed a video transformer with "track attention" to perform SOTA in video action recognition tasks
端午节快乐Wish Dragon Boat Festival is happy
今日夏至 Today‘s summer solstice
At the age of 26, I changed my career from finance to software testing. After four years of precipitation, I have been a 25K Test Development Engineer
UNIPRO Gantt chart "first experience": multi scene exploration behind attention to details
Leetcode - 152 product maximum subarray
接口自动化测试实践指导(上):接口自动化需要做哪些准备工作
Biomedical localization translation services
Grouping convolution and DW convolution, residuals and inverted residuals, bottleneck and linearbottleneck
Thesis abstract translation, multilingual pure human translation
UniPro甘特图“初体验”:关注细节背后的多场景探索
Explain in detail the functions and underlying implementation logic of the groups sets statement in SQL