当前位置:网站首页>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
边栏推荐
- II. Explanation of the sequence and deserialization mechanism of redistemplate
- HCIA comprehensive experiment (take Huawei ENSP as an example)
- 科大讯飞笔试
- Which brand is the best and most cost-effective open headset
- Data visualization news, different forms of news reports
- 记录Flutter解决A RenderFlex overflowed by 7.3 pixels on the bottom溢出问题
- HCIP(10)
- 【机器学习】朴素贝叶斯对文本分类--对人名国别分类
- 熊市下 DeFi 的未来趋势
- Form validation and cascading drop-down lists (multiple implementations)
猜你喜欢

Getting started with Oracle

HCIP第七次实验

Chapter 7: drawing rotating cubes

【机器学习】朴素贝叶斯对文本分类--对人名国别分类

Embrace open source guidelines

Have you seen the management area decoupling architecture? Can help customers solve big problems

hcip实验(12)

Which brand is the best and most cost-effective open headset

如何在 Web3中建立一个去中心化社区

从 Web3到Web2.5,是倒退还是另辟蹊径?
随机推荐
第三方软件测试机构提供哪些测试服务?软件测试报告收费标准
【机器学习】朴素贝叶斯对文本分类--对人名国别分类
HCIP第七次实验
System Analyst
Intranet penetration learning (III) horizontal movement of domain - planning tasks
表单验证和级联下拉列表(多种实现)
Use pl/sql
04.toRef 默认值
【云原生之kubernetes】在kubernetes集群下的映射外部服务—Eendpoint
openresty 请求鉴权
KubeEdge发布云原生边缘计算威胁模型及安全防护技术白皮书
[machine learning] naive Bayesian classification of text -- Classification of people's names and countries
Technology selection rust post analysis
Explain the remote debugging program of visual studio 2015 in LAN
hcip实验(12)
Ordinary practice of JS DOM programming
display 各值的区别
Save 70% of the video memory and increase the training speed by 2 times! Zheda & Ali proposed online convolution re parameterization orepa, and the code has been open source! (CVPR 2022 )
HCIP(12)
[NLP] generate word cloud