Bridging Interfaces on VOXL2
Let's say I want to bridge eth0 and usb0This is how I do it on the VOXL2Create your bridge (I call it br0):
ip link add br0 type bridgeBring your new bridge interface up:
ip link set br0 upAssign eth0 and usb0 to bridge interface:
ip link set dev eth0 master br0
ip link set dev usb0 master br0Precautionary measure: Flush ip addresses of eth0 and usb0 so they don't interfere with your bridge:
ip addr flush dev eth0
ip addr flush dev usb0Now, set your bridge IP (CHANGE IP to whatever you want):
ifconfig br0 192.168.144.150 netmask 255.255.255.0Done.
If you are doing this on desktop, there is probably a better way to do this where if you reboot it works and everything, if you modify stuff on /etc/network/interfaces. I however have not tried that.Also, as a note, bridging is not super secure. There are probably more secure ways to do it (edited) 5:12https://developers.redhat.com/articles/2022/04/06/introduction-linux-bridging-commands-and-features#vlan_filter
Last updated