L2 VPN(Layer 2 Virtual Private Network) connectivity allows extending layer 2 networks across datacenters securely.
Route based IPsec is used as transport tunnel for L2 traffic.
NSX-T L2VPN managed server and managed client can stretch VLAN as well as overlay(VNI) segments whereas NSX-T Autonomous edge can stretch only VLAN segments.
An example of how L2VPN can be implemented:
The L2 packet which was sent by the source VM reaches NSXT Edge.
Inside source NSX-T Edge, the L2 packet is vlan tagged (where VLAN ID = Tunnel ID). This vlan tagged packet is encapsulated inside GRE header and forwarded to VTI (Virtual Tunnel Interface).
The GRE encapsulated packet is encrypted and sent over the tunnel to the peer.
On the peer NSX-T Edge, this packet is decrypted and the GRE headers are removed. VLAN ID is stripped off from the packet and the original L2 packet is forwarded to the desired segment.
Run the following command to get the session details:
Example output:
***Note the PEER_ENDPOINT_IP and VTI UUID****
Run the following command to inspect the routing table in the T0 SR Logical Router:
nsx-edge> get logical-router
Find the T0 Service Router (SR) UUID for IPSec VPN
nsx-edge> get logical-router <T0-SR-UUID> forwarding
Example output:
Ensure the VTI UUID is the same as the Next Hop UUID for the peer GRE IP.
If the route is missing or incorrect, there’s a static routing issue.
nsx-edge> get tunnel-port <UUID> statsnsx-edge> get l2vpn session <L2VPN-Session-UUID> logical-switchnsx-edge> get l2vpn session <L2VPN-Session-UUID> logical-switch <Switch-UUID> statsnsx-edge> get l2vpn session <Session UUID> logical-switchnsx-edge> start capture interface <Switch-port-uuid> direction dualnsx-edge> get logical-router <logical-router UUID> interfaces nsx-edge> start capture interface <GRE-tap-interface-UUID> direction dualnsx-edge> get logical-router <logical-router UUID> interfaces nsx-edge> start capture interface <VTI-interface-UUID> direction dualget logical-router <T0-SR-UUID> forwarding table.Ensure VMs are connected to the correct port group that is stretched over the L2VPN session.
Verify the correct interface (MAC/IP) of the VM is connected.
If a support ticket is needed with NSX Broadcom support please provide the following: