Bridge with netctl

Copy /etc/netctl/examples/bridge to /etc/netctl/bridge.

Make sure netctl is installed.

In this example, we create a bridge called br0 which has real Ethernet adapter and (optionally) a tap device connected to it. Of course, edit br0, and to your needs.

This example creates a statically assigned bridge called br0 which has real Ethernet adapter connected to it. Edit , , , and to your needs.

 /etc/netctl/bridge
Description="Example Bridge connection"
Interface=br0
Connection=bridge
BindsToInterfaces=(eth0)
MACAddress=eth0
IP=static
Address='192.168.10.20/24'
Gateway='192.168.10.200'
## Ignore (R)STP and immediately activate the bridge
SkipForwardingDelay=yes
Tip: If you are using static IP, see netctl(1), and also edit /etc/resolv.conf if necessary.

You can bridge any combination of network devices editing option.

If any of the bridged devices (e.g. , ) had dhcpcd enabled, stop and disable the daemon. Or set to the netctl profiles.

Finally, start and enable your /etc/netctl/bridge.

This article is issued from Archlinux. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.