{"id":51,"date":"2020-07-04T23:22:06","date_gmt":"2020-07-04T23:22:06","guid":{"rendered":"https:\/\/www.f-bit.net\/?p=51"},"modified":"2020-07-04T23:22:06","modified_gmt":"2020-07-04T23:22:06","slug":"debian-networking-with-vlans","status":"publish","type":"post","link":"https:\/\/www.f-bit.net\/?p=51","title":{"rendered":"Debian Networking With Vlans"},"content":{"rendered":"\n<p>So, here&#8217;s a q-in-q subinterface. If you just want the single vlan instead of a vlan stack, just leave the second line out and apply the ip address to eno2.123 instead (your interface names may be different, look at &#8220;ip link list&#8221; to see them)<\/p>\n\n\n\n<p>ip link add name eno2.123 link eno2 type vlan proto 802.1q id 123<br>ip link add name eno2.123.456 link eno2.123 type vlan proto 802.1q id 456<br>ip addr add 10.1.2.3\/24 dev eno2.123.456<\/p>\n","protected":false},"excerpt":{"rendered":"<p>So, here&#8217;s a q-in-q subinterface. If you just want the single vlan instead of a vlan stack, just leave the second line out and apply the ip address to eno2.123 instead (your interface names may be different, look at &#8220;ip link list&#8221; to see them) ip link add name eno2.123 link eno2 type vlan proto [&hellip;]<\/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-51","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.f-bit.net\/index.php?rest_route=\/wp\/v2\/posts\/51","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.f-bit.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.f-bit.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.f-bit.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.f-bit.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=51"}],"version-history":[{"count":1,"href":"https:\/\/www.f-bit.net\/index.php?rest_route=\/wp\/v2\/posts\/51\/revisions"}],"predecessor-version":[{"id":52,"href":"https:\/\/www.f-bit.net\/index.php?rest_route=\/wp\/v2\/posts\/51\/revisions\/52"}],"wp:attachment":[{"href":"https:\/\/www.f-bit.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=51"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.f-bit.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=51"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.f-bit.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=51"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}