Network Design
Most failed deployments are decided before the first server boots: a switch port in the wrong VLAN mode, a missing native VLAN, two networks sharing a subnet, or a storage path that is not really redundant. This page describes one reference design that you can apply identically on every host.
Vapor supports Linux bridges, Linux bonds, Linux VLAN interfaces and its Virtual Switch (built on Open vSwitch). The reference design uses the Virtual Switch as the only network backend, four physical NICs per host, and 802.1Q trunks that carry several VLANs on each NIC.
Virtual Switch terms
- Virtual Switch — the networking layer on each Vapor host (Network › Virtual Switch).
- VS bridge — one switch instance on a host, such as
awbr0. - vPort — a port on a VS bridge. A system vPort attaches a physical NIC (or several NICs as a bond); an internal vPort gives the host an IP address in one VLAN.
All addresses, VLAN IDs and names on this page are example values. Replace them with your own plan and record them on the planning worksheet.
Design Principles
- Separate traffic by VLAN, not by cable. Management, NFS, iSCSI path A, iSCSI path B, cluster heartbeat, migration, replication, backup, the Cockpit HA network and VM networks each get their own VLAN and subnet.
- Never put an IP address on a physical NIC or on a bridge. Host addresses live on internal vPorts (
mgmt0,nfs0…), each in one VLAN and labelled with a service tag. - Make every critical path survive the loss of one NIC, one cable and one switch. Management, NFS, cluster and VM traffic run on a bond across two switches; iSCSI uses two independent fabrics with multipathing.
- Keep the two iSCSI fabrics independent. iSCSI path A exists only on switch A and path B only on switch B, so a fault in one fabric can never affect the other.
- Build every host the same way. Use the same bridge names, port names, VLAN IDs and network names on every host. Live migration and distributed networks rely on it.
Physical Topology
Each host connects two NICs to each of two top-of-rack (ToR) switches. NIC 1 and NIC 2 form a bond across both switches; NIC 3 goes only to switch A (fabric A) and NIC 4 only to switch B (fabric B).
ToR switch A ◄──── ISL / MLAG ────► ToR switch B
VLANs 241 242 245 249 250 100–199 VLANs 241 242 245 249 250 100–199
+ 243 246 (fabric A only) + 244 247 248 (fabric B only)
│ │ │ │
NIC 1 NIC 3 NIC 2 NIC 4
│ │ │ │
└──────────┴──────────── each host ────────────┴──────────┘
NIC 1 + NIC 2 → bond0 (native VLAN 241): management, NFS, cluster, Cockpit HA, VMs
NIC 3 → iSCSI-A (243), migration (246)
NIC 4 → iSCSI-B (244), replication (247), backup (248)
The ISL carries 241 242 245 249 250 100–199 only. iSCSI 243/244 never cross it.Dedicated storage switches
If your site already has separate switches per network, the host design does not change: hosts only see VLAN tags on their four ports. Connect NIC 3 to the fabric-A storage switch and NIC 4 to the fabric-B storage switch, and carry the remaining VLANs on those trunks.
NIC Assignment
| Host NIC | Example name | Switch | VS bridge | vPort role | VLANs carried |
|---|---|---|---|---|---|
| NIC 1 | eno1 | ToR A | awbr0 | Member of bond bond0 | 241 (native), 242, 245, 249, 250, 100–199 |
| NIC 2 | eno2 | ToR B | awbr0 | Member of bond bond0 | Same as NIC 1 |
| NIC 3 | eno3 | ToR A | awbr1 | Uplink (trunk) | 243, 246 |
| NIC 4 | eno4 | ToR B | awbr2 | Uplink (trunk) | 244, 247, 248 |
Why three bridges instead of one? A VS bridge forwards any VLAN between any of its vPorts. Putting the two iSCSI uplinks on their own bridges guarantees that iSCSI-A traffic can only leave through NIC 3 and iSCSI-B only through NIC 4 — exactly what multipathing needs — and that a VLAN mistake on one bridge cannot loop traffic into another fabric.
Physical NIC names vary by server (eno1, enp65s0f0, ens1f0 …). Map your names to NIC 1–4 and use them consistently on every host. Spread the bond across two physical adapters — for example NIC 1 on the onboard LOM and NIC 2 on the PCIe card — so that a single adapter failure cannot take the host off the network.
VLAN and Subnet Plan
In this example the VLAN ID equals the third octet of the subnet, and hosts use .11, .12 and .13 in every subnet.
| VLAN | Name | Subnet | Gateway | Host vPort | Service tag | MTU | Path |
|---|---|---|---|---|---|---|---|
| 241 | Management | 192.168.241.0/24 | .1 | mgmt0 | management | 1500 | bond0 |
| 242 | NFS | 192.168.242.0/24 | — | nfs0 | storage | 1500 | bond0 |
| 243 | iSCSI-A | 192.168.243.0/24 | — | iscsia0 | storage | 9000 | NIC 3 |
| 244 | iSCSI-B | 192.168.244.0/24 | — | iscsib0 | storage | 9000 | NIC 4 |
| 245 | Cluster | 192.168.245.0/24 | — | clus0 | shared-heartbeat | 1500 | bond0 |
| 246 | Migration | 192.168.246.0/24 | — | migr0 | migration | 9000 | NIC 3 |
| 247 | Replication | 192.168.247.0/24 | .1 (routed to the DR site) | repl0 | replication | 1500 | NIC 4 |
| 248 | Backup | 192.168.248.0/24 | — | bkup0 | backup | 9000 | NIC 4 |
| 249 | Cockpit HA | 192.168.249.0/24 | — | none (VM only) | — | 1500 | bond0 |
| 250 | Virtual Network tunnel | 192.168.250.0/24 | — | tep0 (later) | — | 1500 | bond0 |
| 100–199 | VM networks | Per network | On the router | none (VM only) | — | 1500 | bond0 |
VLAN 250 for Virtual Network
Reserve VLAN 250 for Virtual Network even if you do not plan to use it yet. Carrying it on the bond and the switch trunks from day one means you can activate Virtual Network later without touching the physical network. Each host then gets one tunnel endpoint vPort, tep0. Geneve adds 58 bytes to every tunnelled frame: with an MTU 1500 path, VMs on Virtual Networks must use MTU 1442, which you hand out through the MTU field of each subnet's DHCP options. In release 3.3 the MTU of a bonded vPort cannot be raised from Vapor, so plan on 1442 rather than on a larger underlay MTU.
Jumbo frames
Jumbo frames only work if every hop uses them: host vPort, uplink vPort, switch ports, the ISL if crossed, and the storage target. A partial jumbo configuration fails in confusing ways (small packets work, large transfers stall). If you cannot guarantee MTU 9000 end to end, use 1500 everywhere; the design still works.
Virtual Switch Layout on Each Host
mgmt0 nfs0 clus0 VM NICs iscsia0 migr0 iscsib0 repl0 bkup0
241 242 245 (portgroups) 243 246 244 247 248
└──────┴──────┴────────┘ └───────┘ └───────┴──────┘
awbr0 awbr1 awbr2
management, NFS, cluster, VMs fabric A: iSCSI-A, migration fabric B: iSCSI-B,
replication, backup
│ │ │
bond0 (system vPort, bond) eno3 (system vPort) eno4 (system vPort)
active-backup trunk 243,246 trunk 244,247,248
native-untagged, tag 241 MTU 9000 MTU 9000
trunks 241,242,245,249,250,100–199
│ │ │ │
eno1 eno2 eno3 eno4The design uses three kinds of vPort, all created from Network › Virtual Switch in the Vapor UI:
| Port | What it is | VLAN setting |
|---|---|---|
| Uplink — system vPort | A physical NIC attached to a bridge. With two or more interfaces selected, Vapor creates a bond (bond0). | trunk (list the VLANs) or native-untagged (trunk plus one untagged native VLAN). |
| Host port — internal vPort | A virtual interface that gives the host an IP address on one VLAN. Carries a service tag. | access with one tag. |
VM port — vnetN | Created by libvirt for each running VM NIC. Never configure these by hand. | Inherited from the portgroup of the network the NIC is attached to. |
Bond mode
| Bond mode | LACP | Switch requirement | Use when |
|---|---|---|---|
active-backup | off | None beyond identical trunk configuration on both ports. | Default for this design. Works with any pair of switches and is the simplest to install and troubleshoot. |
balance-slb | off | None; balances by source MAC and VLAN. | You want both links active without switch-side link aggregation. |
balance-tcp | active | An LACP port-channel spanning both ToR switches (MLAG, vPC, VSX or stacking). | Your switches support multi-chassis LACP and you want per-flow load sharing. |
LACP during installation
With LACP, the switch normally blocks a port until LACP negotiates. During AwaniOS installation the host has no bond yet, so enable your switch's LACP fallback (individual mode) on these ports, or install with active-backup first and change the bond mode after Cockpit is running.
Service Tags
Service tags label an internal vPort with the role of its IP address. Vapor accepts exactly six values. Tag every internal vPort, even when the current release does not yet select interfaces by that tag: the labels document the design and are used by Cockpit as features adopt them. Service tags are set on internal vPorts, never on uplinks.
| Service tag | Purpose | How release 3.3 uses it |
|---|---|---|
management | Vapor UI/API, Cockpit-to-Vapor traffic, SSH. | Documents the management vPort. Cockpit reaches the host at the address you register it with. |
storage | NFS and iSCSI traffic to shared storage. | Documentation label. NFS follows the connected subnet on nfs0; iSCSI uses explicit port bindings to iscsia0 and iscsib0. |
shared-heartbeat | Cluster heartbeats, OCFS2/O2CB node traffic. | Documentation label. You select clus0's address as the O2CB communication IP. |
migration | Live-migration memory and device state. | Recorded for forward compatibility. Live migration currently uses the host's management address. |
replication | Site-to-site replication of VM disks for DR. | Active. Cockpit resolves each host's replication endpoint from the internal vPort tagged replication (or an explicit selection) and falls back to the management address if none is set. |
backup | Backup streams (NBD, Changed Block Tracking). | Recorded for forward compatibility. Backup jobs connect to the host's registered address. |
Because migration currently runs over the management address, size the bond for migration traffic.
Addressing and Naming Plan
| Name (FQDN) | Role | mgmt (241) | NFS (242) | iSCSI-A (243) | iSCSI-B (244) | Cluster (245) | Migr. (246) | Repl. (247) | Backup (248) |
|---|---|---|---|---|---|---|---|---|---|
vapor-01.dc1.corp.example | Host 1 | .241.11 | .242.11 | .243.11 | .244.11 | .245.11 | .246.11 | .247.11 | .248.11 |
vapor-02.dc1.corp.example | Host 2 | .241.12 | .242.12 | .243.12 | .244.12 | .245.12 | .246.12 | .247.12 | .248.12 |
vapor-03.dc1.corp.example | Host 3 | .241.13 | .242.13 | .243.13 | .244.13 | .245.13 | .246.13 | .247.13 | .248.13 |
| Name | Address | Purpose |
|---|---|---|
cockpit.dc1.corp.example | 192.168.241.20 | Cockpit floating IP — the address everyone uses: https://cockpit.dc1.corp.example:7771 |
cockpit-01.dc1.corp.example | 192.168.241.21 / 192.168.249.21 | First appliance: operational mgmt0 address / cockpit0 HA address |
cockpit-02, cockpit-03 | .241.22–.23 / .249.22–.23 | Reserved for optional control-plane HA members |
| Gateway, DNS, NTP | 192.168.241.1 · 192.168.241.5 | Router on VLAN 241 · DNS and NTP server |
| NFS server | 192.168.242.100 | Export /exports/cockpit-ds01 |
| iSCSI array | 192.168.243.100 · 192.168.244.100 | Controller target portals on fabric A and fabric B |
| Admin workstation | 192.168.241.50 | Runs the Cockpit Installer and browsers |
Tunnel endpoints (tep0) | 192.168.250.11–.13 | Reserved for Virtual Network, one per host |
Switch Port Configuration
Agree the following with the network team before installation.
| Port | Mode | Native VLAN | Allowed VLANs | MTU | Other |
|---|---|---|---|---|---|
| Host NIC 1 (ToR A) and NIC 2 (ToR B) | 802.1Q trunk | 241 | 241, 242, 245, 249, 250, 100–199 | 9216 | Edge trunk, BPDU guard. Port-channel only if using LACP. |
| Host NIC 3 (ToR A) | 802.1Q trunk | none | 243, 246 | 9216 | Edge trunk, BPDU guard |
| Host NIC 4 (ToR B) | 802.1Q trunk | none | 244, 247, 248 | 9216 | Edge trunk, BPDU guard |
| ISL between ToR A and B | 802.1Q trunk | — | 241, 242, 245, 249, 250, 100–199 (not 243/244) | 9216 | MLAG peer link if used |
An example in Cisco-style syntax for one host on ToR A; translate it for your switch vendor:
vlan 241-243,245,246,249,250,100-199
interface Ethernet1/1
description vapor-01 NIC1 eno1 (bond0)
switchport mode trunk
switchport trunk native vlan 241
switchport trunk allowed vlan 241,242,245,249,250,100-199
spanning-tree port type edge trunk
spanning-tree bpduguard enable
mtu 9216
interface Ethernet1/2
description vapor-01 NIC3 eno3 (fabric A: iSCSI-A, migration)
switchport mode trunk
switchport trunk allowed vlan 243,246
spanning-tree port type edge trunk
spanning-tree bpduguard enable
mtu 9216Why native VLAN 241 on the bond ports? The AwaniOS installer configures the management address untagged on NIC 1. With VLAN 241 as the native VLAN, the host is reachable immediately after installation, and after the move to the Virtual Switch the bond keeps sending VLAN 241 untagged (native-untagged), so the switch configuration never has to change.
Spanning tree
Leave STP and RSTP disabled on all VS bridges (the default). Hosts are edge devices: the bond never forwards between its members, and the three bridges are not interconnected, so the host cannot create a loop. BPDU guard on the switch ports protects you if someone bridges ports by mistake.
Traffic That Must Be Permitted
If firewalls or ACLs sit between these networks, permit at least the flows below, and only between the listed sources and destinations. The full list is under Network Ports.
| From | To | Ports | Purpose |
|---|---|---|---|
| Admin workstation | Hosts (mgmt0) | TCP 7770, 3775 | Vapor UI/API, Cockpit Installer, SSH |
| Admin workstation, users | Cockpit floating IP and operational IPs | TCP 7771, 9090, 22 | Cockpit UI/API, CAMI, SSH |
Cockpit appliance (mgmt0) | Hosts (mgmt0) | TCP 7770 | Host management and event stream |
Host ↔ host (mgmt0) | Host | TCP 16514, 49152–49215, 7770 | Live migration (libvirt TLS and QEMU data), host-to-host API |
Host ↔ host (clus0) | Host | TCP 7777 | O2CB / OCFS2 cluster |
Hosts (nfs0, iscsia0, iscsib0) | Storage | TCP 2049 (NFS), TCP 3260 (iSCSI) | Shared storage |
Cockpit member ↔ member (cockpit0) | Cockpit member | TCP 5432, 8008, 2379, 2380 | PostgreSQL replication, Patroni, etcd |
Cockpit members (mgmt0) | Cockpit members | IP protocol 112 (VRRP) | Keepalived floating IP election |
Host ↔ host (tep0, optional) | Host | UDP 6081, TCP 6641–6644 | Virtual Network: Geneve tunnels, OVN databases |
| All | DNS, NTP | UDP/TCP 53, UDP 123 | Name resolution, time |
Restrict the management network
CAMI (9090) and SSH (22, 3775) are administrative interfaces. Allow them from administrator workstations only, not from the whole user population. Users who only need the Cockpit UI need TCP 7771 on the floating IP.