For AI agents: the complete documentation index is available at https://docs.ovhcloud.com/it/llms.txt, the full documentation bundle is available at https://docs.ovhcloud.com/it/llms-full.txt, and this page is available as Markdown at https://docs.ovhcloud.com/it/guides/hosted-private-cloud/powered-by-vmware/snc-connectivity-spn-vmware-configuration.md.
Vai al contenuto

Configuring the SPN on a VMware SecNumCloud service

Vedi come Markdown

Find out how to connect the virtual machines of a VMware SecNumCloud service to an SPN subnet, using a distributed port group on the vRack dVS

Objective

On a VMware SecNumCloud service, the SPN (SecurePrivateNetwork) groups the subnets used by your virtual machines. An SPN subnet is a layer-2 segment with an IPv4 prefix and no VLAN tag.

This guide explains how to connect virtual machines to an SPN subnet: create a distributed port group on the vRack dVS, connect the virtual machines to it, then configure their IP address and default gateway.

Requirements

  • A VMware SecNumCloud service with an SPN and a subnet attached to it (see the SPN Concept guide)
  • The IPv4 prefix of the subnet
  • A user account with access to vSphere and the specific rights for Networking
  • A virtual machine to connect

Instructions

An SPN subnet follows these rules (see the SPN Concept guide):

  • the first three IP addresses of the subnet are reserved for OVHcloud: the first one is the VIP, the other two are the OVHcloud routers
  • the subnet has no VLAN tag
  • as the subnet has no VLAN tag, there can be only one SPN segment per VMware Virtual Datacenter

In a static routing configuration, the first IP address of the subnet is therefore the default gateway of your virtual machines, and their own addresses must be chosen after the three reserved ones.

In the examples of this guide, the subnet is 192.0.2.0/24: the default gateway is 192.0.2.1 and the virtual machine uses 192.0.2.10.

Step 1 — Creating the distributed port group

Create only one port group for the SPN in a given Virtual Datacenter. Go to your vSphere client's Networking view and select your datacenter. In the Networks tab, open Distributed Switches, right-click the dVS ending in -vrack, select Distributed Port Group and then New Distributed Port Group....

Context menu of the -vrack dVS showing New Distributed Port Group

Name your port group so that it identifies the SPN subnet (for example SPN). The Location field shows the dVS ending in -vrack. Click Next.

Port group name and location in the New Distributed Port Group wizard

Step 2 — Configuring the port group

The settings are those of the How to create a VLAN guide, with two differences: the number of ports keeps its default value (8), and the VLAN type must be None, because an SPN subnet has no VLAN tag.

  • Port binding: Static binding (reserving and assigning the port to a virtual machine)
  • Port allocation: Elastic (ports are added automatically when all of them are in use)
  • Number of ports: 8 (default value)
  • VLAN type: None. No VLAN ID is requested.
  • Check the option Customize default policies configuration.
Port group configuration with the VLAN type None

On the next pages of the wizard, keep the default values, except on the Teaming and failover page.

The default security settings (Reject for the first 3, MAC Learning disabled) can be adapted to your needs.

Security settings of the port group in the New Distributed Port Group wizard

Leave Traffic shaping disabled.

Traffic shaping settings of the port group, left disabled

In the failover order, select the lag1 uplink as the only Active uplink (connection between the virtual network and the physical network) and move the other uplinks (*-vrack_up1, *-vrack_up2, *-vrack_up3) to Unused uplinks. Leave the Load balancing value unchanged: when a link aggregation group (LAG) is the only active uplink, the load balancing mode of the LAG replaces that of the port group.

Warning

Be careful when configuring the failover order: it is necessary to set the lag1 uplink to Active, otherwise no communication between the hosts will be possible.

Teaming and failover settings with lag1 as the only active uplink

Leave NetFlow disabled.

NetFlow setting of the port group, left disabled

Leave the Block All Ports value at No.

Block all ports setting of the port group, left at No

Review the summary: the VLAN ID is empty (--) since the subnet has no VLAN tag. Click Finish to confirm the creation.

Summary of the new port group, with an empty VLAN ID

The new port group appears under the dVS ending in -vrack.

New port group listed under the dVS ending in -vrack

Step 3 — Connecting the virtual machines to the port group

Right-click the virtual machine and select Edit Settings. For the network adapter, open the drop-down list and select Browse....

Network adapter drop-down list with the Browse option in Edit Settings

In the Select Network window, select the port group created in step 1 (the screenshot shows another network as an example), then click OK.

Select Network window listing the networks available for the adapter

Make sure the connection box of the network adapter is ticked, then click OK to save the virtual machine settings.

Step 4 — Configuring the IP address and the default gateway

In the virtual machine, configure:

  • an IP address of the subnet, after the three reserved ones (for example 192.0.2.10)
  • the subnet mask matching the prefix (for example 255.255.255.0 for a /24)
  • in a static routing configuration, the first IP address of the subnet as the default gateway (for example 192.0.2.1)
Info

If BGP is enabled on the SPN, VRRP is disabled and the first IP address of the subnet is no longer reachable. The default gateway of your virtual machines is then your own router, which establishes the eBGP sessions with the two OVHcloud routers. See the "BGP configuration" section of the SPN Concept guide.

Linux
Windows

Here is an example of a configuration on the Debian distribution. Edit the /etc/network/interfaces file (the name of the interface can differ):

Linux IP configuration of eth0 in the /etc/network/interfaces file

The values shown in the screenshot belong to another network: use those of your subnet.

auto eth0
iface eth0 inet static
address 192.0.2.10
netmask 255.255.255.0
gateway 192.0.2.1

Restart the network service with systemctl restart networking.

You can check the configuration with ip a, and the default gateway with ip route.

Go further

SPN Concept

VPN-SPN Concept

FAQ SecNumCloud Connectivity

How to create a VLAN

For training or technical assistance implementing our solutions, contact your sales representative or visit our Professional Services page to request a quote and have your project analysed by our experts.

Join our community of users.

Questa pagina ti è stata utile?