beautypg.com

Configuring a vpn, Creating a ce connection – H3C Technologies H3C S10500 Series Switches User Manual

Page 210

background image

199

To do…

Use the command…

Remarks

Enable the specified peer or peers
to exchange BGP routing
information of the BGP-L2VPN

address family

peer { group-name | ip-address }
enable

Required

NOTE:

For information about the configuration of BGP-L2VPN address family, see the chapter “MPLS L3VPN
configuration.”

Configuring a VPN

Follow these steps to configure a VPN:

To do…

Use the command…

Remarks

Enter system view

system-view

Create a VPN and enter MPLS

L2VPN view

mpls l2vpn vpn-name

[ encapsulation { ethernet | vlan }
[ control-word | no-control-word ] ]

Required

Configure an RD for the L2VPN

route-distinguisher
route-distinguisher

Required

Associate a particular VPN with
one or more VPN targets

vpn-target vpn-target&<1-16>
[ both | export-extcommunity |
import-extcommunity ]

Required

Set the Layer 2 MTU for the VPN

mtu mtu

Optional

CAUTION:

The mtu command affects only parameter negotiations, if any. It does not affect data forwarding. H3C
does not recommend using this command.

With Kompella MPLS L2VPN, you must create on the PE an L2VPN instance for each VPN where a
directly connected CE resides. When creating an L2VPN, you must specify an encapsulation type

matching that of the PE-CE interface.

The configuration of the VPN targets and RD are the same as that for MPLS L3VPN. For Kompella MPLS
L2VPN, the RD is required. Once configured, an RD cannot be changed, unless you delete the L2VPN

and then recreate it.

Creating a CE connection

CE ID is used for uniquely identifying a CE in a VPN. To facilitate the configuration, encode the CE IDs

in continuous natural numbers starting from 1.
The CE range of a VPN indicates the maximum number of CEs that can be connected to the VPN. You
can configure a CE range greater than what is required based on your estimate of the future VPN

expansion if the label resources are abundant (they are usually abundant). This can reduce the

configuration modification required when CEs are added into the VPN in future.
When creating a CE connection, if you do not specify the CE offset, the following are true:

For the first connection of the CE, the CE offset is the value specified by the default-offset parameter
in the ce command.

For any other connection of the CE, the CE offset is that of the former connection plus 1.