Troubleshoot VXLAN

For an interactive learning lab on configuring VXLAN, refer Configure Static VXLAN Overlay on a 3 Stage Clos Network.

The following steps helps you check packet counters to troubleshoot VXLAN issues.

View Statistics for VXLAN Next-Hop Endpoints

To view statistics for VXLAN next-hop (NH) endpoints, execute the following steps:

1) Obtain VXLAN NH Endpoints

The following command displays the VXLAN NH endpoints. Note the IP address of the endpoints.

show vnet route all

cisco@sonic$ show vnet route all
vnet name    prefix    nexthop    interface
-----------  --------  ---------  -----------
vnet name             prefix                               endpoint                                                 mac address    vni    status
---------------       ----------------------         --------------------------------------         -------------  -----   --------
Vnet_v6_in_v6-0    fddd:a150:a0::a3:1/128    fddd:a100:a0::a5:1,fddd:a100:a0::a2:10                                    active
Vnet_v6_in_v6-0    fddd:a150:a0::a4:1/128    fddd:a100:a0::a2:10                                                                  active

2) Enable Statistics Collection for VXLAN Next-Hop Endpoints

Enable statistics collection for VXLAN NH endpoints using the following command . This router allocates counter resources only after you execute this command. The IP address of any of the endpoints in the previous step is the remote IP in the below command. The source IP is the local IP address in the router.

config platform cisco vxlan counter enable -s <source ip> -r <remote ip>

cisco@sonic$ sudo config platform cisco vxlan counter enable -s fc00:1::32 -r fddd:a100:a0::a5:1
Enabling vxlan counter for nexthop fc00:1::32 fddd:a100:a0::a5:1
Successfully set coutner enable True to local address fc00:1::32 remote address fddd:a100:a0::a5:1

3) View the Statistics of the VXLAN endpoints

Execute the following show command to view the statistics

show platform npu vxlan counters -s <source ip> -r <remote ip>

cisco@sonic$ sudo show platform npu vxlan counters -s fc00:1::32 -r fddd:a100:a0::a2:10
Stats of VXLAN Nexthop for local address fc00:1::32 remote address fddd:a100:a0::a2:10: Packets 7, Bytes 1218

4) Disable Statistics Collection for VXLAN Endpoints

Execute this command so that the router deallocates counter resources.

config platform cisco vxlan counter disable -s <source ip> -r <remote ip>

cisco@sonic$ sudo config platform cisco vxlan counter disable -s fc00:1::32 -r fddd:a100:a0::a5:1
Disabling vxlan counter for nexthop fc00:1::32 fddd:a100:a0::a5:1
Successfully set coutner enable False to local address fc00:1::32 remote address fddd:a100:a0::a5:1