{"id":180,"date":"2010-10-28T17:01:46","date_gmt":"2010-10-28T21:01:46","guid":{"rendered":"http:\/\/enterpriseadmins.org\/blog\/?p=180"},"modified":"2010-10-28T17:01:46","modified_gmt":"2010-10-28T21:01:46","slug":"working-with-vlans-in-linux","status":"publish","type":"post","link":"https:\/\/enterpriseadmins.org\/blog\/virtualization\/working-with-vlans-in-linux\/","title":{"rendered":"Working with VLANs in Linux"},"content":{"rendered":"<p>I was recently working with a Dell PowerEdge M610 blade server that had a processor problem.  During troubleshooting steps, Dell requested a DSET report from my ESXi host.  I knew this wouldn&#8217;t be a problem as I could use the live boot CD (<a href=\"http:\/\/www.virtu-al.net\/2010\/03\/05\/another-reason-to-upgrade-to-esxi\/\">described here<\/a>).  <\/p>\n<p>After I booted the live CD I was able to run the requested DSET report.  However, once I had the report I needed network connectivity to get it out of the live CD environment.  The problem is that my network adapters only have 802.1Q VLAN tagged interfaces.  To access the network I needed to specify the VLAN ID.  This is a very common configuration for ESX\/ESXi hosts, but I wasn&#8217;t sure how to make it work in the live CD Linux. This wouldn&#8217;t be a very complicated configuration for a Linux guy, but as a Windows admin it took me a few minutes to figure out.  After some googling, I came up with the following:<\/p>\n<pre>\r\nvconfig add eth0 55\r\nifconfig eth0.55 10.55.0.20 netmask 255.255.255.0 broadcast 10.55.0.255 up\r\nroute add default gw 10.55.0.1 eth0.55\r\n<\/pre>\n<p><em>(Assuming that my interface is eth0, the VLAN ID is 55, the subnet is 10.55.0.0\/24, I wish to assign the address 10.55.0.20 and the default gateway is 10.55.0.1)<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I was recently working with a Dell PowerEdge M610 blade server that had a processor problem. During troubleshooting steps, Dell requested a DSET report from my ESXi host. I knew this wouldn&#8217;t be a problem as I could use the &hellip; <a href=\"https:\/\/enterpriseadmins.org\/blog\/virtualization\/working-with-vlans-in-linux\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":6,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[4],"tags":[],"class_list":["post-180","post","type-post","status-publish","format-standard","hentry","category-virtualization"],"_links":{"self":[{"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/posts\/180","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/comments?post=180"}],"version-history":[{"count":3,"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/posts\/180\/revisions"}],"predecessor-version":[{"id":183,"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/posts\/180\/revisions\/183"}],"wp:attachment":[{"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/media?parent=180"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/categories?post=180"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/tags?post=180"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}