beautypg.com

Configuring a pe-ce interface of a pe, Configuring ethernet encapsulation, Configuring vlan encapsulation – H3C Technologies H3C S10500 Series Switches User Manual

Page 203

background image

192

Configure basic MPLS.

Enable L2VPN.

Enable MPLS L2VPN.

Follow these steps to perform basic MPLS L2VPN configurations:

To do…

Use the command…

Remarks

Enter system view

system-view

Configure the LSR ID

mpls lsr-id lsr-id

Required

Configure basic MPLS and enter
MPLS view

mpls

Required

Return to system view

quit

Enable L2VPN and enter L2VPN
view

l2vpn

Required
Disabled by default

Enable MPLS L2VPN

mpls l2vpn

Required
Disabled by default

Configuring a PE-CE interface of a PE

A PE-CE interface of a PE refers to a PE’s interface connected to a CE.
As shown in

Figure 46

, a PE-CE interface of a PE can use various types of encapsulations.

Table 1 Encapsulation types on a PE-CE interface of a PE

Encapsulation type

Configuration

Ethernet

Configuring Ethernet encapsulation

VLAN

Configuring VLAN encapsulation

Configuring Ethernet encapsulation

An Ethernet interface uses Ethernet encapsulation. For Ethernet interface configuration, see Layer
2—LAN Switching Configuration Guide
.

A VLAN interface whose link type is access uses Ethernet encapsulation. For information about
VLAN interface and link type, see Layer 2—LAN Switching Configuration Guide.

Configuring VLAN encapsulation

A Layer 3 Ethernet subinterface uses VLAN encapsulation. For Ethernet interface configuration, see
Layer 2—LAN Switching Configuration Guide.

A VLAN interface whose link type is trunk or hybrid uses VLAN encapsulation. The VLAN interface
and the CE must reside in the same VLAN. For information about VLAN interface and link type, see

Layer 2—LAN Switching Configuration Guide.