华尔思专家解析:VPLS 之Martini标准
环境ENSP模拟器
PE1/PE2配置: sysname PE1
#
router id 9.9.0.1 指定router id
#
mpls lsr-id 9.9.0.1 定义MPLS router id
mpls
#
mpls l2vpn 开启L2VPN
#
vsi VPLS static 定义VSI
pwsignal ldp 执行martini标准
vsi-id 12
peer 9.9.0.3 指定对等体(PE2)
mpls ldp
#
mpls ldp remote-peer 9.9.0.3
remote-ip 9.9.0.3
#
interface GigabitEthernet0/0/0
l2 binding vsi VPLS 连接CE的接口和VSI绑定
#
interface GigabitEthernet0/0/1
ip address 9.9.12.1 255.255.255.0
mpls
mpls ldp
#
interface LoopBack0
ip address 9.9.0.1 255.255.255.255
#
ospf 1
area 0.0.0.0
network 9.9.0.1 0.0.0.0
network 9.9.12.1 0.0.0.0 sysname PE2
#
router id 9.9.0.3
#
mpls lsr-id 9.9.0.3
mpls
#
mpls l2vpn
#
vsi VPLS static
pwsignal ldp
vsi-id 12
peer 9.9.0.1
#
mpls ldp
#
#
mpls ldp remote-peer 9.9.0.1
remote-ip 9.9.0.1
#
interface GigabitEthernet0/0/0
l2 binding vsi VPLS
#
interface GigabitEthernet0/0/2
ip address 9.9.23.3 255.255.255.0
mpls
mpls ldp
#
interface LoopBack0
ip address 9.9.0.3 255.255.255.255
#
ospf 1
area 0.0.0.0
network 9.9.23.3 0.0.0.0
network 9.9.0.3 0.0.0.0 P-P设备配置: sysname P-P
#
router id 9.9.0.2
#
mpls lsr-id 9.9.0.2
mpls
#
mpls ldp
#
interface GigabitEthernet0/0/1
ip address 9.9.12.2 255.255.255.0
mpls
mpls ldp
#
interface GigabitEthernet0/0/2
ip address 9.9.23.2 255.255.255.0
mpls
mpls ldp
#
interface LoopBack0
ip address 9.9.0.2 255.255.255.255
#
ospf 1
area 0.0.0.0
network 9.9.12.2 0.0.0.0
network 9.9.23.2 0.0.0.0
network 9.9.0.2 0.0.0.0 CE1/CE2设备配置: #
interface GigabitEthernet0/0/0
ip address 9.9.45.4 255.255.255.0
# #
interface GigabitEthernet0/0/0
ip address 9.9.45.5 255.255.255.0
# 检查命令: [CE2-GigabitEthernet0/0/0]ping 9.9.45.4 可以通 [PE2]display vpls connection verbose
VSI Name: VPLS Signaling: ldp
**Remote Vsi ID : 12
VC State : up 必须up
Encapsulation : vlan 封装类型
Group ID : 0
MTU : 1500
Peer Ip Address : 9.9.0.1 对端PE地址
PW Type : label
Local VC Label : 1026 标签
Remote VC Label : 1026
Tunnel Policy : --
Tunnel ID : 0x8
|