当前位置:网站首页>Hcip experiment (14)
Hcip experiment (14)
2022-07-28 22:14:00 【Never tasted the Jianjia outside the building】

One , First of all mpls vpn Backbone network configuration public network IP Address
R2

R3
R4
Two , Use OSPF Access to the public network IP The routing entry for
ospf 1 router-id 2.2.2.2
area 0.0.0.0
network 2.2.2.2 0.0.0.0
network 23.0.0.0 0.0.0.255

3、 ... and , establish mlps
[r2]mpls lsr-id 2.2.2.2 ---mpls Of router-id, For the real of the local device ip Address , And neighbors can reach
[r2]mpls --- Global on mpls agreement
[r2]mpls ldp --- Activate LDP agreement
[r2-GigabitEthernet0/0/1]mpls --- Interface on mpls agreement
[r2-GigabitEthernet0/0/1]mpls ldp --- Interface activation LDP agreement
Be careful :MLPS Every interface of the domain should be turned on

Four , To configure MPLS VPN
( One ) To configure R2 Of vpn
To configure vpn a
[r2]ip vpn-instance a --- Create a a Of vrf Space
[r2-vpn-instance-a]route-distinguisher 100:100 --- To configure RD value
[r2-vpn-instance-a-af-ipv4]vpn-target 100:1 ? --- To configure PT value
both --- Outbound and inbound are the same
export-extcommunity --- Configure outbound RT
import-extcommunity --- Configure inbound RT
[r2-vpn-instance-a-af-ipv4]vpn-target 100:1 both
[r2]int g0/0/0
[r2-GigabitEthernet0/0/0]ip binding vpn-instance a --- Related to vrf Space
[r2-GigabitEthernet0/0/0]ip address 192.168.2.2 24 --- Configuration private ip Address
To configure vpn b
[r2]ip vpn-instance b
[r2-vpn-instance-b]route-distinguisher 200:200
[r2-vpn-instance-b-af-ipv4]vpn-target 200:1 both
[r2]int g0/0/2
[r2-GigabitEthernet0/0/2]ip binding vpn-instance b
[r2-GigabitEthernet0/0/2]ip address 172.16.2.2 24
( Two ) To configure R4 Of vpn
To configure vpn a
[r4]ip vpn-instance a
[r4-vpn-instance-a]route-distinguisher 100:100
[r4-vpn-instance-a-af-ipv4]vpn-target 100:1 both
[r4]int g0/0/1
[r4-GigabitEthernet0/0/1]ip binding vpn-instance a
[r4-GigabitEthernet0/0/1]ip address 192.168.3.2 24
To configure vpn b
[r4]ip vpn-instance b
[r4-vpn-instance-b]route-distinguisher 200:200
[r4-vpn-instance-b-af-ipv4]vpn-target 200:1 both
[r4]int g0/0/2
[r4-GigabitEthernet0/0/2]ip binding vpn-instance b
[r4-GigabitEthernet0/0/2]ip address 172.16.3.2 24
( 3、 ... and ) To configure r1,r5,r6,r7IP Address
[r1-GigabitEthernet0/0/0]ip address 192.168.2.1 24
[r1-LoopBack0]ip address 192.168.1.1 24
[r5-GigabitEthernet0/0/0]ip address 192.168.3.1 24
[r5-LoopBack0]ip address 192.168.4.1 24
[r6-GigabitEthernet0/0/0]ip address 172.16.2.1 24
[r6-LoopBack0]ip address 172.16.1.1 24
[r7-GigabitEthernet0/0/0]ip address 172.16.3.1 24
[r7-LoopBack0]ip address 172.16.4.1 24
notes : In relation to vrf Interface cannot be configured before space ip, Otherwise, the direct route of the address will enter the public route table
[r2]display ip routing-table vpn-instance a --- View the private routing table in the space
[r2]ping -vpn-instance a 192.168.2.1 The normal test will query the records in the public routing table ; This command is based on VRF Space
5、 ... and , To configure BGP Jianlin
R2:
[r2]bgp 1
[r2-bgp]router-id 2.2.2.2
[r2-bgp]peer 4.4.4.4 as-number 1
[r2-bgp]peer 4.4.4.4 connect-interface LoopBack 0
[r2-bgp]ipv4-family vpnv4 --- Get into vpnv4
[r2-bgp-af-vpnv4]peer 4.4.4.4 enable --- Turn on VPNv4 Neighborhood building
R4:
[r4]bgp 1
[r4-bgp]router-id 4.4.4.4
[r4-bgp]peer 2.2.2.2 as-number 1
[r4-bgp]peer 2.2.2.2 connect-interface LoopBack 0
[r4-bgp]ipv4-family vpnv4
[r4-bgp-af-vpnv4]peer 2.2.2.2 enable
6、 ... and , to R1-R2 and R4-R5 Configure static , So that they can access each other
( One ) Configure static routing
R1:
[r1]ip route-static 192.168.3.0 24 192.168.1.2
[r1]ip route-static 192.168.4.0 24 192.168.1.2
R2:
[r2]ip route-static vpn-instance a 192.168.1.0 192.168.2.1
R4:
[r4]ip route-static vpn-instance a 192.168.4.0 24 192.168.3.1
R5:
[r5]ip route-static 192.168.1.0 24 192.168.3.2
[r5]ip route-static 192.168.2.0 24 192.168.3.2
( Two ) Get into BGP Publish route
[r2]bgp 1
[r2-bgp]ipv4-family vpn-instance a
[r2-bgp-a]import-route static
[r2-bgp-a]import-route direct
[r4]bgp 1
[r4-bgp]ipv4-family vpn-instance a
[r4-bgp-a]import-route static
[r4-bgp-a]import-route direct
7、 ... and ,R6 adopt RIP Pass private network route to PE equipment ,R7 adopt osPF Pass private network route to PE equipment ,
R2——R6:rip
[r2]rip 1 vpn-instance b
[r2-rip-1]v 2
[r2-rip-1]network 172.16.0.0
[r6]rip
[r6-rip-1]v 2
[r6-rip-1]network 172.16.0.0
R4—R7: ospf
[r4]ospf 2 vpn-instance b router-id 4.4.4.4
[r4-ospf-2]a 0
[r4-ospf-2-area-0.0.0.0]network 172.16.0.0 0.0.255.255
[r7]ospf 1 router-id 7.7.7.7
[r7-ospf-1]a 0
[r7-ospf-1-area-0.0.0.0]net
[r7-ospf-1-area-0.0.0.0]network 172.16.0.0 0.0.255.255
Double point release
[r2]rip
[r2-rip-1]import-route bgp 1
[r2]bgp 1
[r2-bgp]ipv4-family vpn-instance b
[r2-bgp-b]import-route rip 1
[r4]bgp 1
[r4-bgp]ipv4-family vpn-instance b
[r4-bgp-b]import-route ospf 2
[r4]ospf 2
[r4-ospf-2]import-route bgp
8、 ... and , Configure a default , send R7 You can visit R2/R3/R4 Loopback .
[r7]ip route-static 0.0.0.0 0 47.0.0.1
边栏推荐
- What testing services do third-party software testing institutions provide? Charging standard of software test report
- Official document of kubevela 1.4.x
- Msfvenom makes master and controlled terminals
- HCIP(9)
- Small program canvas generates posters
- Record the fluent to solve the problem of a renderflex overflowed by 7.3 pixels on the bottom
- kingbase中指定用户默认查找schema,或曰用户无法使用public schema下函数问题
- No swagger, what do I use?
- 什么是时间复杂度
- HCIA comprehensive experiment (take Huawei ENSP as an example)
猜你喜欢

