R3303-HP HSR6800 Routers MPLS Command Reference
222
Usage guidelines
To create multiple VCs with the same attributes (such as VC 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.
Examples
# Create PW class pw100 and enter its view.
<Sysname> system-view
[Sysname] pw-class pw100
[Sysname-pw-pw100]
pw-tunnel-policy
Use pw-tunnel-policy to specify the tunneling policy for a PW class.
Use undo pw-tunnel-policy to restore the default.
Syntax
pw-tunnel-policy policy-name
undo pw-tunnel-policy
Default
Only one tunnel is selected (no load balancing) in this order: LSP tunnel, GRE tunnel, CR-LSP tunnel.
Views
PW class view
Default command level
2: System level
Parameters
policy-name: Specifies the name of a tunneling policy, a case-insensitive string of 1 to 19 characters.
Usage guidelines
If you specify a nonexistent tunneling policy by using the pw-tunnel-policy command, the default
tunneling policy will be used, which selects only one tunnel (no load balancing) in this order: LSP tunnel,
GRE tunnel, CR-LSP tunnel. For information about how to configure a tunneling policy, see MPLS
Configuration Guide.
Examples
# Specify tunneling policy tp100 for PW class pw100.
<Sysname> system-view
[Sysname] pw-class pw100
[Sysname-pw-pw100] pw-tunnel-policy tp100
reset bgp l2vpn
Use reset bgp l2vpn to reset L2VPN BGP sessions.
Syntax
reset bgp l2vpn { as-number | ip-address | all | external | internal }










