Public Bridge¶
Note
Attaching nodes to a public bridge is a planned feature.
A public bridge is implemented as a layer 2 network bridged to a physical interface.
A node connected to a public bridge has its virtual interface directly bridged to a physical
interface on the host machine. IP address configuration is shared with the network of the
physical uplink interface.
Danger
Be sure you understand the security posture of lab nodes and the implication of directly attaching to the physical network before using this connectivity method.
Host Bridge¶
The host bridge joins a physical interface on the Sherpa server to a Linux bridge, so that lab nodes can be connected directly to the physical network.
- Physical NIC is a member of the bridge and has no IP address of its own.
br-sherpa0is a Linux bridge that you create on the host, for example with netplan. Create it before runningsherpad init.sherpa-bridgeis a libvirt network in bridge mode on top ofbr-sherpa0.sherpad initcreates it.
Example Configuration¶
This netplan configuration adds the physical interface enp9s0 to br-sherpa0. Replace enp9s0
with the host's physical interface.
network:
version: 2
ethernets:
enp9s0: {}
bridges:
br-sherpa0:
interfaces: [enp9s0]
parameters:
stp: false
forward-delay: 0