The person in charge of Tencent cloud database borrowed 100 million yuan to speculate in stocks? Insider: the amount is not true

System Analyst

2021数学建模B组练习

HCIP(14)

Kubevera plug-in addons download address

第 7 篇:绘制旋转立方体

Miscellaneous records of powersploit, evaluation, weevery and other tools in Kali

什么是时间复杂度

Official document of kubevela 1.4.x

Which brand is the best and most cost-effective open headset
随机推荐
如何在 Web3中建立一个去中心化社区
HYDAC overflow valve db08a-01-c-n-500v
LVS+KeepAlived高可用部署实战应用
The applet listens for the target node to appear on the screen
What is a prime factor? In number theory, a prime factor (prime factor or prime factor) refers to a prime number that can divide a given positive integer
No swagger, what do I use?
JS DOM编程之平平无奇小练习
Divide and conquer, upload large files in pieces
[CS231N]Lecture_2:Image Classification pipelin
罗克韦尔AB PLC RSLogix数字量IO模块基本介绍
[machine learning] naive Bayesian classification of text -- Classification of people's names and countries
39. Combined sum
How to establish a decentralized community in Web3
IFLYTEK written examination
阿里云CDN实践
Data interpolation -- normalize data of different magnitude
Oracle database objects
DHCP和PPPoE协议以及抓包分析
小程序 canvas 生成海报
Lvs+keepalived high availability deployment practical application