Article

Table of Contents
Theme:
Was this article helpful?

1  out of  1 found this helpful

Try Vultr Today with

$50 Free on Us!

Want to contribute?

You could earn up to $600 by adding new articles!

How to Configure a Private Network on FreeBSD

Last Updated: Thu, Mar 4, 2021
BSD FAQ Networking

Introduction

Vultr provides many flexible networking options for your cloud servers. In addition to the public network attached to every Vultr instance, you can configure up to five private networks per location. Private networks allow instances within a location to communicate without exposing the traffic to the public internet.

Please see the guide How to Configure a Private Network at Vultr for general information about Vultr's private network feature.

Private networks do not have DHCP. When deploying a Vultr cloud server with private networking, you must manually configure the private adapters or supply your own DHCP server. We provide network configuration examples for many popular operating systems, pre-configured for your instance's IP addresses. You can find these by navigating to the settings screen (1) for your server, then selecting IPv4 (2). Follow the networking configuration link (3) to view the configuration examples.

NetworkConfig

The configurations in the customer portal are your best source of specific information. Please see below for step-by-step instructions with generic examples.

FreeBSD 10.x, FreeBSD 11.x, FreeBSD 12.x

Verify that private networking is enabled for your cloud server. Your private network device is vtnet1. Your public network device is vtnet0.

Add the following line to the /etc/rc.conf file. Replace 10.10.10.3 with your IP address.

ifconfig_vtnet1="inet 10.10.10.3 netmask 255.255.0.0 mtu 1450" 

Start the interface or reboot.

service netif start vtnet1

Manage Private Networks via API

The Vultr API offers several endpoints to manage private networks.

Want to contribute?

You could earn up to $600 by adding new articles