
160
Step Command
Remarks
5.
Configure the VC labels for
the backup VC.
static backup-label local
local-vc
remote
remote-vc
Optional.
By default, no VC labels are
configured for the backup VC.
You must perform this command
if you have specified the
backup-peer
keyword in the
mpls static-l2vc
command.
6.
Return to the interface view.
quit
N/A
7.
Switch traffic from the active
VC to the standby VC
mpls static-l2vc switchover
Optional.
Configuring primary and backup static VCs for a service
instance
NOTE:
This feature is supported only on routers with SAP-4EXPs.
To perform this task, complete the following operations on a PE:
•
Create a service instance on a Layer 2 Ethernet interface.
•
Configure a packet matching rule for the service instance.
•
Create a primary static VC and a backup static VC for the service instance.
After you perform these operations, packets arriving at the Layer 2 Ethernet interface and matching
the packet matching rule are forwarded over the primary VC, or over the backup VC if the primary VC
is down, or if you manually switch traffic to the backup VC.
To create multiple VCs with the same attributes (such as VC encapsulation type and VC tunneling
policy), you do not need to configure the attributes one by one for each VC. Instead, you can create
a PW class, configure VC attributes in the PW class, and then reference the PW class in each VC.
To create a primary static VC and a backup static VC for a service instance:
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Create a PW class and
enter PW class view.
pw-class
pw-class-name
Optional.
By default, no PW class is created.
3.
Specify the VC
encapsulation type.
trans-mode
{
ethernet
|
vlan
}
Optional.
By default, the VC encapsulation
type is VLAN.
4.
Specify the tunneling
policy.
pw-tunnel-policy
policy-name
Optional.
If you do not specify a tunneling
policy, the default tunneling policy
is used. The default tunneling policy
selects only one tunnel in this order:
LSP tunnel, GRE tunnel, CR-LSP
tunnel.
For information about how to
configure a tunneling policy, see
"Configuring MPLS L3VPN."