H3C Technologies H3C S10500 Series Switches User Manual

Page 208

Advertising
background image

197

•

Configure a packet matching rule for the service instance

•

Create a Martini MPLS L2VPN connection for the service instance

After performing these configurations, packets arriving at the Layer 2 Ethernet interface and matching the

packet matching rule will be forwarded by the created MPLS L2VPN connection.
Follow these steps to create a Martini MPLS L2VPN connection for a service instance:

To do…

Use the command…

Remarks

Enter system view

system-view

—

Create a PW class template and
enter PW class template view

pw-class pw-class-name

Optional
By default, no PW class template is
created.

Specify the PW transport mode

trans-mode { ethernet | vlan }

Optional
VLAN by default

Specify the tunneling policy

pw-tunnel-policy policy-name

Optional
By default, the default tunneling

policy is used. The default

tunneling policy selects only one
tunnel in this order: LSP tunnel,

CR-LSP tunnel.

Return to system view

quit

—

Enter the view of the interface
connecting the CE

interface interface-type
interface-number

—

Create a service instance and
enter service instance view

service-instance instance-id

Required
By default, no service instance is

created.

Configure a packet matching rule
for the service instance

encapsulation { s-vid { vlan-id }
[ only-tagged ] | port-based |

tagged | untagged }

Required
By default, no packet matching
rule is configured for the service

instance.

Create a Martini MPLS L2VPN
connection for the service instance

xconnect peer peer-ip-address
pw-id pw-id [ access-mode

{ ethernet | vlan } | mtu mtu-value

| [ pw-class class-name ] ] *

Required
After this command is executed,
the VLAN ID, access mode, and

MTU configured for the service

instance cannot be changed. To
modify these parameters, you must

use the undo xconnect peer

command to remove the L2VPN

connection first.

Display information about one or
all service instances configured on
the interface

display service-instance interface
interface-type interface-number
[ service-instance instance-id ] [ |

{ begin | exclude | include }

regular-expression ]

Available in any view

Advertising