当前位置:网站首页>华为设备配置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
边栏推荐
- ng-tv-focusable
- Jeux de plombiers
- Detailed explanation of maxpooling corresponding to conv1d, conv2d and conv3d machines of tensorflow2
- 微服务开发环境搭建
- Read routing table
- Design of distributed game server
- Use mediapipe+opencv to make a simple virtual keyboard
- Opencv camera calibration (2): fish eye camera calibration
- Wsl2 + vcxsrv + opengl3.3 configuration
- Day 1 of the 10 day smart lock project (understand the SCM stm32f401ret6 and C language foundation)
猜你喜欢

What did Hello travel do right for 500million users in five years?

Introduction to Google unit testing tools GTEST and gmoke

How to solve practical problems through audience positioning?

Combining strings and numbers using ssstream

URI, URL and urn difference, relation and syntax diagram

Devexpress implementation flow chart

服务器安装jupyterlab以及远程登录配置

指针链表的实现

A DPU architecture without CPU: Hyperion

STM32 3*3矩阵按键(寄存器版本)
随机推荐
[sequence structure, branch structure, loop structure, continue statement, break statement, return statement] (learning Note 6 -- C language process control)
URI, URL and urn difference, relation and syntax diagram
[MySQL password management] - [administrator password known, unknown (forgotten), cracked]
MySQL - use field alias after where
Stone from another mountain: Web3 investment territory of a16z
Implementation of pointer linked list
Magics 23.0如何激活和使用视图工具页的切片预览功能
Decompression and compression of chrome resource file Pak
Run Presto under docker to access redis and Bi presentation
Pytoch freeze pre training weights (feature extraction and BN layer)
numpy多维数组转置transpose
六、出库管理功能的实现
[MathType] use MathType to output latex style formula
Detailed explanation of audience characteristics
服务器安装jupyterlab以及远程登录配置
dfs与bfs解决宝岛探险
[the second day of actual combat of smart lock project based on stm32f401ret6 in 10 days] GPIO and register
The scientific innovation board successfully held the meeting, and the IPO of Kuangshi technology ushered in the dawn
QT realizes mind mapping function (II)
Simple ranging using Arduino and ultrasonic sensors