How To Configure A Proxmox Private Network
A Proxmox private network or internal network allows you to assign an internal IP to VMs and Containers. This is useful if you do not have any public IPs. Usually, you would use this on a home setup if you had installed Proxmox VE locally. Or, you could use an internal IP for a DHCP server. Internal IPs for VMs and Containers have many uses. In this guide, we will configure a private network then configure our networking to allow Containers and VMs to access the outside world using the hosts IP address.
Let’s configure a private network on vmbr1 which includes 10.10.10.1 for the address. There is a DHCP server running on 10.10.10.254 and we forward all connections from the 10.10.10.0/24 subnet to the ethernet device on our server. This allows for outgoing connections on guests. Let’s get started!
Add Private Network To Interfaces
Open up the interfaces file and add your private network.
nano /etc/network/interfaces
auto vmbr1
iface vmbr1 inet static
address 10.10.10.1/24
netmask 255.255.255.0
bridge-ports none
bridge-stp off
bridge-fd 0
post-up echo 1 > /proc/sys/net/ipv4/ip_forward
# Change enp5s0 for your ethernet device which is displayed at the top of the interfaces
# file
post-up iptables -t nat -A POSTROUTING -s '10.10.10.0/24' -o enp5s0 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '10.10.10.0/24' -o enp5s0 -j MASQUERADE
Restart the networking with service networking restart or reboot the host.
Create Container With Private IP
Now, in the Proxmox GUI add a new container. In the network settings specify the IPv4 of the container. This will be an IP from your internal network pool. In our example, you can see we have used 10.10.10.254 which is a DHCP server. But remember, the gateway is the main IP of your vmbr1 interface and not the main IP of the host.

Once configured start the container and enter it with pct enter ID. You should now be able to ping the outside world.
[email protected]:~# ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=117 time=5.01 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=117 time=4.87 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=117 time=4.99 ms
64 bytes from 8.8.8.8: icmp_seq=4 ttl=117 time=4.98 ms
--- 8.8.8.8 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 7ms
rtt min/avg/max/mdev = 4.873/4.964/5.008/0.073 ms
That’s it. The internal network is now configured and ready for use.
Other Resources
How was this article?
You might also like
More from Proxmox
How to create a ZFS Swap Partition
Swap on Linux will assist if your environment is running short on memory. Usually, during setup, most distributions configure a …
How To Fix Proxmox Detected Hardware Unit Hang On Intel NICs
Proxmox Detected Hardware Unit Hang On Intel NICs In some cases, Intel NICs can cause a servers network card to freeze. …
How To Configure Bridged Proxmox Networking
How To Configure Bridged Proxmox Networking In a Routed Proxmox setup, you add your IP addresses to your interface then forward …