当前位置:网站首页>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
边栏推荐
猜你喜欢

Oracle database objects

Getting started with Oracle

hcip实验(15)

第 8 篇:创建摄像机类

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 )

Learning notes and summary of C language programming specification

2021数学建模B组练习

In Kingbase, the user is specified to search the schema by default, or the user cannot use the function under the public schema

Practice and exploration of overseas site Seata of ant group

40. Combined sum II
随机推荐
Learn kotlin - extension function
In Kingbase, the user is specified to search the schema by default, or the user cannot use the function under the public schema
How does MySQL archive data?
内网渗透学习(三)域横向移动——计划任务
小程序 canvas 生成海报
ESP8266-Arduino编程实例-定时器与中断
Have you seen the management area decoupling architecture? Can help customers solve big problems
msfvenom制作主控与被控端
Implementation of sequence table
开放式耳机哪个品牌好、性价比最高的开放式耳机排名
笔试总结记录
From Web3 to web2.5, is it backward or another way?
LVS+KeepAlived高可用部署实战应用
【NLP】生成词云
Practice and exploration of overseas site Seata of ant group
HYDAC溢流阀DB08A-01-C-N-500V
39. Combined sum
HCIP(13)
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 )
Aimbetter insight into your database, DPM and APM solutions