Configuring bgp vpls, Configuration prerequisites, Configuring the bgp extension – H3C Technologies H3C S10500 Series Switches User Manual
Page 180: Enabling l2vpn and mpls l2vpn

169
To do…
Use the command…
Remarks
Configure a packet matching rule
for the service instance
encapsulation { { c-vid | s-vid }
{ vlan-id | vlan-list } [ only-tagged ]
| port-based | s-vid vlan-id c-vid
{ vlan-list | all } | tagged |
untagged }
Required
By default, no packet matching
rule is configured for a service
instance.
Associate the service instance with
a VPLS instance
xconnect vsi vsi-name
[ access-mode { ethernet | vlan } ] *
Required
By default, a service instance is not
associated with any VPLS instance.
Configuring BGP VPLS
Configuration prerequisites
Before you configure BGP VPLS, complete the following tasks:
•
Configure an IGP on the MPLS backbone devices (PEs and P devices) to guarantee the IP
connectivity of the MPLS backbone. For configuration information, see Layer 3—IP Routing
Configuration Guide.
•
Configure basic MPLS on the MPLS backbone devices (PEs and P devices) to establish LSP tunnels
on the backbone network. For configuration information, see the chapter “MPLS basics
configuration.”
Configuring the BGP extension
Before configuring BGP VPLS, you must configure BGP parameters on the PEs. For configuration details,
see Layer 3—IP Routing Configuration Guide.
Follow these steps to configure BGP extension:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Enter BGP view
bgp as-number
—
Enter VPLS address family view
vpls-family
Required
Activate a peer
peer peer-address enable
Required
No peer is activated by default.
NOTE:
For configurations in VPLS address family view, see the chapter “MPLS L3VPN configuration.”
Enabling L2VPN and MPLS L2VPN
Enable L2VPN and MPLS L2VPN before you configure VPLS related configurations.
Follow these steps to enable L2VPN and MPLS L2VPN: