[PE1] tunnel-policy p1
[PE1-tunnel-policy-p1] tunnel select-seq cr-lsp load-balance-number 1
[PE1-tunnel-policy-p1] quit
# Configure PE3.
[PE3] tunnel-policy p1
[PE3-tunnel-policy-p1] tunnel select-seq cr-lsp load-balance-number 1
[PE3-tunnel-policy-p1] quit
Step 7 Configure PWs on PEs by using PW templates.
# Configure a master PW and a backup PW on PE1. Configure a PW on each of PE2 and PE3.
The two PWs are both master PWs.
# Configure PE1.
[PE1] mpls l2vpn
[PE1-l2vpn] quit
[PE1] pw-template 1to2
[PE1-pw-template-1to2] peer-address 2.2.2.2
[PE1-pw-template-1to2] control-word
[PE1-pw-template-1to2] vccv cc cw cv lsp-ping bfd
[PE1-pw-template-1to2] quit
[PE1] pw-template 1to3
[PE1-pw-template-1to3] peer-address 3.3.3.3
[PE1-pw-template-1to3] control-word
[PE1-pw-template-1to3] vccv cc cw cv lsp-ping bfd
[PE1-pw-template-1to3] quit
[PE1] interface Vlanif 10
[PE1-Vlanif10] mpls l2vc pw-template 1to3 100 tunnel-policy p1
[PE1-Vlanif10] mpls l2vc pw-template 1to2 200 secondary
[PE1-Vlanif10] quit
# Configure PE2.
[PE2] mpls l2vpn
[PE2-l2vpn] quit
[PE2] pw-template 2to1
[PE2-pw-template-2to1] peer-address 1.1.1.1
[PE2-pw-template-2to1] control-word
[PE2-pw-template-2to1] vccv cc cw cv lsp-ping bfd
[PE2-pw-template-2to1] quit
[PE2] interface Vlanif 50
[PE2-Vlanif50] mpls l2vc pw-template 2to1 200
[PE2-Vlanif50] quit
# Configure PE3.
[PE3] mpls l2vpn
[PE3-l2vpn] quit
[PE3] pw-template 3to1
[PE3-pw-template-3to1] peer-address 1.1.1.1
[PE3-pw-template-3to1] control-word
[PE3-pw-template-3to1] vccv cc cw cv lsp-ping bfd
[PE3-pw-template-3to1] quit
[PE3] interface Vlanif 60
[PE3-Vlanif60] mpls l2vc pw-template 3to1 100 tunnel-policy p1
[PE3-Vlanif60] quit
After the configuration, run the display pw-template command on PEs. You can view the
configurations of PW templates, and you can see that VCCV is enabled.
Take the display on PE1 for example.
[PE1] display pw-template
Total PW template number : 2
PW Template Name : 1to2
Quidway S9300 Terabit Routing Switch
Configuration Guide - VPN 5 PWE3 Configuration
Issue 03 (2009-08-20) Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
5-81