{"id":2241,"date":"2018-04-09T15:36:52","date_gmt":"2018-04-09T15:36:52","guid":{"rendered":"http:\/\/www.xn--slipsprogrammr-2qb.no\/?p=2241"},"modified":"2018-04-09T15:36:52","modified_gmt":"2018-04-09T15:36:52","slug":"fedora-27-network-bridge-vlan","status":"publish","type":"post","link":"https:\/\/www.slips.pl\/?p=2241","title":{"rendered":"Fedora 27 network bridge vlan"},"content":{"rendered":"<p>I&#8217;m connecting VM&#8217;s to two nets, but I have only one physical interface on the host. So VLAN comes into play. I put my eth0 under the control of my bridge &#8220;external&#8221;, I create a vlan interface eth0.4 and put it under br-maas. Here&#8217;s a quick writeup on the files, as most examples\/tutorials from others include a bunch of settings that really aren&#8217;t needed.<\/p>\n<pre>\n#\/etc\/sysconfig\/network-scripts\/ifcfg-eth0\nTYPE=Ethernet\nDEVICE=eth0\nONBOOT=yes\nBOOTPROTO=none\nBRIDGE=br-external\n<\/pre>\n<pre>\n#\/etc\/sysconfig\/network-scripts\/ifcfg-external\nTYPE=Bridge\nDEVICE=br-external\nONBOOT=yes\nBOOTPROTO=dhcp\n<\/pre>\n<pre>\n#\/etc\/sysconfig\/network-scripts\/ifcfg-eth0.4\nTYPE=Vlan\nDEVICE=eth0.4\nVLAN=yes\nONBOOT=yes\nBOOTPROTO=none\nBRIDGE=br-maas\n<\/pre>\n<pre>\n#\/etc\/sysconfig\/network-scripts\/ifcfg-maas\nTYPE=Bridge\nDEVICE=br-maas\nONBOOT=yes\nBOOTPROTO=none\n\n#IPADDR=172.16.0.33\n#NETMASK=255.255.255.0\n<\/pre>\n<p>Now you can connect your VMs to the bridges, and optionally add an IP for the host to access the net as well.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m connecting VM&#8217;s to two nets, but I have only one physical interface on the host. So VLAN comes into play. I put my eth0 under the control of my bridge &#8220;external&#8221;, I create a vlan interface eth0.4 and put it under br-maas. Here&#8217;s a quick writeup on the files, as most examples\/tutorials from others &hellip; <a href=\"https:\/\/www.slips.pl\/?p=2241\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Fedora 27 network bridge vlan<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2241","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.slips.pl\/index.php?rest_route=\/wp\/v2\/posts\/2241","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.slips.pl\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.slips.pl\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.slips.pl\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.slips.pl\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2241"}],"version-history":[{"count":0,"href":"https:\/\/www.slips.pl\/index.php?rest_route=\/wp\/v2\/posts\/2241\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.slips.pl\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2241"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.slips.pl\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2241"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.slips.pl\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2241"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}