269
Parameters
peer-ip-address
: Specifies the IP address of the remote peer.
pw-id
pw-id
: Specifies the PW ID of the Martini MPLS L2VPN connection, ranging from 1 to
4,294,967,295.
pw-class
class-name
: Specifies a PW class template by its name.
class-name
is a case-insensitive string of
1 to 19 characters. If you do not specify a PW class template, or you specify a PW class template but the
PW class template does not specify a tunneling policy or the specified tunneling policy is not configured,
the default tunneling policy is used. The default tunneling policy selects only one tunnel (no load
balancing) in this order: LSP tunnel, CR-LSP tunnel. For how to configure a tunneling policy, see the
chapter “MPLS L3VPN configuration.”
mtu
mtu-value
: Specifies the MTU, which ranges from 0 to 65,535 and defaults to 1500.
access-mode
: Specifies the access mode of the service instance as Ethernet or VLAN. The default access
mode is VLAN.
ethernet
: Specifies the access mode of Ethernet.
vlan
: Specifies the access mode of VLAN.
Examples
# For service instance 100, create a Martini MPLS L2VPN connection and specify the matching external
VLAN tag as 100.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/2
[Sysname-GigabitEthernet1/0/2] service-instance 100
[Sysname-GigabitEthernet1/0/2-srv100] encapsulation s-vid 100
[Sysname-GigabitEthernet1/0/2-srv100] xconnect peer 5.5.5.5 pw-id 100