You must add an L2 VPN Client session after creating an L2 VPN Client service, and attach it to an existing segment.
The following steps use the L2 VPN Sessions tab on the NSX Manager UI to create an L2 VPN Client session. You also select an existing local endpoint and segment to attach to the L2 VPN Client session.
You can also add an L2 VPN Client session immediately after you have successfully configured the L2 VPN Client service. Click Yes when prompted to continue with the L2 VPN Client configuration and select on the Add L2 VPN Client panel. The first few steps in the following procedure assume you selected No to the prompt to continue with the L2 VPN Client configuration. If you selected Yes, proceed to step 3 in the following steps to guide you with the rest of the L2 VPN Client session configuration.
- You must have configured an L2 VPN Client service before proceeding. See Add an L2 VPN Client Service.
- Obtain the IP addresses information for the local IP and remote IP to use with the L2 VPN Client session you are adding.
- Obtain the peer code that was generated during the L2 VPN server configuration. See Download the Remote Side L2 VPN Configuration File.
- Obtain the name of the existing segment you want to attach to the L2 VPN Client session you are creating. See Add a Segment.
- From your browser, log in with admin privileges to an NSX Manager at https://<nsx-manager-ip-address>.
- Select the .
- Select .
- Enter a name for the L2 VPN Client session.
- From the VPN Service drop-down menu, select the L2 VPN Client service with which the L2 VPN session is to be associated.
Note: If you are adding this L2 VPN Client session from the Set L2VPN Client Sessions dialog box, the L2 VPN Client service is already indicated above the Add L2 Session button.
- In the Local IP address text box, enter the IP address of the L2 VPN Client session.
- Enter the remote IP address of the IPSec tunnel to be used for the L2 VPN Client session.
- In the Peer Configuration text box, enter the peer code generated when you configured the L2 VPN Server service.
- Enable or disable Admin Status.
By default, the value is set to Enabled, which means the L2 VPN Server session is to be configured down to the NSX Edge node.
- Click Save and click Yes when prompted if you want to continue with the VPN service configuration.
- Attach an existing segment to the L2 VPN Client session.
- Select .
- In the Set Segments dialog box, click Add Segment.
- From the Segment drop-down menu, select the VNI-based or VLAN-based segment you want to attach to the L2 VPN Client session.
- Enter a unique value in the VPN Tunnel ID that is used to identify the segment that you selected.
- Click Close.
- To finish the L2 VPN Client session configuration, click Close Editing.
In the VPN Services tab, the sessions count is updated for the L2 VPN Client service that you configured.
If you have attached one or more segments to the session, you see the number of segments for each session in the L2 VPN Sessions tab. You can reconfigure or add segments by clicking the number in the Segments column. You do not need to edit the session. If the number is zero, it is not clickable and you must edit the session to add segments.