当前位置:网站首页>华为设备配置私网IP路由FRR
华为设备配置私网IP路由FRR
2022-06-13 01:54:00 【Tony_long7483】

- VPN站点内配置IP地址
[PE-GigabitEthernet0/0/0]ip add 10.1.1.1 24
[PE-GigabitEthernet0/0/2]ip add 10.2.1.1 24
[CE1-GigabitEthernet0/0/0]ip add 10.1.1.2 24
[CE1-GigabitEthernet0/0/1]ip add 10.3.1.2 24
[CE2-GigabitEthernet0/0/0]ip add 10.2.1.3 24
[CE2-GigabitEthernet0/0/1]ip add 10.4.1.3 24
[AR4-LoopBack1]ip add 4.4.4.4 32
[AR4-GigabitEthernet0/0/0]ip add 10.3.1.4 24
[AR4-GigabitEthernet0/0/1]ip add 10.4.1.4 24 - VPN站点内配置OSPF,使得AR4的Loopback接口路由可以发送到CE1,CE2
[CE1]ospf 1
[CE1-ospf-1]area 0
[CE1-ospf-1-area-0.0.0.0]network 10.1.1.0 0.0.0.255
[CE1-ospf-1-area-0.0.0.0]network 10.3.1.0 0.0.0.255
[CE2]ospf 1
[CE2-ospf-1]area 0
[CE2-ospf-1-area-0.0.0.0]network 10.2.1.0 0.0.0.255
[CE2-ospf-1-area-0.0.0.0]network 10.4.1.0 0.0.0.255
[AR4]ospf 1
[AR4-ospf-1]area 0
[AR4-ospf-1-area-0.0.0.0]network 4.4.4.4 0.0.0.0
[AR4-ospf-1-area-0.0.0.0]network 10.3.1.0 0.0.0.255
[AR4-ospf-1-area-0.0.0.0]network 10.4.1.0 0.0.0.255 - 在PE上配置VPN实例及OSPF多实例
[PE]ip vpn-instance vpn1
[PE-vpn-instance-vpn1]ipv4-family
[PE-vpn-instance-vpn1-af-ipv4] route-distinguishe 100:1
[PE-vpn-instance-vpn1-af-ipv4]vpn-target 1:1
[PE-GigabitEthernet0/0/0]ip binding vpn-instance vpn1
[PE-GigabitEthernet0/0/0]ip add 10.1.1.1 24
[PE-GigabitEthernet0/0/1]ip binding vpn-instance vpn1
[PE-GigabitEthernet0/0/1]ip add 10.2.1.1 24
[PE]ospf vpn-instance vpn1 //配置OSPF多实例
[PE-ospf-1]area 0
[PE-ospf-1-area-0.0.0.0]network 10.1.1.0 0.0.0.255
[PE-ospf-1-area-0.0.0.0]network 10.2.1.0 0.0.0.255 - 配置OSPF接口的Cost值,
[PE-GigabitEthernet0/0/1]ospf cost 100 //在PE的g0/0/1配置Cost值,使OSPF优选链路CE1
[AR4-GigabitEthernet0/0/1]ospf cost 100 - 配置路由策略, 配置备份下一跳和备份出接口。同时配置if-match项,限制应用范围。
[PE]ip ip-prefix f1 permit 4.4.4.4 32
[PE]route-policy f1 permit node 10
[PE-route-policy]if-match ip-prefix f1
[PE-route-policy]apply backup-nexthop 10.2.1.3
[PE-route-policy]apply backup-interface g0/0/1 - 配置BFD与IP FRR联动
[PE]bfd
[PE]bfd f1 bind peer-ip 10.1.1.2 vpn-instance vpn1 interface g0/0/0
[PE-bfd-session-f1]discriminator local 10
[PE-bfd-session-f1]discriminator remote 20
[PE-bfd-session-f1]commit
[CE1]bfd
[CE1]bfd f1 bind peer-ip 10.1.1.1 interface g0/0/0
[CE1-bfd-session-f1]discriminator local 20
[CE1-bfd-session-f1]discriminator remote 10
[CE1-bfd-session-f1]commit - 使能私网IP FRR功能
[PE]ip vpn-instance vpn1
[PE-vpn-instance-vpn1]ipv4-family
[PE-vpn-instance-vpn1-af-ipv4]ip frr route-policy f1 - 检查配置

看到PE上到4.4.4.4/32的路由下一跳为10.1.1.2,且有备份下一跳、备份出接口
[CE1-GigabitEthernet0/0/1]shutdown

边栏推荐
- [andoid][step pit]cts 11_ Testbootclasspathandsystemserverclasspath at the beginning of R3_ Analysis of nonduplicateclasses fail
- 指针链表的实现
- Simple ranging using Arduino and ultrasonic sensors
- General IP address, account and password of mobile IPv6 optical cat login, and mobile optical cat is in bridging mode
- 兴趣相似的受众群体
- [the fourth day of actual combat of stm32f401ret6 smart lock project in 10 days] voice control is realized by externally interrupted keys
- Devexpress implementation flow chart
- Magics 23.0 how to activate and use the slice preview function of the view tool page
- rsync 傳輸排除目錄
- rsync 传输排除目录
猜你喜欢

万字讲清 synchronized 和 ReentrantLock 实现并发中的锁

什么是立体角

QT realizes mind mapping function (II)

Restful interface specification annotation of pringboot (2)

When AI meets music, iFLYTEK music leads the industry reform with technology

How to solve practical problems through audience positioning?

STM32 3*3矩阵按键(寄存器版本)

Interruption of 51 single chip microcomputer learning notes (external interruption, timer interruption, interrupt nesting)

Gome's ambition of "folding up" app

5、 Improvement of inventory query function
随机推荐
Topic creation and running example of ROS
A DPU architecture without CPU: Hyperion
Should the audience choose observation mode or positioning mode?
什么是立体角
[the second day of actual combat of smart lock project based on stm32f401ret6 in 10 days] GPIO and register
水管工遊戲
Opencv camera calibration (1): internal and external parameters, distortion coefficient calibration and 3D point to 2D image projection
MySQL - use field alias after where
Matplotlib drawing Chinese garbled code
Devaxpress Chinese description -- tdxgallerycontrol object (gallery component)
Plumber game
4、 Improvement of warehousing management function
[the third day of actual combat of smart lock project based on stm32f401ret6 in 10 days] communication foundation and understanding serial port
Using OpenCV in go
四、入库管理功能的完善
微服务开发环境搭建
详细受众特征详细解释
[printf function and scanf function] (learning note 5 -- standard i/o function)
The scientific innovation board successfully held the meeting, and the IPO of Kuangshi technology ushered in the dawn
三、上传织物图片至SQL Server并提供name进行展示织物照片