当前位置:网站首页>MPLS VPN cross domain -optionb
MPLS VPN cross domain -optionb
2022-07-24 03:42:00 【GRQ。】
adopt optionB programme hold CE1 Private network routing 192.168.1.1 to CE2
The network topology is as follows :

Configuration ideas :
1. stay AS100 Follow AS200 Running in RIPv2 agreement
2. stay AS100 Follow AS200 Run in MPLS LDP
3.R2 Follow R1 R2 Follow R3 establish bgp, here R2 Act as a reflector
4.R1 To create a VPN example , function ospf binding VPN Examples follow CE1 Build a neighborhood
5. stay R1 From BGP Introduced in the agreement ospf agreement ( here R3 There will be 192.168.1.1 The routing )
6.R3 Follow R4 establish EBGP Neighborhood
7. stay R6 To create a VPN example , function ospf binding VPN Examples follow CE2 Build a neighborhood
8. stay R6 From ospf Introduced in the agreement bgp agreement ( here CE2 There is already 192.168.1.1 The routing )
9. Then turn it in the opposite direction R6 introduce ospf,R1 introduce bgp( here CE1 Yes CE2 Of 192.168.2.1 The routing )
10.ping -a 192.168.1.1 192.168.2.1 through
CE1
interface GigabitEthernet0/0/0
ip address 10.1.11.2 255.255.255.0
#
interface LoopBack0
ip address 192.168.1.1 255.255.255.0
#
ospf 1 router-id 1.1.1.1
area 0.0.0.0
network 10.1.11.2 0.0.0.0
network 192.168.1.1 0.0.0.0
R1
ip vpn-instance A1 ( establish VPN example A1)
ipv4-family
route-distinguisher 1:1
vpn-target 1:100 export-extcommunity
vpn-target 1:100 import-extcommunity(RD Configure to 1:1 RT Configure to 1:100 both)
#
mpls lsr-id 1.1.1.1
mpls
#
mpls ldp ( To configure MPLS LDP agreement )
#
interface GigabitEthernet0/0/0
ip binding vpn-instance A1
ip address 10.1.11.1 255.255.255.0( stay g0/0/0 Oral binding VPN example A1)
#
interface GigabitEthernet0/0/1
ip address 10.1.12.1 255.255.255.0
mpls
mpls ldp( Each interface is turned on MPLS LDP agreement The following is the same )
#
interface LoopBack0
ip address 1.1.1.1 255.255.255.255
#
bgp 100
peer 2.2.2.2 as-number 100
peer 2.2.2.2 connect-interface LoopBack0
#
ipv4-family unicast
undo synchronization
peer 2.2.2.2 enable
#
ipv4-family vpnv4
policy vpn-target
peer 2.2.2.2 enable(BGP Not on by default vpnv4 Address family , Need to open )
#
ipv4-family vpn-instance A1
import-route ospf 1( stay BGP Introduced in the agreement ospf1 The route in )
#
ospf 1 vpn-instance A1( establish ospf Remember to bind instances A1)
import-route bgp( stay ospf1 Introduced inside BGP The routing )
area 0.0.0.0
network 10.1.11.1 0.0.0.0
#
rip 1
version 2( Remember to use ripv2 )
network 1.0.0.0
network 10.0.0.0
R2
mpls lsr-id 2.2.2.2
mpls
#
mpls ldp
#
interface GigabitEthernet0/0/0
ip address 10.1.12.2 255.255.255.0
mpls
mpls ldp
#
interface GigabitEthernet0/0/1
ip address 10.1.23.2 255.255.255.0
mpls
mpls ldp
#
interface LoopBack0
ip address 2.2.2.2 255.255.255.255
#
bgp 100( here R2 Need to follow R1 R3 establish BGP Neighborhood , Act as a reflector )
peer 1.1.1.1 as-number 100
peer 1.1.1.1 connect-interface LoopBack0
peer 3.3.3.3 as-number 100
peer 3.3.3.3 connect-interface LoopBack0
#
ipv4-family unicastu
ndo synchronization
peer 1.1.1.1 enable
peer 3.3.3.3 enable
#
ipv4-family vpnv4
undo policy vpn-target( You need to turn off tag filtering )
peer 1.1.1.1 enable
peer 1.1.1.1 reflect-client( Inform to R1 As R2 Client )
peer 3.3.3.3 enable
peer 3.3.3.3 reflect-client( Inform to R3 As R2 Client )
#
rip 1
version 2
network 10.0.0.0
network 2.0.0.0
R3
mpls lsr-id 3.3.3.3
mpls
#
mpls ldp
#
interface GigabitEthernet0/0/0
ip address 10.1.23.3 255.255.255.0
mpls
mpls ldp
#
interface GigabitEthernet0/0/1
ip address 10.1.34.3 255.255.255.0
mpls( It's going to open here mpls Announce the label to the opposite end )
#
interface LoopBack0
ip address 3.3.3.3 255.255.255.255
#
bgp 100
peer 2.2.2.2 as-number 100
peer 2.2.2.2 connect-interface LoopBack0
peer 10.1.34.4 as-number 200
#
ipv4-family unicast
undo synchronization
peer 2.2.2.2 enable
peer 10.1.34.4 enable
#
ipv4-family vpnv4
undo policy vpn-target( Be careful undo)
peer 2.2.2.2 enable
peer 10.1.34.4 enable
#
rip 1
version 2
network 3.0.0.0
network 10.0.0.0
R4
mpls lsr-id 4.4.4.4
mpls
#
mpls ldp
#
interface GigabitEthernet0/0/0
ip address 10.1.34.4 255.255.255.0
mpls( Pay attention to R3 The connected interface is turned on mpls)
#
interface GigabitEthernet0/0/1
ip address 10.1.45.4 255.255.255.0
mpls
mpls ldp
#
interface LoopBack0
ip address 4.4.4.4 255.255.255.255
#
bgp 200
peer 6.6.6.6 as-number 200
peer 6.6.6.6 connect-interface LoopBack0
peer 10.1.34.3 as-number 100
#
ipv4-family unicast
undo synchronization
peer 6.6.6.6 enable
peer 10.1.34.3 enable
#
ipv4-family vpnv4
undo policy vpn-target
peer 6.6.6.6 enable
peer 10.1.34.3 enable
#
rip 1
version 2
network 10.0.0.0
network 4.0.0.0
R5
( because R5 Do not act as a reflector , All you need to do here is establish a neighborhood relationship )
mpls lsr-id 5.5.5.5
mpls
#
mpls ldp
#
interface GigabitEthernet0/0/0
ip address 10.1.45.5 255.255.255.0
mpls
mpls ldp
#
interface GigabitEthernet0/0/1
ip address 10.1.56.5 255.255.255.0
mpls
mpls ldp
#
interface LoopBack0
ip address 5.5.5.5 255.255.255.255
#
rip 1
version 2
network 10.0.0.0
network 5.0.0.0
R6
ip vpn-instance B2
ipv4-family
route-distinguisher 1:2 ( Make sure that RD The only )
vpn-target 1:100 export-extcommunity
vpn-target 1:100 import-extcommunity
#
mpls lsr-id 6.6.6.6
mpls
#
mpls ldp
#
interface GigabitEthernet0/0/0
ip address 10.1.56.6 255.255.255.0
mpls
mpls ldp
#
interface GigabitEthernet0/0/1(VPN example B2 binding g0/0/1)
ip binding vpn-instance B2
ip address 10.1.26.6 255.255.255.0
#
interface LoopBack0
ip address 6.6.6.6 255.255.255.255
#
bgp 200
peer 4.4.4.4 as-number 200
peer 4.4.4.4 connect-interface LoopBack0
#
ipv4-family unicast
undo synchronization
peer 4.4.4.4 enable
#
ipv4-family vpnv4
policy vpn-target
peer 4.4.4.4 enable
#
ipv4-family vpn-instance B2
import-route ospf 1(BGP introduce ospf)
#
ospf 1 vpn-instance B2
import-route bgp(ospf introduce bgp)
area 0.0.0.0
network 10.1.26.6 0.0.0.0
#
rip 1
version 2
network 6.0.0.0
network 10.0.0.0
CE2
interface GigabitEthernet0/0/0
ip address 10.1.26.2 255.255.255.0
#
interface LoopBack0
ip address 192.168.3.1 255.255.255.0
#
ospf 1 router-id 2.2.2.2
area 0.0.0.0
network 10.1.26.2 0.0.0.0
network 192.168.3.1 0.0.0.0
边栏推荐
- Worthington: characteristics and other parameters of hexokinase from yeast
- What is the experience of writing concurrent tool classes (semaphore, cyclicbarrier, countdownlatch) by yourself in line 30?
- Two stroke engine mean value model simulation
- Demining game (analysis)
- STL multimap
- Redis
- Technical dry goods | evaluation index based on mindspire detailed perflexity language model
- C. Minimum Ties-Educational Codeforces Round 104 (Rated for Div. 2)
- 排雷游戏(解析)
- Okaleido tiger NFT is about to log in to the binance NFT platform. Are you looking forward to it?
猜你喜欢

C language classic exercises (2) - "bubble sort"“

C user defined type details

4. Hezhou air32f103_ LCD

buu web

Demining game (analysis)

Emqx v4.4.5 Publishing: new exclusive subscriptions and mqtt 5.0 publishing attribute support

93. (leaflet chapter) leaflet situation plotting - modification of attack direction

Anchor point and anchor frame of target detection

MySQL message queue list structure

Active vibration reduction system of hub motor and its vertical performance optimization
随机推荐
Redis transaction learning
Genesis public chain: Tamp the foundation of Web 3.0 development
What is the experience of writing concurrent tool classes (semaphore, cyclicbarrier, countdownlatch) by yourself in line 30?
C user defined type details
PyTorch生态简介
Exercices classiques de langue C (2) - « tri des bulles »
Emqx v4.4.5 Publishing: new exclusive subscriptions and mqtt 5.0 publishing attribute support
How to efficiently install the GPU version of mindspire
Developers share the first chapter of "Book Eating bar: deep learning and mindspire practice"
oh-my-zsh
Simulink code generation: variable subsystem and its code
Histone research -- Characteristics and literature references of histones in Worthington calf thymus
。其中调用时传入t指与Devi遍的,根本问t2,
Machine learning notes - image homography estimation based on deep learning (homographynet)
Problem solution of supporting problem solution of heavy chain dissection example
Leetcode Hot 100 (topic 8) (232/88/451/offer10/offer22/344/)
Using global data to realize data sharing in wechat applet
正则表达式 \b \B 深入浅出理解单词边界的匹配
Learning summary | truly record what mindspire two-day training camp can bring to you (1)!
Android开发——Kotlin语法之Lambda表达式