当前位置:网站首页>华为设备配置IP和虚拟专用网混合FRR
华为设备配置IP和虚拟专用网混合FRR
2022-06-13 01:53:00 【Tony_long7483】
配置接口IP地址
[PE1-LoopBack1]ip add 1.1.1.1 32
[PE1-GigabitEthernet0/0/0]ip add 10.3.1.1 24
[PE2-LoopBack1]ip add 2.2.2.2 32
[PE2-GigabitEthernet0/0/0]ip add 10.3.1.2 24
[CE-GigabitEthernet0/0/0]ip add 10.1.1.3 24
[CE-GigabitEthernet0/0/1]ip add 10.2.1.3 24
[CE-GigabitEthernet0/0/2]ip add 10.5.1.3 24在MPLS骨干网上配置OSPF协议,实现骨干网PE互通
[PE1]ospf 1
[PE1-ospf-1]area 0
[PE1-ospf-1-area-0.0.0.0]network 1.1.1.1 0.0.0.0
[PE1-ospf-1-area-0.0.0.0]network 10.3.1.0 0.0.0.255
[PE2]ospf 1
[PE2-ospf-1]area 0
[PE2-ospf-1-area-0.0.0.0]network 2.2.2.2 0.0.0.0
[PE2-ospf-1-area-0.0.0.0]network 10.3.1.0 0.0.0.255在MPLS骨干网上配置MPLS基本能力和MPLS LDP,建立LDP LSP
[PE1]mpls lsr-id 1.1.1.1
[PE1]mpls
[PE1]mpls ldp
[PE1-GigabitEthernet0/0/0]mpls
[PE1-GigabitEthernet0/0/0]mpls ldp
[PE2]mpls lsr-id 2.2.2.2
[PE2]mpls
[PE2]mpls ldp
[PE2-GigabitEthernet0/0/0]mpls
[PE2-GigabitEthernet0/0/0]mpls ldp在PE设备上配置VPN实例,将CE接入PE
[PE1]ip vpn-instance vpn1
[PE1-vpn-instance-vpn1]ipv4-family
[PE1-vpn-instance-vpn1-af-ipv4]route-distinguisher 100:1
[PE1-vpn-instance-vpn1-af-ipv4]vpn-target 1:1
[PE1-GigabitEthernet0/0/1]ip binding vpn-instance vpn1
[PE1-GigabitEthernet0/0/1]ip add 10.1.1.1 24
[PE2]ip vpn-instance vpn1
[PE2-vpn-instance-vpn1]ipv4-family
100:2
[PE2-vpn-instance-vpn1-af-ipv4]vpn-target 1:1
[PE2-GigabitEthernet0/0/1]ip binding vpn-instance vpn1
[PE2-GigabitEthernet0/0/1]ip add 10.2.1.2 24CE和PE之间配置静态路由。在PE1和PE2上引入直连VPN路由和静态路由
[PE1]ip route-static vpn-instance vpn1 10.1.5.0 24 g0/0/1 10.1.1.3
[PE1]bgp 100
[PE1-bgp]ipv4-family vpn-instance vpn1
[PE1-bgp-vpn1]import-route direct
[PE1-bgp-vpn1]import-route static
[PE2]ip route-static vpn-instance vpn1 10.5.1.0 24 g0/0/1 10.2.1.3
[PE2]bgp 100
[PE2-bgp]ipv4-family vpn-instance vpn1
[PE2-bgp-vpn1]import-route direct
[PE2-bgp-vpn1]import-route static
[CE]ip route-static 0.0.0.0 0.0.0.0 10.1.1.1 preference 60
[CE]ip route-static 0.0.0.0 0.0.0.0 10.2.1.2 preference 100在PE之间建立BGP VPNv4对等体
[PE1]bgp 100
[PE1-bgp]peer 2.2.2.2 as-number 100
[PE1-bgp]peer 2.2.2.2 connect-interface LoopBack 1
[PE1-bgp]ipv4-family vpnv4
[PE1-bgp-af-vpnv4]peer 2.2.2.2 enable
[PE2]bgp 100
[PE2-bgp]peer 1.1.1.1 as-number 100
[PE2-bgp]peer 1.1.1.1 connect-interface LoopBack 1
[PE2-bgp]ipv4-family vpnv4
[PE2-bgp-af-vpnv4]peer 1.1.1.1 enable配置混合FRR路由策略
[PE1]ip ip-prefix f1 permit 10.1.1.3 32
[PE1]route-policy f1 permit node 10
[PE1-route-policy]if-match ip next-hop ip-prefix f1
[PE1-route-policy]apply backup-nexthop 2.2.2.2使能IP FRR
[PE1]ip vpn-instance vpn1
[PE1-vpn-instance-vpn1]ipv4-family
[PE1-vpn-instance-vpn1-af-ipv4]ip frr route-policy f1
边栏推荐
- Auto commit attribute of MySQL
- Detailed explanation of audience characteristics
- Répertoire d'exclusion du transport rsync
- Should the audience choose observation mode or positioning mode?
- Compiling minicom-2.7.1 under msys2
- Super complete regular expressions
- ng-tv-focusable
- Read routing table
- How do you use your own data to achieve your marketing goals?
- Rsync transport exclusion directory
猜你喜欢
TensorFlow2的Conv1D, Conv2D,Conv3D机器对应的MaxPooling详解
Simple ranging using Arduino and ultrasonic sensors
Developer contributions amd Xilinx Chinese Forum sharing - wisdom of questioning
Design of distributed game server
leetcode743. 网络延迟时间(中等, dijkstra)
白噪声的详细理解
[wsl2]wsl2 migrate virtual disk file ext4 vhdx
LabVIEW large project development tools to improve quality
pringboot之restfull接口规范注解(二)
LabVIEW大型项目开发提高质量的工具
随机推荐
Using atexit to realize automatic destruct of singleton mode
leetcode743. 网络延迟时间(中等, dijkstra)
Top level configuration + cooling black technology + cool appearance, the Red Devils 6S Pro is worthy of the flagship game of the year
MySQL - use field alias after where
【MathType】利用MathType输出LaTex样式的公式
Installing pytorch geometric
Numpy multidimensional array transpose transpose
[the second day of actual combat of smart lock project based on stm32f401ret6 in 10 days] (lighting with library function and register respectively)
Use mediapipe+opencv to make a simple virtual keyboard
pytorch : srcIndex < srcSelectDimSize
STM32 3*3矩阵按键(寄存器版本)
[soft test] software designer knowledge points sorting (to be updated)
About the proposed signature file migration to industry standard format pkcs12
Using OpenCV in go
谷歌加大型文字广告是什么?怎么用?
What is solid angle
Introduction to common ROS commands
JSON and protobuf Any interchange
How many smart bids does Google have?
Delphi 10.4.2 release instructions and installation methods of three patches