当前位置:网站首页>ENSP MPLS layer 3 dedicated line

ENSP MPLS layer 3 dedicated line

2022-07-07 12:08:00 Chenjijjn

Topology
 Insert picture description here
Use... On the left OSPF, Use on the right ISIS. Route introduction on both sides , All routers are turned on MPLS.R3R4 Use EBGP Interworking . Two switches are used to make VLAN Connect to the sub interface of the router .
R1 To configure :

<r1>dis cu
#
sysname r1
#
mpls lsr-id 1.1.1.1
mpls
#
mpls ldp

#
interface GigabitEthernet0/0/0
 ip address 10.0.100.1 255.255.255.252
 mpls
 mpls ldp
#
interface GigabitEthernet0/0/1
 ip address 10.0.0.1 255.255.255.252
 mpls
 mpls ldp
#

interface LoopBack0
 ip address 1.1.1.1 255.255.255.255
#
ospf 1
 import-route direct
 area 0.0.0.0
  network 1.1.1.1 0.0.0.0
  network 10.0.0.0 0.0.0.3
  network 10.0.100.0 0.0.0.3
#

R2 To configure :

<r2>dis cu
#
sysname r2
#
mpls lsr-id 2.2.2.2
mpls
#
mpls ldp
#

isis 100
 network-entity 49.0001.0222.2000.0000.00
 import-route direct
 import-route ospf 1
#

interface GigabitEthernet0/0/0
 ip address 10.0.100.2 255.255.255.252
 isis enable 100
 mpls
 mpls ldp
#
interface GigabitEthernet0/0/1
 ip address 10.0.1.1 255.255.255.252
 isis enable 100
 mpls
 mpls ldp
#

interface LoopBack0
 ip address 2.2.2.2 255.255.255.255
 isis enable 100
#
ospf 1
 import-route isis 100
 area 0.0.0.0
  network 0.0.0.0 255.255.255.255

R3 To configure :

#
sysname r3
#
ip vpn-instance vpna
 ipv4-family
  route-distinguisher 100:1
  vpn-target 111:1 export-extcommunity
  vpn-target 111:1 import-extcommunity
#
mpls lsr-id 3.3.3.3
mpls
#
mpls ldp
#

interface GigabitEthernet0/0/0
 ip address 10.0.0.2 255.255.255.252
 mpls
 mpls ldp
#
interface GigabitEthernet0/0/1
#
interface GigabitEthernet0/0/1.10
 dot1q termination vid 10
 ip binding vpn-instance vpna
 ip address 10.0.10.1 255.255.255.252
#

interface LoopBack0
 ip address 3.3.3.3 255.255.255.255
#
bgp 100
 router-id 3.3.3.3
 peer 4.4.4.4 as-number 200
 peer 4.4.4.4 ebgp-max-hop 10
 peer 4.4.4.4 connect-interface LoopBack0
 #
 ipv4-family unicast
  undo synchronization
  peer 4.4.4.4 enable
  peer 4.4.4.4 next-hop-local
 #
 ipv4-family vpnv4
  policy vpn-target
  peer 4.4.4.4 enable
 #
 ipv4-family vpn-instance vpna
  import-route direct
  import-route static
#
ospf 1
 area 0.0.0.0
  network 3.3.3.3 0.0.0.0
  network 10.0.0.0 0.0.0.3

R4 To configure

#
sysname r4
#
ip vpn-instance vpna
 ipv4-family
  route-distinguisher 100:1
  vpn-target 111:1 export-extcommunity
  vpn-target 111:1 import-extcommunity
#
mpls lsr-id 4.4.4.4
mpls
#
mpls ldp
#

isis 100
 network-entity 49.0001.0444.4000.0000.00
#

interface GigabitEthernet0/0/0
 ip address 10.0.1.2 255.255.255.252
 isis enable 100
 mpls
 mpls ldp
#
interface GigabitEthernet0/0/1
#
interface GigabitEthernet0/0/1.20
 dot1q termination vid 20
 ip binding vpn-instance vpna
 ip address 10.0.20.1 255.255.255.252
#
interface GigabitEthernet0/0/2
 ip binding vpn-instance vpna
 ip address 10.0.30.1 255.255.255.252
#

interface LoopBack0
 ip address 4.4.4.4 255.255.255.255
 isis enable 100
#
bgp 200
 router-id 4.4.4.4
 peer 3.3.3.3 as-number 100
 peer 3.3.3.3 ebgp-max-hop 10
 peer 3.3.3.3 connect-interface LoopBack0
 #
 ipv4-family unicast
  undo synchronization
  import-route static
  peer 3.3.3.3 enable
  peer 3.3.3.3 next-hop-local
 #
 ipv4-family vpnv4
  policy vpn-target
  peer 3.3.3.3 enable
 #
 ipv4-family vpn-instance vpna
  import-route direct
  import-route static
#

3 Hosts can interact ping,R1R2 There are MPLS label 
原网站

版权声明
本文为[Chenjijjn]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202130619121062.html