When deploying a Vultr cloud server with a private network, you need to manually configure the private adapter. The examples in this guide are for IPv4, however private network interfaces on Vultr VMs support both IPv4 and IPv6. Vultr supports multiple VLANs over a single private network interface with 802.1q tags.
Use Ignition to configure the VPS for private networking. Before proceeding, make sure you understand how to use private networking at Vultr and create a private network at the deployment location. For more information, refer to our private networking documentation:
To configure a private network, include a YAML stanza in your FCC file that writes your network information. Replace the example IP address with your address.
storage:
files:
- path: /etc/NetworkManager/system-connections/ens7.nmconnection
mode: 0600
overwrite: true
contents:
inline: |
[connection]
type=ethernet
interface-name=ens7
[ipv4]
method=manual
addresses=10.10.10.10/20
The deployed VPS will have two adapters:
See a complete example in our Ignition documentation.
The Vultr API offers several endpoints to manage private networks.
You could earn up to $300 by adding new articles