{"id":3761,"date":"2015-05-13T08:31:43","date_gmt":"2015-05-13T08:31:43","guid":{"rendered":"http:\/\/blog.bachi.net\/?p=3761"},"modified":"2015-05-13T09:18:23","modified_gmt":"2015-05-13T09:18:23","slug":"freebsd-vlan","status":"publish","type":"post","link":"https:\/\/blog.bachi.net\/?p=3761","title":{"rendered":"FreeBSD VLAN"},"content":{"rendered":"<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n# ifconfig {vlan-name} create\r\n\r\nTo associate the VLAN interface with a physical interface and assign a VLAN ID, IP address, and netmask:\r\n# ifconfig {vlan-name} {ip-address} netmask {subnet-mask} vlan {vlan-id} vlandev {physical-interface}\r\n\r\nThe following examples, all packets will be marked on egress with 802.1Q VLAN tags, specifying a VLAN ID of 5:\r\n# ifconfig vlan5 10.0.0.1 netmask 255.255.255.0 vlan 5 vlandev em0\r\n\r\nTo remove a VLAN interface, enter:\r\n# ifconfig {vlan-name} destroy\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p># ifconfig {vlan-name} create To associate the VLAN interface with a physical interface and assign a VLAN ID, IP address, and netmask: # ifconfig {vlan-name} {ip-address} netmask {subnet-mask} vlan {vlan-id} vlandev {physical-interface} The following examples, all packets will be marked on egress with 802.1Q VLAN tags, specifying a VLAN ID of 5: # ifconfig vlan5 [&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-3761","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts\/3761","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3761"}],"version-history":[{"count":1,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts\/3761\/revisions"}],"predecessor-version":[{"id":3762,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts\/3761\/revisions\/3762"}],"wp:attachment":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3761"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3761"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3761"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}