bond / VLAN / bridge: confirming kernel modules and creating profiles measured (the non-activating path)
What you will learn
Section titled “What you will learn”How to prepare three kinds of composite networking on OL: bond (aggregation), VLAN (802.1Q) and bridge. This page completes the measurement via the safe “create profiles first, do not activate” path — equally applicable as a production-machine drill.
Kernel modules: confirm they exist first
Section titled “Kernel modules: confirm they exist first”modinfo bonding | head -2modinfo 8021q | head -2 # the VLAN moduleMeasured: both modules present in the UEK kernel (auto-loaded on demand, no manual modprobe needed — creating a VLAN/bond profile with nmcli triggers it).
bond: aggregating two links
Section titled “bond: aggregating two links”nmcli con add type bond con-name ol-bond-demo ifname bond0 \ bond.options "mode=active-backup,miimon=100" \ ipv4.method manual ipv4.addresses 192.168.50.10/24 autoconnect no
# Add slaves (a real environment uses two physical ports)nmcli con add type bond-slave con-name bond0-eth1 ifname eth1 master ol-bond-demonmcli con add type bond-slave con-name bond0-eth2 ifname eth2 master ol-bond-demoMode quick reference: active-backup (primary/backup, no switch configuration, the most common), 802.3ad (LACP, needs the switch’s cooperation), balance-tlb/alb (load balancing without switch support).
VLAN: multiple segments on one port
Section titled “VLAN: multiple segments on one port”nmcli con add type vlan con-name ol-vlan-demo ifname ens18.100 \ dev ens18 id 100 ipv4.method manual ipv4.addresses 10.100.0.5/24 autoconnect noifname names physicalport.VLANnumber, dev is the physical port, id is the VLAN tag. Measured: after creation, nmcli con show sees it while ens18 traffic continues uninterrupted.
bridge: the switching layer for VMs/containers
Section titled “bridge: the switching layer for VMs/containers”nmcli con add type bridge con-name br0 ifname br0 ipv4.method autonmcli con add type bridge-slave ifname eth1 master br0KVM/libvirt hosts use a bridge to give VMs direct layer-2 access (see the virtualization page); in container scenarios podman’s bridge network manages itself — no manual bridge needed.
The safe workflow (a production-machine must)
Section titled “The safe workflow (a production-machine must)”- Build every profile (autoconnect=no);
- Verify each with
nmcli con show(UUID/interface/parameters); - Back up the currently working profiles (
cp /etc/NetworkManager/system-connections/*.nmconnection <backup>); - Activate the new topology in one shot, keeping the PVE/out-of-band console as the rollback insurance;
- If it fails:
nmcli con down <new>+nmcli con up <old>to restore.
Evidence and limits on this page
Section titled “Evidence and limits on this page”- Measured: module presence confirmation, bond/VLAN profile creation and cleanup (the non-activating path) (E3);
- Not measured: real activation and traffic verification (needs a dual-NIC environment; to be recorded after booting a dual-port VM on PVE);
- Sources:
nmcli-examples(7)(including the official bond/vlan/bridge examples), OL10 networking documentation.