Bridge with netctl
Related articles
Installation
Install the netctl package from the official repositories.
Configuration
- Copy
/etc/netctl/examples/bridgeto/etc/netctl/bridge. - In this example, we create a bridge called
br0which has real Ethernet adaptereth0and (optionally) a tap devicetap0connected to it. Of course, editbr0,eth0andtap0to your needs.
/etc/netctl/bridge
Description="Example Bridge connection" Interface=br0 Connection=bridge BindsToInterfaces=(eth0 tap0) IP=dhcp
- This example creates a statically assigned bridge called
br0which has real Ethernet adaptereth0connected to it. EditInterface,BindsToInterfaces,Address, andGatewayto your needs.
/etc/netctl/bridge
Description="Example Bridge connection" Interface=br0 Connection=bridge BindsToInterfaces=(eth0) IP=static Address='192.168.10.20/24' Gateway='192.168.10.200' ## Ignore (R)STP and immediately activate the bridge SkipForwardingDelay=yes
- You can bridge any combination of network devices editing
BindsToInterfacesoption. - If any of the bridged devices (e.g.
eth0,tap0) had dhcpcd enabled, stop and disable thedhcpcd@eth0.servicedaemon. Or setIP=noto the netctl profiles. - Finally, start and enable your
/etc/netctl/bridge.