Networking Configuration
PiVirt networking is configured via declarative YAML blocks defining default bridges, interface mappings, 802.1Q VLAN tags, and VXLAN mesh tunnels.
Bridge Configuration
Section titled “Bridge Configuration”Basic Bridge
Section titled “Basic Bridge”network: default_bridge: "virbr0" bridges: - name: "virbr0" type: "bridge" interface: "eth0" # Optional settings stp: true forward_delay: 0 vlan_filtering: falseVLAN-Aware Bridge
Section titled “VLAN-Aware Bridge”network: bridges: - name: "vlan-bridge" type: "bridge" interface: "eth0" vlan_aware: true vlans: - id: 10 name: "management" - id: 20 name: "storage" - id: 30 name: "vm-network"VLAN Configuration
Section titled “VLAN Configuration”network: vlans: - name: "vlan10" bridge: "virbr0" vlan_id: 10 # Optional settings tagged: true priority: 100VXLAN Configuration
Section titled “VXLAN Configuration”network: vxlans: - name: "vxlan100" vni: 100 local_ip: "10.0.1.10" remote_ips: - "10.0.1.11" - "10.0.1.12" # Optional settings port: 4789 ttl: 64 learning: trueSR-IOV Configuration
Section titled “SR-IOV Configuration”network: sriov: - name: "sriov-net" pf: "eth2" vfs: 8 # Optional settings vlan: 100 qos: 10Network Defaults
Section titled “Network Defaults”network: defaults: model: "virtio" queues: 2 mtu: 1500Environment Variables
Section titled “Environment Variables”PIVIRT_PIVIRTD_NETWORK_DEFAULT_BRIDGE="virbr0"PIVIRT_PIVIRTD_NETWORK_DEFAULTS_MODEL="virtio"