The peer command specifies a peer for a VSI.
The undo peer command deletes the peer specified for a VSI.
By default, no peer is specified for a VSI.
peer peer-address [ negotiation-vc-id vc-id ] [ encapsulation { vlan | ethernet } ] [ tnl-policy policy-name ] [ upe | ac-mode ] [ secondary ] [ ignore-standby-state ]
undo peer peer-address [ negotiation-vc-id vc-id ] [ encapsulation { vlan | ethernet } ] [ tnl-policy policy-name ] [ upe | ac-mode ] [ secondary ] [ ignore-standby-state ]
Parameter | Description | Value |
---|---|---|
peer-address |
Specifies the IPv4 address of a peer. Generally, peer-address is a loopback address of the peer and does not need to be consistent with the destination address of the tunnel. |
The address is in dotted decimal notation |
negotiation-vc-id vc-id |
Specifies the ID of a VC. The VC ID is usually used when both ends need to communicate but the VSI IDs on both ends are different. The value of the parameter vc-id must be different from the VSI ID configured for another local VSI and other VSI IDs specified locally by the negotiate-vc-id command. In other words, the specified VC ID must be an unused one. If negotiate-vc-id is configured on the local end, the negotiate-vc-id or vsi-id configured on the peer must be consistent with negotiate-vc-id configured on the local end. |
The VSI ID is an integer ranging from 1 to 4294967295. |
encapsulation |
Specifies the encapsulation type of a VSI. If the encapsulation type is not specified, the default encapsulation type of the VSI is used. By default, the encapsulation type of a VSI is VLAN. |
- |
vlan |
Specifies the encapsulation type of the VSI instance is VLAN. |
- |
ethernet |
Specifies the encapsulation type of the VSI instance is ethernet. |
- |
tnl-policy policy-name |
Specifies the name of the tunnel policy adopted by the peer. policy-name must be consistent with that specified in the tunnel-policy command run in the system view. |
The value is a string of 1 to 39 case-sensitive characters without spaces. By default, an LDP LSP is used. |
upe |
Identifies whether the peer is a client PE. This parameter applies to HVPLS. This parameter is used when you specify a UPE peer on an SPE. |
- |
ac-mode |
Sets a PW to AC mode. |
- |
secondary |
Specifies the secondary PW. |
- |
ignore-standby-state |
Configures the created PW to ignore the secondary state sent from the peer device. |
- |
Usage Scenario
Prerequisites
Configuration Impact
Precautions
A VPLS network is a point-to-multipoint L2VPN and therefore multiple peers can be specified for one VSI.
If a BD has bound a VSI and an EVPN instance bound, the upe parameter cannot be specified in the peer command to specify a UPE as a peer for the VSI.<HUAWEI> system-view [~HUAWEI] mpls [*HUAWEI-mpls] quit [*HUAWEI] mpls l2vpn [*HUAWEI-l2vpn] quit [*HUAWEI] vsi company1 [*HUAWEI-vsi-company1] pwsignal ldp [*HUAWEI-vsi-company1-ldp] vsi-id 100 [*HUAWEI-vsi-company1-ldp] peer 3.3.3.3 negotiation-vc-id 10
<HUAWEI> system-view [~HUAWEI] mpls [*HUAWEI-mpls] quit [*HUAWEI] mpls l2vpn [*HUAWEI-l2vpn] quit [*HUAWEI] vsi company1 [*HUAWEI-vsi-company1] pwsignal ldp [*HUAWEI-vsi-company1-ldp] vsi-id 100 [*HUAWEI-vsi-company1-ldp] peer 3.3.3.3