The ping vpn-config command checks whether configurations on both ends of a VPN are consistent, which can help you locate faults on the VPN connection.
ping vpn-config peer-address peer-address vsi-name vsi-name [ pw-id pw-id ] [ local ] [ remote ]
Parameter | Description | Value |
---|---|---|
peer-address peer-address | Specifies the IP address of the peer PE. | - |
vsi-name vsi-name | Specifies the name of the VSI on which the operation is performed. | The value is an existing VSI. |
pw-id pw-id | Specifies the ID of the PW. | The value is an integer that ranges from 1 to 4294967295. This parameter cannot be specified in the BGP AD VPLS networking. |
local | Indicates that the Request packet is encapsulated in LSP mode. | - |
remote | Indicates that the Reply packet is encapsulated in LSP mode. | - |
Usage Scenario
Using the ping vpn-config command, you can check whether configurations on both ends of a VPN are consistent, which can help you locate faults on the VPN connection.
The ping vpn-config command is used to send a Request packet from the local PE to the peer PE to obtain VPN configurations of the peer PE, such as the VSI name, status, PW type, MTU value, and number of CEs. After the local PE receives the VPN configuration of the peer PE, it displays the information on the local. This can help you locate the fault on the VPN.
Precautions
The ping vpn-config command is applied to VPLS networks, dynamic PWE3 networks, and VLL accessing the VPLS networks.
The timeout period of the ping vpn-config command is 10 seconds.
# Run the ping vpn-config command to ping the peer PE in Martini VPLS networking.
<HUAWEI> ping vpn-config peer-address 3.3.3.9 vsi-name a2
VPN-CONFIG PING: Press CTRL_C to break.
Result Detail: Request Sent - Reply Received
Local VPN description:
Remote VPN description:
PW State: Up
local remote
------------------------------------------------
VPN Type: Martini VPLS Martini VPLS
VSI Name: a2 a2
VSI ID: 2 2
Admin State: Up Up
Oper State: Up Up
MTU: 1500 1500
CE Count: 1 1
Control Word: N/A N/A
Primary Or Secondary: N/A N/A
Actual IP Addr: 1.1.1.9 3.3.3.9
Expected Peer IP: 3.3.3.9 1.1.1.9
SPE: NO NO
PW-ID: 2 2
VC-Type: vlan vlan
Egress Label: 1025 1026
Ingress Label: 1026 1025
LSP Tunnel Used: NO NO
# Perform a service ping operation with the destination address being 3.3.3.9 in BGP AD VPLS networking.
<HUAWEI> ping vpn-config peer-address 3.3.3.9 vsi-name vplsad1
VPN-CONFIG PING: Press CTRL_C to break.
Result Detail: Request Sent - Reply Received
Local VPN description:
Remote VPN description:
PW State: Up
local remote
----------------------------------------------------------------
VPN Type: BGPAD VPLS BGPAD VPLS
VSI Name: vplsad1 vplsad1
Admin State: Up Up
Oper State: Up Up
MTU: 1500 1500
CE Count: 1 1
Actual IP Addr: 1.1.1.9 3.3.3.9
Expected Peer IP: 3.3.3.9 1.1.1.9
SPE: NO NO
VC-Type: vlan vlan
Egress Label: 1026 1027
Ingress Label: 1027 1026
VPLS ID: 168.1.1.1:1 168.1.1.1:1
RD: 168.1.1.1:1 168.1.1.1:1
Import VPN target: 100:1 100:1
Export VPN target: 100:1 100:1
LSP Tunnel Used: NO NO
Item |
Description |
---|---|
Result details |
Details of the command operation result. |
Local VPN description |
Description of the local VPN. To set the value, run the description command. |
Remote VPN description |
Description of the peer VPN. |
PW State |
Status of a PW. |
Local |
Configuration of the local PE. |
Remote |
Configuration of the remote PE. |
VPN Type |
Type of a VPN. |
VSI Name |
Name of a VSI. |
VSI ID |
ID of a VSI. To set the value, run the vsi-id command. |
Admin State |
VSI administration status. |
Oper State |
VSI operating status. |
MTU |
MTU of the VSI. In PWE3 networking, it refers to the MTU of an AC interface; in VPLS networking, it refers to the MTU of a VSI. |
CE Count |
Number of AC links. |
Control Word |
Whether the control word is enabled:
|
Primary Or Secondary |
Displayed as a PW on the local end and always displayed as N/A on the remote end. |
Actual IP Addr |
Actual IP address. |
Expect IP Addr |
Expected IP address. |
SPE |
Whether it is a SPE |
PW ID |
ID of a PW. |
VC-Type |
Encapsulation type of the VC.
|
Egress Label |
Outgoing label. |
Ingress Label |
Incoming label. |
VPLS ID |
VPLS ID To set the value, run the vpls-id command. |
RD |
Route tag. To set the value, run the route-distinguisher command. |
Import VPN target |
Import VPN target. |
Export VPN target |
Export VPN target. |
LSP Tunnel Used |
Whether the packet is encapsulated in LSP mode. |