当前位置:网站首页>华为设备配置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
边栏推荐
- 什么是立体角
- 6、 Implementation of warehouse out management function
- Torch. Distributions. Normal
- matplotlib画图中文乱码
- 30: Kakfa simulates JSON data generation and transmission
- 指针链表的实现
- About constructive code blocks, static code blocks, and constructor execution order
- leetcode743. 网络延迟时间(中等, dijkstra)
- Stone from another mountain: Web3 investment territory of a16z
- LabVIEW large project development tools to improve quality
猜你喜欢

Top level configuration + cooling black technology + cool appearance, the Red Devils 6S Pro is worthy of the flagship game of the year

水管工游戏

QT realizes mind mapping function (II)
![[wsl2]wsl2 migrate virtual disk file ext4 vhdx](/img/e9/4e08e07c2de2f99c2938e79f7f1c44.png)
[wsl2]wsl2 migrate virtual disk file ext4 vhdx

如何通过受众群体定位解决实际问题?

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

Server installation jupyterab and remote login configuration

路径字段是什么? ——竞价广告

10 days based on stm32f401ret6 smart lock project practice day 1 (environment construction and new construction)

Get started quickly cmake
随机推荐
Decompression and compression of chrome resource file Pak
Vs how to enter chromium subprocess debugging
万字讲清 synchronized 和 ReentrantLock 实现并发中的锁
Audiences with similar interests
How to solve practical problems through audience positioning?
Restrict cell input type and display format in CXGRID control
Unity jsonutility failed to serialize list
[the 4th day of the 10 day smart lock project based on stm32f401ret6] what is interrupt, interrupt service function, system tick timer
Design of distributed game server
Using OpenCV in go
Topic creation and running example of ROS
Use of Arduino series pressure sensors and detected data displayed by OLED (detailed tutorial)
Differences between constants and variables (detailed description) (learning note 3 -- variables and constants)
[sequence structure, branch structure, loop structure, continue statement, break statement, return statement] (learning Note 6 -- C language process control)
Explanation and application of prefix sum (one-dimensional, two-dimensional)
What did Hello travel do right for 500million users in five years?
How to learn C language and share super detailed experience (learning note 1 -- basic data types of C language)
服务器安装jupyterlab以及远程登录配置
Vscode configuration header file -- Take opencv and its own header file as an example
Delphi 10.4.2 release instructions and installation methods of three patches