国丰帮您-采用LDP作为VPLS信令建立PW--VPLS示例

配置LDP方式VPLS示例

拓扑如下:

在这里插入图片描述

配置思路:

  • 在骨干网上配置路由协议实现互通。

  • 在PE之间建立远端LDP会话。

  • PE间建立传输业务数据所使用的隧道。

  • PE上使能MPLS L2VPN。

  • 在PE上创建VSI,指定信令为LDP,然后将VSI与AC接口绑定。

配置:

NE1 配置:

sys
sysname NE1
mpls lsr-id 1.1.1.1
#
mpls
#
mpls l2vpn
#
vsi a2
 pwsignal ldp
  vsi-id 2
  peer 3.3.3.3 
#

mpls ldp
#
interface Ethernet1/0/0
 undo shutdown
 ip address 12.1.1.1 255.255.255.0
 mpls
 mpls ldp

#

interface Ethernet1/0/1
l2 binding vsi a2

#
interface LoopBack0
 ip address 1.1.1.1 255.255.255.255

#
ospf 1 router-id 1.1.1.1
 area 0.0.0.0
  network 1.1.1.1 0.0.0.0
  network 12.1.1.1 0.0.0.0
#
mpls ldp remote-peer 3.3.3.3
 remote-ip 3.3.3.3
#

commi
#

NE2配置:

sys
sysname NE2

mpls lsr-id 2.2.2.2
#
mpls
#
mpls ldp

#
interface Ethernet1/0/0
 undo shutdown
 ip address 12.1.1.2 255.255.255.0
 mpls
 mpls ldp

#
interface Ethernet1/0/1
 undo shutdown
 ip address 23.1.1.2 255.255.255.0
 mpls
 mpls ldp

#
interface LoopBack0
 ip address 2.2.2.2 255.255.255.255
#
ospf 1 router-id 2.2.2.2
 area 0.0.0.0
  network 2.2.2.2 0.0.0.0
  network 12.1.1.2 0.0.0.0
  network 23.1.1.2 0.0.0.0

#
commi
#


NE3配置:

sys
sysname NE3

mpls lsr-id 3.3.3.3
#
mpls
#
mpls l2vpn
#
mpls ldp
#
vsi a2
 pwsignal ldp
  vsi-id 2
  peer 1.1.1.1 
#

interface Ethernet1/0/0
 undo shutdown
 ip address 23.1.1.3 255.255.255.0
 mpls
 mpls ldp
#

interface Ethernet1/0/1
l2 binding vsi a2

#
interface LoopBack0
 ip address 3.3.3.3 255.255.255.255
#

ospf 1 router-id 3.3.3.3
 area 0.0.0.0
  network 3.3.3.3 0.0.0.0
  network 23.1.1.3 0.0.0.0

#
mpls ldp remote-peer 1.1.1.1
 remote-ip 1.1.1.1
#
commi
#

验证命令:

display mpls ldp session  # 可以看到PE1和PE2之间的对等体的Status项为“Operational”
display mpls lsp

猜你喜欢

转载自blog.csdn.net/jingxinguofeng/article/details/118361854
ldp
今日推荐