Bonding
$ sudo modprobe bonding $ ip link help bond $ sudo ip link add bond0 type bond mode 802.3ad $ sudo ip link set eth0 master bond0 $ sudo ip link set eth1 master bond0
Bridging: vlans + trunks
ip neigh show // l2 table ip route show // l3 table ip route add default via 192.168.1.1 dev eth1 sudo modprobe 8021q // create bridge and add links to bridge (switch) sudo ip link add br0 type bridge vlan_filtering 1 // native vlan = 1 sudo ip link set eth1 master br0 sudo ip link set eth2 master br0 sudo ip link set eth3 master br0 // make eth1 access port for v11 sudo bridge vlan add dev eth1 vid 11 pvid untagged // make eth3 access port for v12 sudo bridge vlan add dev eth3 vid 12 pvid untagged // make eth2 trunk port for v11 and v12 sudo bridge vlan add dev eth2 vid 11 sudo bridge vlan add dev eth2 vid 12 // enable bridge and links sudo ip link set up dev br0 sudo ip link set up dev eth1 sudo ip link set up dev eth2 sudo ip link set up dev eth3 bridge link show bridge vlan show bridge fdb show
VxLAN
I havent tried this yet:
Linux System 1 sudo ip link add br0 type bridge vlan_filtering 1 sudo ip link add vlan10 type vlan id 10 link bridge protocol none sudo ip addr add 10.0.0.1/24 dev vlan10 sudo ip link add vtep10 type vxlan id 1010 local 10.1.0.1 remote 10.3.0.1 learning sudo ip link set eth1 master br0 sudo bridge vlan add dev eth1 vid 10 pvid untagged Linux System 2 sudo ip link add br0 type bridge vlan_filtering 1 sudo ip link add vlan10 type vlan id 10 link bridge protocol none sudo ip addr add 10.0.0.2/24 dev vlan10 sudo ip link add vtep10 type vxlan id 1010 local 10.3.0.1 remote 10.1.0.1 learning sudo ip link set eth1 master br0 sudo bridge vlan add dev eth1 vid 10 pvid untagged