
268
•
16-bit AS number:32-bit user-defined number. For example, 101:3.
•
32-bit IP address:16-bit user-defined number. For example, 192.168.122.15:1.
•
32-bit AS number:16-bit user-defined number, where the AS number must be equal to or greater than
65,536. For example, 65536:1.
both
: Uses the specified VPN target value as both import targets and export targets. The
both
keyword
also is used when you do not specify any of
both
,
export-extcommunity
, and
import-extcommunity
.
export-extcommunity
: Uses the specified VPN targets as export targets.
import-extcommunity
: Uses the specified VPN targets as import targets.
all
: Removes all VPN targets.
Examples
# Configure VPN targets for the VPN
vpn1
.
<Sysname> system-view
[Sysname] mpls l2vpn vpn1 encapsulation ethernet
[Sysname-mpls-l2vpn-vpn1] route-distinguisher 300:1
[Sysname-mpls-l2vpn-vpn1] vpn-target 1:1 2:2 export-extcommunity
[Sysname-mpls-l2vpn-vpn1] vpn-target 1.2.3.4:11 import-extcommunity
xconnect peer
Description
Use the
xconnect peer
command to create a Martini MPLS L2VPN connection for a service instance.
Use the
undo xconnect peer
command to delete the MPLS L2VPN connection of a service instance.
The access mode of a service instance can be VLAN or Ethernet.
VLAN: The Ethernet header of a packet sent from a CE to a PE or from a PE to a CE includes a VLAN tag
that is added in the header as a service delimiter for the service provider network to identify the user. The
tag is called a “P-Tag.”
Ethernet: The Ethernet header of a packet sent from a CE to a PE or from a PE to a CE does not contain
any service delimiter. If the header contains a VLAN tag, it is the internal VLAN tag of the user and
means nothing to the PE. Such an internal VLAN tag of a user is called a “U-Tag.”
The MTU specified by this command is advertised through LDP and used for PW negotiation.
The
xconnect peer
command is available for service instances with the ID ranging from 1 to 4094.
Related commands:
pw-class
;
service-instance
(the
Layer 2—LAN Switching Command Reference
).
Syntax
xconnect peer
peer-ip-address
pw-id
pw-id
[
pw-class
class-name
] [
mtu
mtu-value
] [
access-mode
{
ethernet
|
vlan
} ]
undo xconnect peer
View
Service instance view
Default level
2: System level