Skip to content
Search Oracle Linux

    Browse this documentation

    bond / VLAN / bridge: confirming kernel modules and creating profiles measured (the non-activating path)

    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.

    /lib/modules/.../kernel/drivers/net/bonding/bonding.ko.xz
    modinfo bonding | head -2
    modinfo 8021q | head -2 # the VLAN module

    Measured: both modules present in the UEK kernel (auto-loaded on demand, no manual modprobe needed — creating a VLAN/bond profile with nmcli triggers it).

    Terminal window
    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-demo
    nmcli con add type bond-slave con-name bond0-eth2 ifname eth2 master ol-bond-demo

    Mode 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).

    Terminal window
    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 no

    ifname 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”
    Terminal window
    nmcli con add type bridge con-name br0 ifname br0 ipv4.method auto
    nmcli con add type bridge-slave ifname eth1 master br0

    KVM/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)”
    1. Build every profile (autoconnect=no);
    2. Verify each with nmcli con show (UUID/interface/parameters);
    3. Back up the currently working profiles (cp /etc/NetworkManager/system-connections/*.nmconnection <backup>);
    4. Activate the new topology in one shot, keeping the PVE/out-of-band console as the rollback insurance;
    5. If it fails: nmcli con down <new> + nmcli con up <old> to restore.
    • 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.