R3102-R3103-HP 6600/HSR6600 Routers MPLS Command Reference Guide

221
<Sysname> system-view
[Sysname] interface Ten-GigabitEthernet1/0/1
[Sysname-Ten-GigabitEthernet1/0/1] service-instance 1
[Sysname-Ten-GigabitEthernet1/0/1-srv1] encapsulation s-vid 100
[Sysname-Ten-GigabitEthernet1/0/1-srv1] xconnect static-peer 1.1.1.9 pw-id 600
backup-peer 2.2.2.9 backup-pw-id 7
[Sysname-Ten-GigabitEthernet1/0/1-srv1-static-xpeer] static label local 100 remote 200
# Create a primary static VC and a backup static VC on the interface Ten-GigabitEthernet 1/0/1.
Configure the local VC label as 100 and remote VC label as 200 for the primary VC.
<Sysname> system-view
[Sysname] interface Ten-GigabitEthernet1/0/1
[Sysname-Ten-GigabitEthernet1/0/1] mpls static-l2vc 1.1.1.9 100 backup-peer 2.2.2.9 200
[Sysname-Ten-GigabitEthernet1/0/1-static-l2vc] static label local 100 remote 200
trans-mode
Use trans-mode to specify the VC type.
Use undo trans-mode to restore the default.
Syntax
trans-mode { ethernet | vlan }
undo trans-mode
Default
The VC type is VLAN.
Views
PW class view
Default command level
2: System Level
Parameters
ethernet: Specifies the VC type as Ethernet.
vlan: Specifies the VC type as VLAN mode.
Examples
# Configure the VC type as Ethernet.
<Sysname> system-view
[Sysname] pw-class pw100
[Sysname-pw-pw100] trans-mode ethernet
vpn-target (MPLS L2VPN view)
Use vpn-target to configure route targets for an MPLS L2VPN.
Use undo vpn-target to remove the specified or all route targets of an MPLS L2VPN.
Syntax
vpn-target vpn-target&<1-16> [ both | export-extcommunity | import-extcommunity ]