当前位置:网站首页>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
边栏推荐
- You must know the ten vulnerabilities of invalid access control
- Problem solution of supporting problem solution of heavy chain dissection example
- What is IMU?
- Introduction to pytorch ecology
- Developers share the first chapter of "Book Eating bar: deep learning and mindspire practice"
- 正则表达式 \b \B 深入浅出理解单词边界的匹配
- Leetcode Hot 100 (Brush Topic 8) (232 / 88 / 451 / offer10 / offer22 / 344 /)
- Error code 0x80004005
- Genesis public chain: Tamp the foundation of Web 3.0 development
- Embedded system transplantation [5] - Cross compilation tool chain
猜你喜欢
![Scenario and value of data desensitization [summary]](/img/15/ebfbbb708c94417e7291941e76b3a3.png)
Scenario and value of data desensitization [summary]

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

Worthington: characteristics and other parameters of hexokinase from yeast

buu web

Demining game (analysis)

Pit encountered in project upgrading

MLP - Multilayer Perceptron

Cannot resolve symbol 'override' of idea clone‘

What is the experience of writing concurrent tool classes (semaphore, cyclicbarrier, countdownlatch) by yourself in line 30?

C语言经典练习题(2)——“冒泡排序(Bubble Sort)“
随机推荐
The local picture cannot be displayed after the uniapp H5 is packaged
SqlServer 备份还原
Cache component status when Vue components are switched, that is, dynamic components keep alive dynamic components and asynchronous components
Native JS realizes the acquisition and operation of DOM
Master chip csu18m92 develops intelligent scale scheme
QT custom class uses custom parametric signals and slots
jvm类加载过程简介说明
[wepy2.0] installation
【无标题】
Cannot resolve symbol 'override' of idea clone‘
C language implementation of user login program
Do you know how to do interface testing well?
21st day of written test mandatory training
[super complete sorting] Cisco and Huawei order comparison memo, take it away without thanks! Anytime, anywhere
Tetris, 1
Worthington's test of hepatocyte separation system and related optimization schemes
Correct usage of iota in golang
Active vibration reduction system of hub motor and its vertical performance optimization
Workbnech application of dynamixel steering gear under ROS
C file operation details