{"id":1863,"date":"2023-05-15T18:34:21","date_gmt":"2023-05-15T16:34:21","guid":{"rendered":"https:\/\/perso.uclouvain.be\/tom.barbette\/?p=1863"},"modified":"2023-05-15T18:34:23","modified_gmt":"2023-05-15T16:34:23","slug":"creating-a-vlan-in-netberg-710-p4-switch","status":"publish","type":"post","link":"https:\/\/perso.uclouvain.be\/tom.barbette\/creating-a-vlan-in-netberg-710-p4-switch\/","title":{"rendered":"Creating a VLAN in Netberg 710 P4 switch"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">The P4 switch has a \u201cnormal switch\u201d mode that is using SONIC and comes with a P4 dataplane compiled and flashed, nothing to compile using Tofino or whatsoever.\u00a0 This is useful when one of the switch is not used for an experiment and you want to simply wire machines virtually.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Creating a L2 bridge or a VLAN<\/strong>&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">By default, the switch boots with all interface in Router mode. They have (random 10.0&#8230;) IPs. To use those interface as a switch, you must remove the IPs before adding them to&nbsp;a vlan or you will get the error \u201cEthernet0 is a router interface\u201d&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">$ show ip interfaces&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Interface&nbsp;&nbsp;&nbsp; Master&nbsp;&nbsp;&nbsp; IPv4 address\/mask&nbsp;&nbsp;&nbsp; Admin\/Oper&nbsp;&nbsp;&nbsp; BGP Neighbor&nbsp;&nbsp;&nbsp; Neighbor IP&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&#8212;&#8212;&#8212;&#8211;&nbsp; &#8212;&#8212;&#8211;&nbsp; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-&nbsp; &#8212;&#8212;&#8212;&#8212;&nbsp; &#8212;&#8212;&#8212;&#8212;&#8211;&nbsp; &#8212;&#8212;&#8212;&#8212;-&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u2026&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Ethernet8&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 10.0.0.4\/31&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; up\/down&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ARISTA03T2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 10.0.0.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Ethernet12&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 10.0.0.6\/31&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; up\/down&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ARISTA04T2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 10.0.0.7&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&#8230;&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Remove all IPv4 IPs from the interface with, for instance&#8230;&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">$ sudo config interface ip remove Ethernet0 10.0.0.0\/31&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Then, disable IPv6 link-local addresses with :&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">$ sudo config ipv6 disable link-local&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">And for each interface :&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">$ sudo config interface ipv6 disable use-link-local-only Ethernet0&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Then save the config and reboot as the IPv6 link local will stay&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">$ sudo config save \u2013y&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">$ sudo reboot&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">After a reboot, create the Vlan with :&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">$ sudo config vlan add 10&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">And add interfaces with :&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">$ sudo config vlan member add -u 10 Ethernet0&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Personally, I saved and rebooted again afterward but it might have not be working beforehand due to an interface reset on the machines.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The P4 switch has a \u201cnormal switch\u201d mode that is using SONIC and comes with a P4 dataplane compiled and flashed, nothing to compile using Tofino or whatsoever.\u00a0 This is useful when one of the switch is not used for an experiment and you want to simply wire machines virtually. Creating a L2 bridge or &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/perso.uclouvain.be\/tom.barbette\/creating-a-vlan-in-netberg-710-p4-switch\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Creating a VLAN in Netberg 710 P4 switch&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15],"tags":[],"class_list":["post-1863","post","type-post","status-publish","format-standard","hentry","category-network"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Creating a VLAN in Netberg 710 P4 switch - Tom Barbette<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/perso.uclouvain.be\/tom.barbette\/creating-a-vlan-in-netberg-710-p4-switch\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Creating a VLAN in Netberg 710 P4 switch - Tom Barbette\" \/>\n<meta property=\"og:description\" content=\"The P4 switch has a \u201cnormal switch\u201d mode that is using SONIC and comes with a P4 dataplane compiled and flashed, nothing to compile using Tofino or whatsoever.\u00a0 This is useful when one of the switch is not used for an experiment and you want to simply wire machines virtually. Creating a L2 bridge or &hellip; Continue reading &quot;Creating a VLAN in Netberg 710 P4 switch&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/perso.uclouvain.be\/tom.barbette\/creating-a-vlan-in-netberg-710-p4-switch\/\" \/>\n<meta property=\"og:site_name\" content=\"Tom Barbette\" \/>\n<meta property=\"article:published_time\" content=\"2023-05-15T16:34:21+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-05-15T16:34:23+00:00\" \/>\n<meta name=\"author\" content=\"Tom Barbette\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@TomBarbette\" \/>\n<meta name=\"twitter:site\" content=\"@TomBarbette\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Tom Barbette\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/perso.uclouvain.be\\\/tom.barbette\\\/creating-a-vlan-in-netberg-710-p4-switch\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/perso.uclouvain.be\\\/tom.barbette\\\/creating-a-vlan-in-netberg-710-p4-switch\\\/\"},\"author\":{\"name\":\"Tom Barbette\",\"@id\":\"https:\\\/\\\/perso.uclouvain.be\\\/tom.barbette\\\/#\\\/schema\\\/person\\\/7f791766092e1207bc7a94a65e74f4fd\"},\"headline\":\"Creating a VLAN in Netberg 710 P4 switch\",\"datePublished\":\"2023-05-15T16:34:21+00:00\",\"dateModified\":\"2023-05-15T16:34:23+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/perso.uclouvain.be\\\/tom.barbette\\\/creating-a-vlan-in-netberg-710-p4-switch\\\/\"},\"wordCount\":348,\"publisher\":{\"@id\":\"https:\\\/\\\/perso.uclouvain.be\\\/tom.barbette\\\/#organization\"},\"articleSection\":[\"Network\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/perso.uclouvain.be\\\/tom.barbette\\\/creating-a-vlan-in-netberg-710-p4-switch\\\/\",\"url\":\"https:\\\/\\\/perso.uclouvain.be\\\/tom.barbette\\\/creating-a-vlan-in-netberg-710-p4-switch\\\/\",\"name\":\"Creating a VLAN in Netberg 710 P4 switch - Tom Barbette\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/perso.uclouvain.be\\\/tom.barbette\\\/#website\"},\"datePublished\":\"2023-05-15T16:34:21+00:00\",\"dateModified\":\"2023-05-15T16:34:23+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/perso.uclouvain.be\\\/tom.barbette\\\/creating-a-vlan-in-netberg-710-p4-switch\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/perso.uclouvain.be\\\/tom.barbette\\\/creating-a-vlan-in-netberg-710-p4-switch\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/perso.uclouvain.be\\\/tom.barbette\\\/creating-a-vlan-in-netberg-710-p4-switch\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/perso.uclouvain.be\\\/tom.barbette\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Creating a VLAN in Netberg 710 P4 switch\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/perso.uclouvain.be\\\/tom.barbette\\\/#website\",\"url\":\"https:\\\/\\\/perso.uclouvain.be\\\/tom.barbette\\\/\",\"name\":\"Tom Barbette\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/perso.uclouvain.be\\\/tom.barbette\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/perso.uclouvain.be\\\/tom.barbette\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/perso.uclouvain.be\\\/tom.barbette\\\/#organization\",\"name\":\"Efficiency of Networked Systems Group\",\"url\":\"https:\\\/\\\/perso.uclouvain.be\\\/tom.barbette\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/perso.uclouvain.be\\\/tom.barbette\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/perso.uclouvain.be\\\/tom.barbette\\\/wp-content\\\/uploads\\\/2022\\\/04\\\/cropped-logo-uclouvain-2021-barbette.png\",\"contentUrl\":\"https:\\\/\\\/perso.uclouvain.be\\\/tom.barbette\\\/wp-content\\\/uploads\\\/2022\\\/04\\\/cropped-logo-uclouvain-2021-barbette.png\",\"width\":512,\"height\":512,\"caption\":\"Efficiency of Networked Systems Group\"},\"image\":{\"@id\":\"https:\\\/\\\/perso.uclouvain.be\\\/tom.barbette\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/x.com\\\/TomBarbette\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/tom-barbette\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/perso.uclouvain.be\\\/tom.barbette\\\/#\\\/schema\\\/person\\\/7f791766092e1207bc7a94a65e74f4fd\",\"name\":\"Tom Barbette\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/aecd99cba3b4d91d3775fde3219bfa362cd99acfbe95848ec303b9685f366fcd?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/aecd99cba3b4d91d3775fde3219bfa362cd99acfbe95848ec303b9685f366fcd?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/aecd99cba3b4d91d3775fde3219bfa362cd99acfbe95848ec303b9685f366fcd?s=96&r=g\",\"caption\":\"Tom Barbette\"},\"sameAs\":[\"https:\\\/\\\/www.tombarbette.be\"],\"url\":\"https:\\\/\\\/perso.uclouvain.be\\\/tom.barbette\\\/author\\\/tom\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Creating a VLAN in Netberg 710 P4 switch - Tom Barbette","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/perso.uclouvain.be\/tom.barbette\/creating-a-vlan-in-netberg-710-p4-switch\/","og_locale":"en_US","og_type":"article","og_title":"Creating a VLAN in Netberg 710 P4 switch - Tom Barbette","og_description":"The P4 switch has a \u201cnormal switch\u201d mode that is using SONIC and comes with a P4 dataplane compiled and flashed, nothing to compile using Tofino or whatsoever.\u00a0 This is useful when one of the switch is not used for an experiment and you want to simply wire machines virtually. Creating a L2 bridge or &hellip; Continue reading \"Creating a VLAN in Netberg 710 P4 switch\"","og_url":"https:\/\/perso.uclouvain.be\/tom.barbette\/creating-a-vlan-in-netberg-710-p4-switch\/","og_site_name":"Tom Barbette","article_published_time":"2023-05-15T16:34:21+00:00","article_modified_time":"2023-05-15T16:34:23+00:00","author":"Tom Barbette","twitter_card":"summary_large_image","twitter_creator":"@TomBarbette","twitter_site":"@TomBarbette","twitter_misc":{"Written by":"Tom Barbette","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/perso.uclouvain.be\/tom.barbette\/creating-a-vlan-in-netberg-710-p4-switch\/#article","isPartOf":{"@id":"https:\/\/perso.uclouvain.be\/tom.barbette\/creating-a-vlan-in-netberg-710-p4-switch\/"},"author":{"name":"Tom Barbette","@id":"https:\/\/perso.uclouvain.be\/tom.barbette\/#\/schema\/person\/7f791766092e1207bc7a94a65e74f4fd"},"headline":"Creating a VLAN in Netberg 710 P4 switch","datePublished":"2023-05-15T16:34:21+00:00","dateModified":"2023-05-15T16:34:23+00:00","mainEntityOfPage":{"@id":"https:\/\/perso.uclouvain.be\/tom.barbette\/creating-a-vlan-in-netberg-710-p4-switch\/"},"wordCount":348,"publisher":{"@id":"https:\/\/perso.uclouvain.be\/tom.barbette\/#organization"},"articleSection":["Network"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/perso.uclouvain.be\/tom.barbette\/creating-a-vlan-in-netberg-710-p4-switch\/","url":"https:\/\/perso.uclouvain.be\/tom.barbette\/creating-a-vlan-in-netberg-710-p4-switch\/","name":"Creating a VLAN in Netberg 710 P4 switch - Tom Barbette","isPartOf":{"@id":"https:\/\/perso.uclouvain.be\/tom.barbette\/#website"},"datePublished":"2023-05-15T16:34:21+00:00","dateModified":"2023-05-15T16:34:23+00:00","breadcrumb":{"@id":"https:\/\/perso.uclouvain.be\/tom.barbette\/creating-a-vlan-in-netberg-710-p4-switch\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/perso.uclouvain.be\/tom.barbette\/creating-a-vlan-in-netberg-710-p4-switch\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/perso.uclouvain.be\/tom.barbette\/creating-a-vlan-in-netberg-710-p4-switch\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/perso.uclouvain.be\/tom.barbette\/"},{"@type":"ListItem","position":2,"name":"Creating a VLAN in Netberg 710 P4 switch"}]},{"@type":"WebSite","@id":"https:\/\/perso.uclouvain.be\/tom.barbette\/#website","url":"https:\/\/perso.uclouvain.be\/tom.barbette\/","name":"Tom Barbette","description":"","publisher":{"@id":"https:\/\/perso.uclouvain.be\/tom.barbette\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/perso.uclouvain.be\/tom.barbette\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/perso.uclouvain.be\/tom.barbette\/#organization","name":"Efficiency of Networked Systems Group","url":"https:\/\/perso.uclouvain.be\/tom.barbette\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/perso.uclouvain.be\/tom.barbette\/#\/schema\/logo\/image\/","url":"https:\/\/perso.uclouvain.be\/tom.barbette\/wp-content\/uploads\/2022\/04\/cropped-logo-uclouvain-2021-barbette.png","contentUrl":"https:\/\/perso.uclouvain.be\/tom.barbette\/wp-content\/uploads\/2022\/04\/cropped-logo-uclouvain-2021-barbette.png","width":512,"height":512,"caption":"Efficiency of Networked Systems Group"},"image":{"@id":"https:\/\/perso.uclouvain.be\/tom.barbette\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/TomBarbette","https:\/\/www.linkedin.com\/in\/tom-barbette"]},{"@type":"Person","@id":"https:\/\/perso.uclouvain.be\/tom.barbette\/#\/schema\/person\/7f791766092e1207bc7a94a65e74f4fd","name":"Tom Barbette","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/aecd99cba3b4d91d3775fde3219bfa362cd99acfbe95848ec303b9685f366fcd?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/aecd99cba3b4d91d3775fde3219bfa362cd99acfbe95848ec303b9685f366fcd?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/aecd99cba3b4d91d3775fde3219bfa362cd99acfbe95848ec303b9685f366fcd?s=96&r=g","caption":"Tom Barbette"},"sameAs":["https:\/\/www.tombarbette.be"],"url":"https:\/\/perso.uclouvain.be\/tom.barbette\/author\/tom\/"}]}},"_links":{"self":[{"href":"https:\/\/perso.uclouvain.be\/tom.barbette\/wp-json\/wp\/v2\/posts\/1863","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/perso.uclouvain.be\/tom.barbette\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/perso.uclouvain.be\/tom.barbette\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/perso.uclouvain.be\/tom.barbette\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/perso.uclouvain.be\/tom.barbette\/wp-json\/wp\/v2\/comments?post=1863"}],"version-history":[{"count":1,"href":"https:\/\/perso.uclouvain.be\/tom.barbette\/wp-json\/wp\/v2\/posts\/1863\/revisions"}],"predecessor-version":[{"id":1873,"href":"https:\/\/perso.uclouvain.be\/tom.barbette\/wp-json\/wp\/v2\/posts\/1863\/revisions\/1873"}],"wp:attachment":[{"href":"https:\/\/perso.uclouvain.be\/tom.barbette\/wp-json\/wp\/v2\/media?parent=1863"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/perso.uclouvain.be\/tom.barbette\/wp-json\/wp\/v2\/categories?post=1863"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/perso.uclouvain.be\/tom.barbette\/wp-json\/wp\/v2\/tags?post=1863"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}