Glossary

Network Virtualization

Network virtualization creates switches, routers, firewalls and whole isolated networks in software, so their layout no longer depends on how physical cables and devices are arranged.

What gets virtualized?

The building blocks of a network. A Linux bridge acts as a switch connecting virtual machines. A VLAN or VXLAN tag splits one physical link into many logical networks. A network namespace gives a container its own interfaces, routes and firewall rules. A virtual router forwards and translates traffic between those networks. Put together, they let you create, change and delete networks with commands instead of cabling, which is what makes clouds and container platforms possible. Network Functions Virtualization covers turning network appliances themselves into software.

What are the main techniques?

TechniqueLayerWhat it does
Linux bridge or Open vSwitchLayer 2A software switch inside a host connecting VMs and containers
VLAN (802.1Q)Layer 2Tags frames to keep up to 4094 networks apart on one link
VXLAN, GeneveLayer 2 over Layer 3Wraps Ethernet frames in UDP so a network can span routed links
Network namespacesHostSeparate network stacks for containers on one kernel
Virtual routing (VRF)Layer 3Separate routing tables for different tenants on one host
Encrypted overlaysLayer 3WireGuard or IPsec meshes that form private networks over the internet

How do virtual machines reach the network on one host?

Our machines come with one public IPv4 address, so guests on a hypervisor usually sit on a private bridge behind it. The host routes and translates their traffic, and forwards specific ports to specific guests. On Proxmox VE or plain Debian with KVM, the configuration looks like this in /etc/network/interfaces:

auto vmbr7
iface vmbr7 inet static
    address 10.77.0.1/24
    bridge-ports none
    bridge-stp off
    bridge-fd 0
    post-up   sysctl -qw net.ipv4.ip_forward=1
    post-up   nft -f /etc/nftables.d/natv7.nft
    post-down nft delete table ip natv7

The file it loads, saved as /etc/nftables.d/natv7.nft, holds a small NAT table for the guest range:

table ip natv7 {
  chain guests_out {
    type nat hook postrouting priority srcnat; policy accept;
    ip saddr 10.77.0.0/24 oifname "eno1" counter masquerade
  }
}

Guests get addresses in 10.77.0.0/24 with 10.77.0.1 as their gateway. Publish a service by adding a DNAT rule on the host that sends, say, port 8443 to a guest. A reverse proxy on the host is often tidier for web apps, as described on Reverse Proxy.

How can I build a private network across several machines?

Our machines have no shared private network, so you build one virtually. The simplest approach is a WireGuard mesh: each machine gets a tunnel address and lists the others as peers. For layer 2 needs, such as moving VMs between hosts with the same address, run VXLAN on top of the WireGuard addresses:

ip link add vx42 type vxlan id 42 local 10.60.0.11 remote 10.60.0.12 dstport 4789 dev wg0
ip link set vx42 master vmbr7 && ip link set vx42 up
bridge fdb show dev vx42

Now guests on vmbr7 on both hosts share one virtual segment, and their traffic travels encrypted between cities. Lower the guest MTU to around 1370 to leave room for both headers. VPN covers the WireGuard part.

What does software-defined networking add?

SDN separates the control plane, which decides where traffic should go, from the data plane, which forwards packets. A central controller programs many virtual switches at once, so adding a tenant network or a firewall rule happens everywhere with one API call. Proxmox VE includes an SDN module with zones, VNets and subnets that can drive VXLAN and EVPN setups across cluster nodes. Larger platforms use Open vSwitch with OVN for the same purpose.

How do containers use network virtualization?

Each container usually gets its own network namespace with a virtual Ethernet pair: one end inside the container, the other attached to a host bridge such as docker0 or a Podman network. The host routes and translates traffic for the whole bridge, much like the VM setup above. Orchestrators add overlay networks so containers on different hosts can reach each other by name. You can inspect the plumbing with ip netns list, bridge link and nft list ruleset, which shows the NAT rules the container engine created.

Which pitfalls are common?

  • MTU mismatches: every encapsulation layer eats bytes. Large transfers stall while small ones work.
  • Forgetting forwarding and NAT: guests reach the host but not the internet.
  • Exposing a bridge to the public port: putting guests directly on the uplink bridge only works when each guest has its own public address, which a single /31 does not provide.
  • Firewall gaps: rules on the host's public interface do not automatically cover forwarded traffic; filter the forward chain too.

Which machines suit virtual networking?

Software switching uses CPU per packet, so hosts with many guests and heavy east-west traffic like many cores and fast ports. The D4 brings 32 cores and 2x 25 Gbps ports for a busy hypervisor, and the S13 suits a smaller lab with 2x 25 Gbps links. Virtualization hosts sizes hypervisor hosts by guest count.

Hypervisor Hosts With Fast Ports

ServerProcessorCores / threadsMemoryStorageNetworkPer monthSmallest order
S6Intel Xeon E-2288G8 / 1664 GB DDR42x 1 TB NVMe2x 10 Gbps$89.92$89.92 (1 month)
S13AMD EPYC 4345P8 / 16128 GB DDR52x 2 TB NVMe2x 25 Gbps$237.92$237.92 (1 month)
D42x Intel Xeon Gold 632632 / 64128 GB DDR42x 1 TB NVMe2x 25 Gbps$275.41$275.41 (1 month)
D92x Intel Xeon Gold 632632 / 64256 GB DDR42x 2 TB NVMe2x 25 Gbps$400.25$400.25 (1 month)

Keep Reading

Network Functions Virtualization

Replacing routers, firewalls and other network appliances with software on standard servers, the NFV architecture, and high-speed packet processing.

Open

VPN

What a virtual private network does with tunnels and encryption, the main protocols, and how to run one on your own machine.

Open

Virtualization hosts

Carve one physical box into many virtual machines with Proxmox VE or KVM, guests behind NAT on a single public address.

Open

Proxmox VE

Proxmox VE 8 turns an x86 machine into a virtualization host with a web console for VMs and containers.

Open

FAQ

Quick Answers

Creating switches, routers and isolated networks in software, so network layout no longer depends on physical cabling.

Put them on a private bridge, enable forwarding and masquerade their traffic through the host public address.

A protocol that wraps Ethernet frames in UDP so a layer 2 network can stretch across routed links between hosts.

Yes, virtually. A WireGuard mesh gives encrypted layer 3 links, and VXLAN on top adds a shared layer 2 segment if needed.

Usually an MTU problem. Each tunnel header reduces the usable packet size, so lower the MTU on guest interfaces.