当前位置:网站首页>华为设备配置私网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
边栏推荐
- Server installation jupyterab and remote login configuration
- 深度学习调参技巧详解
- MySQL - use field alias after where
- Service creation and operation example of ROS
- Gome's ambition of "folding up" app
- Introduction to common ROS commands
- 五、库存查询功能的完善
- 【软考】软件设计师知识点整理(待更新)
- Rsync transport exclusion directory
- The first cell of devaxpress CXGRID after inserting a row is in focus editing status
猜你喜欢
Combining strings and numbers using ssstream
General IP address, account and password of mobile IPv6 optical cat login, and mobile optical cat is in bridging mode
谷歌的受众群体是如何发挥作用的?
STM32 3*3矩阵按键(寄存器版本)
移动IPv6光猫登录的一般ip地址账号与密码,移动光猫变桥接模式
Learning notes 51 single chip microcomputer keyboard (non coding keyboard and coding keyboard, scanning mode of non coding keyboard, independent keyboard, matrix keyboard)
Get started quickly cmake
Introduction to ROS runtime
Matplotlib drawing Chinese garbled code
numpy多维数组转置transpose
随机推荐
A DPU architecture without CPU: Hyperion
Installing pytorch geometric
一种不带CPU的DPU架构:Hyperion
6、 Implementation of warehouse out management function
Record the VMware installation process of VMware Tools and some problems encountered
Examples of using the chromium base library
How do you use your own data to achieve your marketing goals?
Detailed explanation of deep learning parameter adjustment skills
10 days based on stm32f401ret6 smart lock project practice day 1 (environment construction and new construction)
How many smart bids does Google have?
Simple ranging using Arduino and ultrasonic sensors
[sequence structure, branch structure, loop structure, continue statement, break statement, return statement] (learning Note 6 -- C language process control)
STM32 3*3矩阵按键(寄存器版本)
Day 1 of the 10 day smart lock project (understand the SCM stm32f401ret6 and C language foundation)
Introduction to common ROS commands
Devexpress implementation flow chart
Introduction to ROS runtime
Qt实现思维导图功能(二)
Establishment of microservice development environment
Wsl2 + vcxsrv + opengl3.3 configuration