---
title: "Configuring the SPN on a VMware SecNumCloud service"
description: "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"
url: https://docs.ovhcloud.com/en/guides/hosted-private-cloud/powered-by-vmware/snc-connectivity-spn-vmware-configuration
lang: en
lastUpdated: 2026-11-27
---
> For AI agents: the complete documentation index is available at https://docs.ovhcloud.com/en/llms.txt, the full documentation bundle is available at https://docs.ovhcloud.com/en/llms-full.txt.

# Configuring the SPN on a VMware SecNumCloud service

## 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](https://docs.ovhcloud.com/en/guides/hosted-private-cloud/powered-by-vmware/snc-connectivity-concepts-spn.md) 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](https://docs.ovhcloud.com/en/guides/hosted-private-cloud/powered-by-vmware/snc-connectivity-concepts-spn.md) 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...
`.

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
`.

### Step 2 — Configuring the port group

The settings are those of the [How to create a VLAN](https://docs.ovhcloud.com/en/guides/hosted-private-cloud/powered-by-vmware/create-vlan.md) 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".

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.

Leave _Traffic shaping_ 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.

Leave `NetFlow` disabled.

Leave the `Block All Ports` value at `No`.

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

The new port group appears 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...
`.

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

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`)

**Note:** 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](https://docs.ovhcloud.com/en/guides/hosted-private-cloud/powered-by-vmware/snc-connectivity-concepts-spn.md#bgp-configuration) guide.

#### Linux

Here is an example of a configuration on the Debian distribution. Edit the `/etc/network/interfaces` file (the name of the interface can differ):
The values shown in the screenshot belong to another network: use those of your subnet.
```sh
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`.

#### Windows

Here is an example of a configuration on Windows.
In the Windows "Control Panel", go to "Network and Internet" > "Network and Sharing Center", then click "Change adapter settings".
As a shortcut, you can enter the following command in the Windows _Run_ window (_Windows_ key and _R_ key):
```shell
ncpa.cpl
```
Right-click the network adapter, select "Properties", then select "Internet Protocol Version 4 (TCP/IPv4)" and click "Properties". Enter your IP information:
```sh
IP address: 192.0.2.10
Subnet mask: 255.255.255.0
Default gateway: 192.0.2.1
```
The values shown in the screenshot belong to another network: use those of your subnet.

## Go further

[SPN Concept](https://docs.ovhcloud.com/en/guides/hosted-private-cloud/powered-by-vmware/snc-connectivity-concepts-spn.md)

[VPN-SPN Concept](https://docs.ovhcloud.com/en/guides/hosted-private-cloud/powered-by-vmware/snc-connectivity-concepts-vpn-spn.md)

[FAQ SecNumCloud Connectivity](https://docs.ovhcloud.com/en/guides/hosted-private-cloud/powered-by-vmware/snc-connectivity-faq.md)

[How to create a VLAN](https://docs.ovhcloud.com/en/guides/hosted-private-cloud/powered-by-vmware/create-vlan.md)

For training or technical assistance implementing our solutions, contact your sales representative or visit our [Professional Services](https://www.ovhcloud.com/en-gb/professional-services/) page to request a quote and have your project analysed by our experts.

Join our [community of users](https://community.ovhcloud.com/).
