{"id":24,"date":"2016-02-04T08:36:05","date_gmt":"2016-02-04T08:36:05","guid":{"rendered":"https:\/\/d1m0.com\/?p=24"},"modified":"2018-03-09T16:04:09","modified_gmt":"2018-03-09T16:04:09","slug":"bond-interfaces","status":"publish","type":"post","link":"https:\/\/d1m0.com\/?p=24","title":{"rendered":"Bond Bridge interfaces. #debian"},"content":{"rendered":"<p><strong>Bond with bridge<\/strong><\/p>\n<p>auto eth0<br \/>\niface eth0 inet manual<\/p>\n<p>auto eth1<br \/>\niface eth1 inet manual<\/p>\n<p>auto bond0<br \/>\niface bond0 inet manual<br \/>\nslaves eth0 eth1<br \/>\nbond_miimon 100<br \/>\nbond_mode balance-tlb<\/p>\n<p>auto vmbr0<br \/>\niface vmbr0 inet static<br \/>\naddress 192.168.xxx.xxx<br \/>\nnetmask 255.255.255.xxx<br \/>\ngateway 192.168.xxx.xxx<br \/>\nbridge_ports bond0<br \/>\nbridge_fd 0<br \/>\n###bridge_vlan_aware yes<\/p>\n<p><strong>Bridge <\/strong><\/p>\n<pre><span id=\"line-4-1\" class=\"anchor\"><\/span>auto eth1\r\n<span id=\"line-5-1\" class=\"anchor\"><\/span>iface eth1 inet manual\r\n<span id=\"line-6-1\" class=\"anchor\"><\/span>up ip link set eth1 up\r\n<span id=\"line-7-1\" class=\"anchor\"><\/span>\r\n<span id=\"line-8-1\" class=\"anchor\"><\/span>auto br1\r\n<span id=\"line-9-1\" class=\"anchor\"><\/span>iface br1 inet manual\r\n<span id=\"line-10-1\" class=\"anchor\"><\/span>        bridge_ports eth1\r\n<span id=\"line-11-1\" class=\"anchor\"><\/span>        bridge_fd 0\r\n<span id=\"line-12-1\" class=\"anchor\"><\/span>        bridge_hello 2\r\n<span id=\"line-13-1\" class=\"anchor\"><\/span>        bridge_maxage 12\r\n<span id=\"line-14-1\" class=\"anchor\"><\/span>        bridge_stp off\r\n        address 192.168.xxx.xxx\r\n        netmask 255.255.255.xxx\r\n        gateway 192.168.xxx.xxx<span id=\"line-15-1\" class=\"anchor\"><\/span>\r\n\r\n<\/pre>\n<p>Tip: Do something when network goes on<\/p>\n<p>post-up (\u00a0 echo 1 &gt; \/sys\/devices\/virtual\/net\/$IFACE\/bridge\/multicast_querier )<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Bond with bridge auto eth0 iface eth0 inet manual auto eth1 iface eth1 inet manual auto bond0 iface bond0 inet manual slaves eth0 eth1 bond_miimon 100 bond_mode balance-tlb auto vmbr0 iface vmbr0 inet static address 192.168.xxx.xxx netmask 255.255.255.xxx gateway 192.168.xxx.xxx bridge_ports bond0 bridge_fd 0 ###bridge_vlan_aware yes Bridge auto eth1 iface eth1 inet manual up ip &#8230;<\/p>\n<p><a href=\"https:\/\/d1m0.com\/?p=24\" class=\"more-link\">Continue reading &lsquo;Bond Bridge interfaces. #debian&rsquo; &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,4],"tags":[],"class_list":["post-24","post","type-post","status-publish","format-standard","hentry","category-linux","category-networking"],"_links":{"self":[{"href":"https:\/\/d1m0.com\/index.php?rest_route=\/wp\/v2\/posts\/24","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/d1m0.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/d1m0.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/d1m0.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/d1m0.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=24"}],"version-history":[{"count":6,"href":"https:\/\/d1m0.com\/index.php?rest_route=\/wp\/v2\/posts\/24\/revisions"}],"predecessor-version":[{"id":399,"href":"https:\/\/d1m0.com\/index.php?rest_route=\/wp\/v2\/posts\/24\/revisions\/399"}],"wp:attachment":[{"href":"https:\/\/d1m0.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=24"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/d1m0.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=24"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/d1m0.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=24"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}