179
To do…
Use the command…
Remarks
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.
For how to configure a tunneling
policy, see the chapter
“Configuring MPLS L3VPN.”
Return to system view
quit
—
Configure the remote peer
mpls ldp remote-peer
remote-peer-name
Required
remote-ip
ip-address
Required
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
service-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 a service
instance.
For this configuration task, do not
specify the
only-tagged
,
port-based
,
tagged
, and
untagged
keywords. Otherwise, the packet
matching rule configuration will
not take effect.
Create a Martini MPLS L2VPN
connection based on Layer 2
Ethernet interface and VLAN
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
need to 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