3com 8807 Guia Do Utilizador

Página de 883
Kompella MPLS L2VPN Configuration
627
VLAN is Trunk type. It is not recommended to use Hybrid type as the port link 
type in a private network VLAN. The user access modes of the instance in all 
peer PEs must be consistent.
Kompella MPLS L2VPN 
Configuration Example
Network requirements
CEs shown in Figure 151 are in the same VLAN as the corresponding PEs resides 
in. A remote connection is required between CE-A and CE-B.
Network diagram
Figure 151   Network diagram for Kompella MPLS L2VPN
Configuration procedure
Configure PE-A.
# Enable MPLS globally.
[PE-A] mpls lsr-id 1.1.1.1
 
[PE-A] mpls
 
[PE-A-mpls] quit
 
[PE-A] mpls ldp 
# Configure an IP address for the Loopback interface.
[PE-A] interface loopback 0
 
[PE-A-LoopBack0] ip address 1.1.1.1 32 
# Enable MPLS L2VPN globally.
[PE-A] mpls l2vpn 
# Configure VLAN 212.
[PE-A] vlan 212
 
[PE-A-vlan212] port gigabitethernet 2/1/2
 
[PE-A-vlan212] interface vlan-interface 212
 
[PE-A-Vlan-interface212] quit 
# Enable MPLS on the interface of VLAN 21.
[PE-A] vlan 21
 
[PE-A-vlan21] port gigabitethernet 2/1/4
 
[PE-A-vlan21] quit
 
[PE-A] interface vlan-interface 21
 
[PE-A-Vlan-interface21] ip address 5.5.5.1 24
 
[PE-A-Vlan-interface21] mpls
 
[PE-A-Vlan-interface21] mpls ldp enable
 
[PE-A-Vlan-interface21] mpls ldp transport-ip interface
 
[PE-A-Vlan-interface21] quit 
# Configure BGP.
VLAN212
CE A
CE B
PE A
PE B
P
CE A
CE B
PE A
PE B
P
VLAN22
VLAN21
VLAN212
VLAN212
CE A
CE B
PE A
PE B
P
CE A
CE B
PE A
PE B
P
VLAN22
VLAN21
VLAN212