{"id":806,"date":"2011-09-20T15:43:26","date_gmt":"2011-09-20T20:43:26","guid":{"rendered":"http:\/\/it.thelibrarie.com\/weblog\/?p=806"},"modified":"2011-09-21T14:36:32","modified_gmt":"2011-09-21T19:36:32","slug":"proxmox-vlan","status":"publish","type":"post","link":"https:\/\/it.thelibrarie.com\/weblog\/2011\/09\/proxmox-vlan\/","title":{"rendered":"Proxmox VLAN"},"content":{"rendered":"<p>Perhaps I&#8217;m just a little slow, but this one took me a while to figure out.  I know there&#8217;s a lot of documentation floating around, but none of it seemed to work for my environment.<br \/>\nI was given a Dell PowerEdge 2950 server (2.5&#8243; SAS backplane) with 8x 2.5&#8243; 147GB 10KRPM SAS drives.  It only had 16GB RAM so I upgraded to 32GB.  Set the RAID to 10 (588GB raw) and away I went.  I was also given a Cisco 2950 switch to play around with.<\/p>\n<p>First I installed vmware esxi 4.1 (I know 5.0 is already out, but I already had an older server running esxi41 and wanted to keep them roughly the same).  I then realized the free hypervisor didn&#8217;t include many features I was used to (Live migrations is huge in my book).  For shame.<\/p>\n<p>It was then that a fellow worker wanted to install Server 2008 R2 with hyper-v.  For shame.<\/p>\n<p>I like free, and I like a lot of the features of KVM, so I went with Proxmox 1.9.<\/p>\n<p>I plugged eth0 into port 21 (vlan 40) for management<br \/>\nI plugged eth1 into port 5 (trunk) for trunking<\/p>\n<p>Here&#8217;s my proxmox networking config (\/etc\/network\/interfaces)<br \/>\n* as this didn&#8217;t like my tabbing, here&#8217;s a <a href=\"http:\/\/it.thelibrarie.com\/weblog\/wp-content\/uploads\/2011\/09\/proxmox_vlan.txt\">link <\/a>to the txt file* <\/p>\n<blockquote><p># LOCALHOST<br \/>\nauto lo<br \/>\niface lo inet loopback<\/p>\n<p># INTERFACES<br \/>\niface eth0 inet manual<br \/>\niface eth1 inet manual<\/p>\n<p># PRIMARY BOND<br \/>\nauto bond0<br \/>\niface bond0 inet manual<br \/>\n        slaves eth0 eth1<br \/>\n        bond_miimon 100<br \/>\n        bond_mode 4<\/p>\n<p># SECONDARY BONDS<br \/>\nauto bond0.40<br \/>\niface bond0.40 inet manual<br \/>\n        vlan-raw-device bond0<\/p>\n<p>auto bond0.10<br \/>\niface bond0.10 inet manual<br \/>\n        vlan-raw-device bond0<\/p>\n<p>auto bond0.20<br \/>\niface bond0.20 inet manual<br \/>\n        vlan-raw-device bond0<\/p>\n<p>auto bond0.30<br \/>\niface bond0.30 inet manual<br \/>\n        vlan-raw-device bond0<\/p>\n<p># BRIDGES<br \/>\nauto vmbr0<br \/>\niface vmbr0 inet static<br \/>\n        address 10.4.0.216<br \/>\n        netmask 255.255.255.0<br \/>\n        gateway 10.4.0.5<br \/>\n        bridge_ports bond0.40<br \/>\n        bridge_stp off<br \/>\n        bridge_fd 0<\/p>\n<p>auto vmbr1<br \/>\niface vmbr1 inet manual<br \/>\n        bridge_ports bond0.10<br \/>\n        bridge_stp off<br \/>\n        bridge_fd 0<\/p>\n<p>auto vmbr2<br \/>\niface vmbr2 inet manual<br \/>\n        bridge_ports bond0.20<br \/>\n        bridge_stp off<br \/>\n        bridge_fd 0<\/p>\n<p>auto vmbr3<br \/>\niface vmbr3 inet manual<br \/>\n        bridge_ports bond0.30<br \/>\n        bridge_stp off<br \/>\n        bridge_fd 0\n<\/p><\/blockquote>\n<p>And here&#8217;s my Cisco switch configuration (just for the ports used obviously):<\/p>\n<blockquote><p>interface FastEthernet0\/5<br \/>\n description proxmox VM<br \/>\n switchport trunk allowed vlan 10,20,30,40<br \/>\n switchport mode trunk<br \/>\n spanning-tree portfast<\/p>\n<p>interface FastEthernet0\/21<br \/>\n description proxmox Management<br \/>\n switchport access vlan 40<br \/>\n spanning-tree portfast<\/p><\/blockquote>\n<p>Next I&#8217;ll be testing some iscsi server connectivity.<\/p>\n<p>Well I went ahead and ran some initial tests:<br \/>\nPOC server:<br \/>\n2.7GHz AMD x64, 4GB RAM, 160GB SATA 7200, 10\/100\/1000<\/p>\n<blockquote><p>CPU BOGOMIPS:      10772.71<br \/>\nREGEX\/SECOND:      418377<br \/>\nHD SIZE:           36.67 GB (\/dev\/mapper\/pve-root)<br \/>\nBUFFERED READS:    98.46 MB\/sec<br \/>\nAVERAGE SEEK TIME: 11.16 ms<br \/>\nFSYNCS\/SECOND:     573.28<\/p><\/blockquote>\n<p>Dell 2950 Production:<br \/>\nDual 3.16GHz Xeon (X5460), 32GB RAM, 8X 147GB SAS 10000, Dual 10\/100\/1000<\/p>\n<blockquote><p>CPU BOGOMIPS:      50539.82<br \/>\nREGEX\/SECOND:      1036781<br \/>\nHD SIZE:           94.49 GB (\/dev\/mapper\/pve-root)<br \/>\nBUFFERED READS:    282.70 MB\/sec<br \/>\nAVERAGE SEEK TIME: 5.22 ms<br \/>\nFSYNCS\/SECOND:     1998.46<\/p><\/blockquote>\n<p>Still setting up the test iSCSI<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Perhaps I&#8217;m just a little slow, but this one took me a while to figure out. I know there&#8217;s a lot of documentation floating around, but none of it seemed to work for my environment. I was given a Dell PowerEdge 2950 server (2.5&#8243; SAS backplane) with 8x 2.5&#8243; 147GB 10KRPM SAS drives. It only &hellip; <a href=\"https:\/\/it.thelibrarie.com\/weblog\/2011\/09\/proxmox-vlan\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Proxmox VLAN<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,4],"tags":[],"class_list":["post-806","post","type-post","status-publish","format-standard","hentry","category-linux","category-networking"],"_links":{"self":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/806","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/comments?post=806"}],"version-history":[{"count":5,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/806\/revisions"}],"predecessor-version":[{"id":808,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/806\/revisions\/808"}],"wp:attachment":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/media?parent=806"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/categories?post=806"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/tags?post=806"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}