{"id":724,"date":"2023-11-15T15:37:48","date_gmt":"2023-11-15T20:37:48","guid":{"rendered":"http:\/\/csic.som.emory.edu\/~lzhou\/blogs\/?p=724"},"modified":"2023-11-15T15:37:48","modified_gmt":"2023-11-15T20:37:48","slug":"using-sonic-to-run-msn2100-switch","status":"publish","type":"post","link":"https:\/\/csic.som.emory.edu\/~lzhou\/blogs\/?p=724","title":{"rendered":"Using SONiC to run MSN2100 switch"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The Mellanox\/NVidia MSN2100 switch came with a bare ONIE system and is not Plug and Play.  NVidia service can not provide setting up assistance without a ONYX\/\/Cumulus\/SONiC entitlement.  I installed the community version of SONiC from sonic.software for <a href=\"https:\/\/artprodcus3.artifacts.visualstudio.com\/Af91412a5-a906-4990-9d7c-f697b81fc04d\/be1b070f-be15-4154-aade-b1d3bfb17054\/_apis\/artifact\/cGlwZWxpbmVhcnRpZmFjdDovL21zc29uaWMvcHJvamVjdElkL2JlMWIwNzBmLWJlMTUtNDE1NC1hYWRlLWIxZDNiZmIxNzA1NC9idWlsZElkLzQxMTE4MC9hcnRpZmFjdE5hbWUvc29uaWMtYnVpbGRpbWFnZS5tZWxsYW5veA2\/content?format=file&amp;subpath=\/target\/sonic-mellanox.bin\">sonic-mellanox.bin<\/a>.  <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">After the installation, the switch is automatically configured with all 16 ports as routers with a preset IP from 10.0.0.0 to 10.0.0.30.  This rendered the switch useless since no two ports can talk with each other.  <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The following steps resolved the issue and made it a normal dummy switch:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Once log in the management interface:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Step 1: sudo bash # to bring a root interface;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Step 2: config vlan add 100 # This create a vlan;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Step 3: config interface ip remove Ethernet0 10.0.0.0 # do this to all 16 interfaces to remove their router status;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Step 4: config vlan member add 100 -u Ethernet0 # do this to all 16 interfaces to group all ports to a vlan;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Step 5: config clock timezone America\/New_York # set time zone of the switch;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Step 6: config clock YYYY-MM-DD HH:MM:SS # set time;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Step 7: cp \/etc\/sonic\/config_db.json ~\/ # make a backup of the initial configuration;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Step 8: config save -y # save current configuration;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Step 9: reboot<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Then you will get a working switch.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Certainly, do not forget to reset the management password and management port (eth0) ip.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Enjoy.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Mellanox\/NVidia MSN2100 switch came with a bare ONIE system and is not Plug and Play. NVidia service can not provide setting up assistance without a ONYX\/\/Cumulus\/SONiC entitlement. I installed the community version of SONiC from sonic.software for sonic-mellanox.bin. After the installation, the switch is automatically configured with all 16 ports as routers with a [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21,3],"tags":[],"class_list":["post-724","post","type-post","status-publish","format-standard","hentry","category-computer-tips","category-mri-technical-support","post-blog"],"_links":{"self":[{"href":"https:\/\/csic.som.emory.edu\/~lzhou\/blogs\/index.php?rest_route=\/wp\/v2\/posts\/724","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/csic.som.emory.edu\/~lzhou\/blogs\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/csic.som.emory.edu\/~lzhou\/blogs\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/csic.som.emory.edu\/~lzhou\/blogs\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/csic.som.emory.edu\/~lzhou\/blogs\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=724"}],"version-history":[{"count":1,"href":"https:\/\/csic.som.emory.edu\/~lzhou\/blogs\/index.php?rest_route=\/wp\/v2\/posts\/724\/revisions"}],"predecessor-version":[{"id":725,"href":"https:\/\/csic.som.emory.edu\/~lzhou\/blogs\/index.php?rest_route=\/wp\/v2\/posts\/724\/revisions\/725"}],"wp:attachment":[{"href":"https:\/\/csic.som.emory.edu\/~lzhou\/blogs\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=724"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/csic.som.emory.edu\/~lzhou\/blogs\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=724"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/csic.som.emory.edu\/~lzhou\/blogs\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=724"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}