3com 8807 Guia Do Utilizador

Página de 883
Displaying and Debugging MPLS L2VPN
629
[PE-B-Vlan-interface22] ip address 6.6.6.1 24
 
[PE-B-Vlan-interface22] mpls
 
[PE-B-Vlan-interface22] mpls ldp enable
 
[PE-B-Vlan-interface22] mpls ldp transport-ip interface
 
[PE-B-Vlan-interface22] quit 
# Configure BGP.
[SW8800] bgp 100
 
[PE-B-bgp] group 100 internal
 
[PE-B-bgp] peer 100 connect-interface loopback0
 
[PE-B-bgp] peer 1.1.1.1 group 100
 
[PE-B-bgp] l2vpn-family
 
[PE-B-bgp-af-l2vpn] peer 100 enable 
# Create and configure VPN1.
[PE-B] mpls l2vpn vpn1 encapsulation ethernet
 
[PE-B-mpls-l2vpn-vpn1] route-distinguisher 100 :1
 
[PE-B-mpls-l2vpn-vpn1] vpn-target 100 :1 
# Create CE2 and configure the corresponding connection.
[PE-B-mpls-l2vpn-vpn1] ce ce2 id 2 range 200
 
[PE-B-mpls-l2vpn-vpn1-ce2] connection ce-offset 1 interface vlan-
 
interface 212
 
[PE-B-mpls-l2vpn-vpn1-ce2] quit 
# Enable OSPF.
[PE-B] ospf 1 router-id 3.3.3.3
 
[PE-B -ospf-1] area 0.0.0.0
 
[PE-B -ospf-1-area-0.0.0.0] network 3.3.3.3 0.0.0.0
 
[PE-B -ospf-1-area-0.0.0.0] network 6.6.6.0 0.0.0.255 
Configure the P device.
The configuration of P device is the same as that of standard MPLS configuration. 
Refer to the P router Configuration of BGP/MPLS VPN in Basic MPLS Operation 
Manual.
Note that the VLANs on PEA and PEB which are connected to the CEs must be 
consistent.
Displaying and 
Debugging MPLS 
L2VPN
After the above configuration, you can verify your configuration concerning MPLS 
L2VPN by executing the display command in any view and checking the output 
information.
You can execute the debugging command in user view to debug MPLS L2VPN.