The NSX Data Center for vSphere edge gateways in a VMware Cloud Director environment support L2 VPN. With L2 VPN, you can extend your organization virtual data center by enabling virtual machines to maintain network connectivity while retaining the same IP address across geographical boundaries. You can configure the L2 VPN service on an edge gateway.
NSX Data Center for vSphere provides the L2 VPN capabilities of an edge gateway. With L2 VPN, you can configure a tunnel between two sites. Virtual machines remain on the same subnet despite being moved between these sites, which enables you to extend your organization virtual data center by stretching its network using L2 VPN. An edge gateway at one site can provide all services to virtual machines on the other site.
To create the L2 VPN tunnel, you configure an L2 VPN server and L2 VPN client. As described in the NSX Administration Guide, the L2 VPN server is the destination edge gateway and the L2 VPN client is the source edge gateway. After configuring the L2 VPN settings on each edge gateway, you must then enable the L2 VPN service on both the server and the client.
Navigate to the L2 VPN Screen Using Your VMware Cloud Director Service Provider Admin Portal
To begin configuring the L2 VPN service for an NSX Data Center for vSphere edge gateway in VMware Cloud Director, you must navigate to the L2 VPN screen.
Procedure
- Open Edge Gateway Services.
- From the primary left navigation panel, select Resources, and from the page top navigation bar, select the Cloud Resources tab.
- From the secondary left panel, select Edge Gateways.
- Click the radio button next to the name of the target edge gateway, and click Services.
- Navigate to .
What to do next
Configure the L2 VPN server. See Configure the NSX Data Center for vSphere Edge Gateway as an L2 VPN Server in the VMware Cloud Director Service Provider Admin Portal.
Configure the NSX Data Center for vSphere Edge Gateway as an L2 VPN Server in the VMware Cloud Director Service Provider Admin Portal
The L2 VPN server is the destination NSX edge to which the L2 VPN client is going to connect.
As described in the NSX Administration Guide, you can connect multiple peer sites to this L2 VPN server.
Prerequisites
- Verify that the edge gateway has a routed organization virtual data center network that is configured as a subinterface on the edge gateway.
- Navigate to the L2 VPN Screen Using Your VMware Cloud Director Service Provider Admin Portal.
- If you want to bind a service certificate to the L2 VPN connection, verify that the server certificate has already been uploaded to the edge gateway. See Add a Service Certificate to the Edge Gateway Using Your VMware Cloud Director Service Provider Admin Portal.
- You must have the listener IP of the server, listener port, encryption algorithm, and at least one peer site configured before you can enable the L2 VPN service.
Procedure
- On the L2 VPN tab, select Server for the L2 VPN mode.
- On the Server Global tab, configure the L2 VPN server's global configuration details.
Option Action Listener IP Select the primary or secondary IP address of an external interface of the edge gateway. Listener Port Edit the displayed value as appropriate for the needs of your organization. The default port for the L2 VPN service is 443.
Encryption Algorithm Select the encryption algorithm for the communication between the server and the client. Service Certificate Details Click Change server certificate to select the certificate to be bound to the L2 VPN server. In the Change Server Certificate window, turn on Validate Server Certificate, select a server certificate from the list, and click OK.
- To configure the peer sites, click the Server Sites tab.
- Click the Add button.
- Configure the settings for an L2 VPN peer site.
Option Action Enabled Enable this peer site. Name Enter a unique name for the peer site. Description (Optional) Enter a description. User ID
Password
Confirm Password
Enter the user name and password with which the peer site is to be authenticated. User credentials on the peer site must be the same as the credentials on the client side.
Stretched Interfaces Select at least one subinterface to be stretched with the client. The subinterfaces available for selection are those organization virtual data center networks configured as subinterfaces on the edge gateway.
Egress Optimization Gateway Address (Optional) If the default gateway for virtual machines is the same across the two sites, enter the gateway IP addresses of the subinterfaces for which you want the traffic locally routed or blocked over the L2 VPN tunnel. - Click Keep.
- Click Save changes.
What to do next
Enable the L2 VPN service on this edge gateway. See Enable the L2 VPN Service on an NSX Data Center for vSphere Edge Gateway Using Your VMware Cloud Director Service Provider Admin Portal.
Configure the NSX Data Center for vSphere Edge Gateway as an L2 VPN Client in the VMware Cloud Director Service Provider Admin Portal
The L2 VPN client is the source NSX edge that initiates communication with the destination NSX edge, the L2 VPN server.
Prerequisites
- Navigate to the L2 VPN Screen Using Your VMware Cloud Director Service Provider Admin Portal.
- If this L2 VPN client is connecting to an L2 VPN server that uses a server certificate, verify that the corresponding CA certificate is uploaded to the edge gateway to enable server certificate validation for this L2 VPN client. See Add a CA Certificate to the Edge Gateway for SSL Certificate Trust Verification Using Your VMware Cloud Director Service Provider Admin Portal.
Procedure
- On the L2 VPN tab, select Client for the L2 VPN mode.
- On the Client Global tab, configure the global configuration details of the L2 VPN client.
Option Description Server Address Enter the IP address of the L2 VPN server to which this client is to be connected. Server Port Enter the L2 VPN server port to which the client should connect. The default port is 443.
Encryption Algorithm Select the encryption algorithm for communicating with the server. Stretched Interfaces Select the subinterfaces to be stretched to the server. The subinterfaces available to select are the organization virtual data center networks configured as subinterfaces on the edge gateway.
Egress Optimization Gateway Address (Optional) If the default gateway for virtual machines is the same across the two sites, type the gateway IP addresses of the subinterfaces or the IP addresses to which traffic should not flow over the tunnel. User Details Enter the user ID and password for authentication with the server. - Click Save changes.
- (Optional) To configure advanced options, click the Client Advanced tab.
- If this L2 VPN client edge does not have direct access to the Internet, and must reach the L2 VPN server edge by using a proxy server, specify the proxy settings.
Option Description Enable Secure Proxy Select to enable the secure proxy. Address Enter the proxy server IP address. Port Enter the proxy server port. User Name
Password
Enter the proxy server authentication credentials. - To enable server certification validation, click Change CA certificate and select the appropriate CA certificate.
- Click Save changes.
What to do next
Enable the L2 VPN service on this edge gateway. See Enable the L2 VPN Service on an NSX Data Center for vSphere Edge Gateway Using Your VMware Cloud Director Service Provider Admin Portal.
Enable the L2 VPN Service on an NSX Data Center for vSphere Edge Gateway Using Your VMware Cloud Director Service Provider Admin Portal
When the required L2 VPN settings are configured, you can enable the L2 VPN service on the edge gateway.
Prerequisites
- If this edge gateway is an L2 VPN server, the destination NSX edge, verify that the required L2 VPN server settings and at least one L2 VPN peer site are configured. See the steps described in Configure the NSX Data Center for vSphere Edge Gateway as an L2 VPN Server in the VMware Cloud Director Service Provider Admin Portal.
- If this edge gateway is an L2 VPN client, the source NSX edge, verify that the L2 VPN client settings are configured. See the steps described in Configure the NSX Data Center for vSphere Edge Gateway as an L2 VPN Client in the VMware Cloud Director Service Provider Admin Portal.
- Navigate to the L2 VPN Screen Using Your VMware Cloud Director Service Provider Admin Portal.
Procedure
- On the L2 VPN tab, click the Enable toggle.
- Click Save changes.
Results
The L2 VPN service of the edge gateway becomes active.
What to do next
Create NAT or firewall rules on the Internet-facing firewall side to enable the L2 VPN server to connect to the L2 VPN client.