The mpls l2vc track admin-vrrp command binds a service PW to an mVRRP group.
The undo mpls l2vc track admin-vrrp command unbinds a service PW from an mVRRP group.
By default, no service PW is bound to mVRRP.
Parameter | Description | Value |
---|---|---|
interface-number |
Specifies the interface number. |
- |
interface-type |
Specifies the interface type. |
- |
vrid virtual-router-id |
Specifies the ID of the mVRRP group. |
The ID is a decimal integer ranging from 1 to 255. |
pw-redundancy |
Indicates that whether packets can be forwarded is determined after the local and remote PW ends negotiate the master/backup status of the PW. This parameter is only used in PW redundancy. If this parameter is not specified, the packet forwarding is stopped on the local PW end after the mVRRP back group bound to the PW switches to the backup state. |
- |
interface interface-number |
Specifies the interface name. |
- |
100ge sub-interface view, 100GE interface view, 10GE sub-interface view, 10GE interface view, 200GE sub-interface view, 25GE sub-interface view, 25GE interface view, 400GE Layer 2 sub-interface view, 400GE sub-interface view, 400GE interface view, 40GE sub-interface view, 40GE interface view, 50GE Layer 2 sub-interface view, 50GE sub-interface view, 50GE interface view, Eth-Trunk Layer 2 sub-interface view, Eth-Trunk sub-interface view, Eth-Trunk interface view, GE Layer 2 sub-interface view, GE optical interface view, GE sub-interface view, GE interface view, GE electrical interface view, Global VE sub-interface view, VE sub-interface view, XGE sub-interface view, XGE interface view, Layer 2 sub-interface view
Usage Scenario
The active and standby PWs are determined by means of negotiation. Two PWs are configured on one PE to connect to two peer PEs, with both PWs being in the master state on the local device. The peer PEs determine the master and backup PWs by means of mVRRP, with one PW in the master state and the other in the backup state. The PEs on both ends negotiate and finally determine the active PW.
Prerequisites
A service PW has been created using the mpls l2vc command.
Precautions
A service PW can be bound only to one mVRRP group.
The service PW and mVRRP group must be configured on different sub-interfaces of the same physical interface. Otherwise, the status of the mVRRP group cannot reflect the actual status of the service PW.<HUAWEI> system-view [~HUAWEI] interface GigabitEthernet 0/1/0.1 [*HUAWEI-GigabitEthernet0/1/0.1] ip address 192.168.0.1 255.255.255.0 [*HUAWEI-GigabitEthernet0/1/0.1] vrrp vrid 100 virtual-ip 192.168.0.100 [*HUAWEI-GigabitEthernet0/1/0.1] admin-vrrp vrid 100 [*HUAWEI-GigabitEthernet0/1/0.1] quit [*HUAWEI] mpls [*HUAWEI-mpls] quit [*HUAWEI] mpls l2vpn [*HUAWEI-l2vpn] quit [*HUAWEI] interface GigabitEthernet 0/1/0.2 [*HUAWEI-GigabitEthernet0/1/0.2] mpls l2vc 1.1.1.1 100 [*HUAWEI-GigabitEthernet0/1/0.2] mpls l2vc track admin-vrrp interface GigabitEthernet 0/1/0.1 vrid 100