Skip to content

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 ​

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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 NICExample nameSwitchVS bridgevPort roleVLANs carried
NIC 1eno1ToR Aawbr0Member of bond bond0241 (native), 242, 245, 249, 250, 100–199
NIC 2eno2ToR Bawbr0Member of bond bond0Same as NIC 1
NIC 3eno3ToR Aawbr1Uplink (trunk)243, 246
NIC 4eno4ToR Bawbr2Uplink (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.

VLANNameSubnetGatewayHost vPortService tagMTUPath
241Management192.168.241.0/24.1mgmt0management1500bond0
242NFS192.168.242.0/24—nfs0storage1500bond0
243iSCSI-A192.168.243.0/24—iscsia0storage9000NIC 3
244iSCSI-B192.168.244.0/24—iscsib0storage9000NIC 4
245Cluster192.168.245.0/24—clus0shared-heartbeat1500bond0
246Migration192.168.246.0/24—migr0migration9000NIC 3
247Replication192.168.247.0/24.1 (routed to the DR site)repl0replication1500NIC 4
248Backup192.168.248.0/24—bkup0backup9000NIC 4
249Cockpit HA192.168.249.0/24—none (VM only)—1500bond0
250Virtual Network tunnel192.168.250.0/24—tep0 (later)—1500bond0
100–199VM networksPer networkOn the routernone (VM only)—1500bond0

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                     eno4

The design uses three kinds of vPort, all created from Network › Virtual Switch in the Vapor UI:

PortWhat it isVLAN setting
Uplink — system vPortA 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 vPortA virtual interface that gives the host an IP address on one VLAN. Carries a service tag.access with one tag.
VM port — vnetNCreated 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 modeLACPSwitch requirementUse when
active-backupoffNone 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-slboffNone; balances by source MAC and VLAN.You want both links active without switch-side link aggregation.
balance-tcpactiveAn 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 tagPurposeHow release 3.3 uses it
managementVapor UI/API, Cockpit-to-Vapor traffic, SSH.Documents the management vPort. Cockpit reaches the host at the address you register it with.
storageNFS 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-heartbeatCluster heartbeats, OCFS2/O2CB node traffic.Documentation label. You select clus0's address as the O2CB communication IP.
migrationLive-migration memory and device state.Recorded for forward compatibility. Live migration currently uses the host's management address.
replicationSite-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.
backupBackup 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)Rolemgmt (241)NFS (242)iSCSI-A (243)iSCSI-B (244)Cluster (245)Migr. (246)Repl. (247)Backup (248)
vapor-01.dc1.corp.exampleHost 1.241.11.242.11.243.11.244.11.245.11.246.11.247.11.248.11
vapor-02.dc1.corp.exampleHost 2.241.12.242.12.243.12.244.12.245.12.246.12.247.12.248.12
vapor-03.dc1.corp.exampleHost 3.241.13.242.13.243.13.244.13.245.13.246.13.247.13.248.13
NameAddressPurpose
cockpit.dc1.corp.example192.168.241.20Cockpit floating IP — the address everyone uses: https://cockpit.dc1.corp.example:7771
cockpit-01.dc1.corp.example192.168.241.21 / 192.168.249.21First appliance: operational mgmt0 address / cockpit0 HA address
cockpit-02, cockpit-03.241.22–.23 / .249.22–.23Reserved for optional control-plane HA members
Gateway, DNS, NTP192.168.241.1 · 192.168.241.5Router on VLAN 241 · DNS and NTP server
NFS server192.168.242.100Export /exports/cockpit-ds01
iSCSI array192.168.243.100 · 192.168.244.100Controller target portals on fabric A and fabric B
Admin workstation192.168.241.50Runs the Cockpit Installer and browsers
Tunnel endpoints (tep0)192.168.250.11–.13Reserved for Virtual Network, one per host

Switch Port Configuration ​

Agree the following with the network team before installation.

PortModeNative VLANAllowed VLANsMTUOther
Host NIC 1 (ToR A) and NIC 2 (ToR B)802.1Q trunk241241, 242, 245, 249, 250, 100–1999216Edge trunk, BPDU guard. Port-channel only if using LACP.
Host NIC 3 (ToR A)802.1Q trunknone243, 2469216Edge trunk, BPDU guard
Host NIC 4 (ToR B)802.1Q trunknone244, 247, 2489216Edge trunk, BPDU guard
ISL between ToR A and B802.1Q trunk—241, 242, 245, 249, 250, 100–199 (not 243/244)9216MLAG peer link if used

An example in Cisco-style syntax for one host on ToR A; translate it for your switch vendor:

text
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 9216

Why 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.

FromToPortsPurpose
Admin workstationHosts (mgmt0)TCP 7770, 3775Vapor UI/API, Cockpit Installer, SSH
Admin workstation, usersCockpit floating IP and operational IPsTCP 7771, 9090, 22Cockpit UI/API, CAMI, SSH
Cockpit appliance (mgmt0)Hosts (mgmt0)TCP 7770Host management and event stream
Host ↔ host (mgmt0)HostTCP 16514, 49152–49215, 7770Live migration (libvirt TLS and QEMU data), host-to-host API
Host ↔ host (clus0)HostTCP 7777O2CB / OCFS2 cluster
Hosts (nfs0, iscsia0, iscsib0)StorageTCP 2049 (NFS), TCP 3260 (iSCSI)Shared storage
Cockpit member ↔ member (cockpit0)Cockpit memberTCP 5432, 8008, 2379, 2380PostgreSQL replication, Patroni, etcd
Cockpit members (mgmt0)Cockpit membersIP protocol 112 (VRRP)Keepalived floating IP election
Host ↔ host (tep0, optional)HostUDP 6081, TCP 6641–6644Virtual Network: Geneve tunnels, OVN databases
AllDNS, NTPUDP/TCP 53, UDP 123Name 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.