EVE-NG MPLS L2VPN static lsp

目录

1 拓扑

2 配置步骤

2.1 配置接口IP 和路由协议

2.2 配置MPLS  LDP

2.3 配置L2VPN PW

2.4 验证L2VPN


1 拓扑

EVE-NG MPLS L2VPN static lsp_第1张图片

2 配置步骤

2.1 配置接口IP 和路由协议

PE1

interface LoopBack 0
 ip address 1.1.1.9 32 
 quit

interface GigabitEthernet1/0
 ip address 10.1.1.1 255.255.255.0
 quit

 
ospf 1
 area 1
  network 1.1.1.9 0.0.0.0
  network 10.1.1.0 0.0.0.255
  quit
 quit

P

interface LoopBack 0
 ip address 2.2.2.9 32 
 quit

interface GigabitEthernet1/0
 ip address 10.1.1.2 255.255.255.0
 quit

interface GigabitEthernet2/0
 ip address 20.1.1.1 255.255.255.0
 quit

ospf 1
 area 1
  network 2.2.2.9 0.0.0.0
  network 10.1.1.0 0.0.0.255
  network 20.1.1.0 0.0.0.255
  quit
 quit

PE2

interface LoopBack 0
 ip address 3.3.3.9 32 
 quit

interface GigabitEthernet1/0
 ip address 20.1.1.2 255.255.255.0
 quit


ospf 1
 area 1
  network 3.3.3.9 0.0.0.0
  network 20.1.1.0 0.0.0.255
  quit
 quit

VPC1

ip 11.1.1.100/24

VPC2

ip 11.1.1.200/24

查看OSPF 学习情况

EVE-NG MPLS L2VPN static lsp_第2张图片

2.2 配置MPLS  LDP

PE1

mpls lsr-id 1.1.1.9
mpls label advertise non-null
mpls ldp
 quit
 
interface GigabitEthernet1/0
 mpls enable
 mpls ldp enable
 quit

P

mpls lsr-id 2.2.2.9
mpls label advertise non-null
mpls ldp
 quit
 
interface GigabitEthernet1/0
 mpls enable
 mpls ldp enable
 quit

interface GigabitEthernet2/0
 mpls enable 
 mpls ldp enable
 quit

PE2

mpls lsr-id 3.3.3.9
mpls label advertise non-null
mpls ldp
 quit

interface GigabitEthernet1/0
 mpls enable
 mpls ldp enable
 quit

查看 LDP LSP

EVE-NG MPLS L2VPN static lsp_第3张图片

2.3 配置L2VPN PW

PE1

l2 enable
xconnect-group a
 connection s1
  ac interface GigabitEthernet2/0 
  peer 3.3.3.9 pw-id 1 in-label 100 out-label 200
   quit
  quit
 quit

PE2

l2 enable
xconnect-group a
 connection s1
  ac interface GigabitEthernet2/0 
  peer 1.1.1.9 pw-id 1 in-label 200 out-label 100
   quit
  quit
 quit

查看PW

EVE-NG MPLS L2VPN static lsp_第4张图片

2.4 验证L2VPN

 EVE-NG MPLS L2VPN static lsp_第5张图片

你可能感兴趣的:(EVE-NG,网络协议,EVE-NG,MPLS,VPN)