当前位置:网站首页>华为设备配置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
边栏推荐
- pringboot之restfull接口规范注解(二)
- 移动IPv6光猫登录的一般ip地址账号与密码,移动光猫变桥接模式
- MySQL download and installation
- Alertwindowmanager pop up prompt window help (Part 1)
- 6、 Implementation of warehouse out management function
- leetcode743. 网络延迟时间(中等, dijkstra)
- Delphi implements adding a column of serial number to the CXGRID list
- How does Google's audience work?
- 一种不带CPU的DPU架构:Hyperion
- csdn涨薪技术之Jmeter接口测试数据库断言的实现与设计
猜你喜欢

(no plug-in) summary of vim basic shortcut keys

Ten thousand words make it clear that synchronized and reentrantlock implement locks in concurrency

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

About tkinter Canvas does not display pictures
![[the second day of the actual combat of the smart lock project based on stm32f401ret6 in 10 days] light up with the key ----- input and output of GPIO](/img/98/77191c51c1bab28448fe197ea13a33.jpg)
[the second day of the actual combat of the smart lock project based on stm32f401ret6 in 10 days] light up with the key ----- input and output of GPIO

Get started quickly cmake

Numpy multidimensional array transpose transpose

The scientific innovation board successfully held the meeting, and the IPO of Kuangshi technology ushered in the dawn

Stm32 3*3 matrix key (register version)

QT realizes mind mapping function (II)
随机推荐
Learning notes 51 single chip microcomputer keyboard (non coding keyboard and coding keyboard, scanning mode of non coding keyboard, independent keyboard, matrix keyboard)
Day 1 of the 10 day smart lock project (understand the SCM stm32f401ret6 and C language foundation)
MySQL download and installation
Implementation of pointer linked list
The first cell of devaxpress CXGRID after inserting a row is in focus editing status
Use mediapipe+opencv to make a simple virtual keyboard
dfs与bfs解决宝岛探险
Stone from another mountain: Web3 investment territory of a16z
ng-tv-focusable
Devaxpress Chinese description -- tdxgallerycontrol object (gallery component)
LabVIEW large project development tools to improve quality
[wsl2] restrict wsl2 accessible hardware resources (cpu/ memory)
如何通过受众群体定位解决实际问题?
numpy多维数组转置transpose
Compiling minicom-2.7.1 under msys2
Stm32 3*3 matrix key (register version)
cin,cin. get(),cin. Summary of the use of getline() and getline()
Detailed explanation of deep learning parameter adjustment skills
Can't use typedef yet? C language typedef detailed usage summary, a solution to your confusion. (learning note 2 -- typedef setting alias)
Cmake has no obvious error after compilation, but prompts that pthread cannot be found