The AC interface view is displayed.
3. Apply the tunnel policy to the PW.
– To apply the tunnel policy to the dynamic PW, run the mpls l2vc { pw-template
pw-template-name | ip-address }
*
vc-id tunnel-policy policy-name command.
– To apply the tunnel policy to the static PW, run the mpls static-l2vc
{ destination ip-address | pw-template pw-template-name vc-id }
*
transmit-
vpn-label transmit-label-value receive-vpn-label receive-label-value tunnel-
policy policy-name command.
----End
1.5.4 Checking the Configuration
Prerequisite
The configurations of the tunnel policy applied to L2VPNs (select-sequence) are complete.
Procedure
l Run the display tunnel-policy policy-name command to view the configurations of tunnel
policies.
l Run the display mpls l2vc [ interface interface-type interface-number ] command to view
the tunnel used by the SVC, PWE3, or Martini L2VPN VC.
l Run the display mpls l2vpn connection interface interface-type interface-number
command to view the tunnel used by the Kompella L2VPN VC.
l Run the display tunnel-info tunnel-id command to display information about a tunnel.
----End
Example
Run the display tunnel-policy command. If the configuration of a tunnel is displayed, it means
that the configuration is successful. The following is an example:
<Quidway> display tunnel-policy policy1
Tunnel Policy Name Select-Seq Load balance No
---------------------------------------------------------------------
policy1 LSP 1
For an SVC L2VPN or Martini L2VPN, run the display mpls l2vc interface interface-type
interface-number command. You can view the tunnel policy applied to the VC. For example,
you can find that the tunnel policy policy1 is applied to the VC on VLANIF 10.
<Quidway> display mpls l2vc interface Vlanif 10
*Client Interface : Vlanif 10 is up
Session State : up
AC State : up
VC State : up
VC ID : 100
VC Type : VLAN
Destination : 3.3.3.9
Local Group ID : 0
Remote Group ID : 0
Local VC Label : 17408
Remote VC Label : 17408
Local VC MTU : 1500
Romete VC MTU : 1500
Local VCCV : Disable
Quidway S9300 Terabit Routing Switch
Configuration Guide - VPN 1 VPN Tunnel Management
Issue 03 (2009-08-20) Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
1-15