{"id":328,"date":"2020-07-21T17:39:00","date_gmt":"2020-07-21T16:39:00","guid":{"rendered":"https:\/\/blog.thomarite.uk\/?p=328"},"modified":"2020-07-21T17:39:00","modified_gmt":"2020-07-21T16:39:00","slug":"linux-networking-bonding-bridging-vxlan","status":"publish","type":"post","link":"https:\/\/blog.thomarite.uk\/index.php\/2020\/07\/21\/linux-networking-bonding-bridging-vxlan\/","title":{"rendered":"Linux Networking &#8211; Bonding\/Bridging\/VxLAN"},"content":{"rendered":"\n<h3 class=\"wp-block-heading\">Bonding<\/h3>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo modprobe bonding\n$ ip link help bond\n$ sudo ip link add bond0 type bond mode 802.3ad\n$ sudo ip link set eth0 master bond0\n$ sudo ip link set eth1 master bond0<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Bridging: vlans + trunks<\/h3>\n\n\n\n<pre class=\"wp-block-preformatted\">ip neigh show \/\/ l2 table\nip route show \/\/ l3 table\n\nip route add default via 192.168.1.1 dev eth1\n\nsudo modprobe 8021q\n\n\/\/ create bridge and add links to bridge (switch)\nsudo ip link add br0 type bridge vlan_filtering 1 \/\/ native vlan = 1\nsudo ip link set eth1 master br0\nsudo ip link set eth2 master br0\nsudo ip link set eth3 master br0\n\n\/\/ make eth1 access port for v11\nsudo bridge vlan add dev eth1 vid 11 pvid untagged\n\n\/\/ make eth3 access port for v12\nsudo bridge vlan add dev eth3 vid 12 pvid untagged\n\n\/\/ make eth2 trunk port for v11 and v12\nsudo bridge vlan add dev eth2 vid 11\nsudo bridge vlan add dev eth2 vid 12\n\n\/\/ enable bridge and links\nsudo ip link set up dev br0\nsudo ip link set up dev eth1\nsudo ip link set up dev eth2\nsudo ip link set up dev eth3\n\nbridge link show\nbridge vlan show\nbridge fdb show<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">VxLAN<\/h3>\n\n\n\n<p>I havent tried this yet:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Linux System 1\n  sudo ip link add br0 type bridge vlan_filtering 1\n  sudo ip link add vlan10 type vlan id 10 link bridge protocol none\n  sudo ip addr add 10.0.0.1\/24 dev vlan10\n  sudo ip link add vtep10 type vxlan id 1010 local 10.1.0.1 remote 10.3.0.1 learning\n  sudo ip link set eth1 master br0\n  sudo bridge vlan add dev eth1 vid 10 pvid untagged\n\nLinux System 2\n  sudo ip link add br0 type bridge vlan_filtering 1\n  sudo ip link add vlan10 type vlan id 10 link bridge protocol none\n  sudo ip addr add 10.0.0.2\/24 dev vlan10\n  sudo ip link add vtep10 type vxlan id 1010 local 10.3.0.1 remote 10.1.0.1 learning\n  sudo ip link set eth1 master br0\n  sudo bridge vlan add dev eth1 vid 10 pvid untagged<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>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 &hellip; <a href=\"https:\/\/blog.thomarite.uk\/index.php\/2020\/07\/21\/linux-networking-bonding-bridging-vxlan\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Linux Networking &#8211; Bonding\/Bridging\/VxLAN&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,2],"tags":[],"class_list":["post-328","post","type-post","status-publish","format-standard","hentry","category-unix","category-networks"],"_links":{"self":[{"href":"https:\/\/blog.thomarite.uk\/index.php\/wp-json\/wp\/v2\/posts\/328","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.thomarite.uk\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.thomarite.uk\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.thomarite.uk\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.thomarite.uk\/index.php\/wp-json\/wp\/v2\/comments?post=328"}],"version-history":[{"count":1,"href":"https:\/\/blog.thomarite.uk\/index.php\/wp-json\/wp\/v2\/posts\/328\/revisions"}],"predecessor-version":[{"id":329,"href":"https:\/\/blog.thomarite.uk\/index.php\/wp-json\/wp\/v2\/posts\/328\/revisions\/329"}],"wp:attachment":[{"href":"https:\/\/blog.thomarite.uk\/index.php\/wp-json\/wp\/v2\/media?parent=328"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.thomarite.uk\/index.php\/wp-json\/wp\/v2\/categories?post=328"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.thomarite.uk\/index.php\/wp-json\/wp\/v2\/tags?post=328"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}