Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Apr 2009 23:30:43 +0200
From:      Sebastiaan van Erk <sebster@sebster.com>
To:        "Michael K. Smith - Adhost" <mksmith@adhost.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: esxi and freebsd vlans
Message-ID:  <49ECE983.9090803@sebster.com>
In-Reply-To: <17838240D9A5544AAA5FF95F8D52031605EC0B1E@ad-exh01.adhost.lan>
References:  <49EC9683.1070703@sebster.com> <17838240D9A5544AAA5FF95F8D52031605EC0B1E@ad-exh01.adhost.lan>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
Hi,

Michael K. Smith - Adhost wrote:
> Hello Sebastian:
> --------
> 
> Hi,
> 
> I ran into the ESXi limit of 4 NICs per VM, so I figured I would work 
> around this using FreeBSD's vlan devices.
> 
> I made 2 test installs with the following interface configuration:
> 
> test1:
> ifconfig em0 inet 10.10.10.1 netmask 255.255.255.0
> ifconfig vlan create
> ifconfig vlan0 inet 192.168.1.1 netmask 255.255.255.0 vlan 22 vlandev
> em0
> 
> test2:
> ifconfig em0 inet 10.10.10.2 netmask 255.255.255.0
> ifconfig vlan create
> ifconfig vlan0 inet 192.168.1.2 netmask 255.255.255.0 vlan 22 vlandev
> em0
> 
> I can ping the other machine using the 10.10.10.x IP address no problem,
> 
> but the 192.168.1.x addresses don't work. I've tried setting the vlan id
> 
> on the vSwitch to none and to 22, but in neither of the two cases does 
> it work.
> 
> --------
> [Michael K. Smith - Adhost] 
> 
> You will need to make sure the switchport facing your server is set to
> 802.1Q trunk and has VLAN 22 allowed.  The IP address on em0 itself is
> "untagged" so it will work regardless of the port settings on the
> switch. VLAN 22 has the 4-byte header attached so the other side has to
> recognize the tag.

Your reply inspired me to google 802.1Q and ESXi, and I found a document 
describing different VLAN solutions on ESXi 
(http://www.vmware.com/pdf/esx3_vlan_wp.pdf). In this document it says 
that to make guest tagging work I have to set the VLAN ID of the port 
group on the virtual switch to 4095. After I did this, the above 
configuration works.

> Regards,
> 
> Mike

Regards,
Sebastiaan

[-- Attachment #2 --]
0	*H
010	+0	*H
	Q00lS|
6$1-~j0
	*H
0b10	UZA1%0#U
Thawte Consulting (Pty) Ltd.1,0*U#Thawte Personal Freemail Issuing CA0
080630135157Z
090630135157Z0h10Uvan Erk10U*
Sebastiaan10USebastiaan van Erk1"0 	*H
	sebster@sebster.com0"0
	*H
0
Va\bEnݚa<M8ʄ^tv>x73bohi2oqS_¶Bm^p*I	x"9pt!jar#)n)^?'z<).+Ѐ4igR'UP*\Ւ,?.;?fBܯTzM IDվCK*3Yŧ
mcaztxʐsq/00.0U0sebster@sebster.com0U00
	*H
KT4W6ӽq]
tS` %f1G:HbzJj$EjE'JV~-VbVnJZE/`@@04!+T:c	پf`$Z=1#|oG[OBRG00lS|
6$1-~j0
	*H
0b10	UZA1%0#U
Thawte Consulting (Pty) Ltd.1,0*U#Thawte Personal Freemail Issuing CA0
080630135157Z
090630135157Z0h10Uvan Erk10U*
Sebastiaan10USebastiaan van Erk1"0 	*H
	sebster@sebster.com0"0
	*H
0
Va\bEnݚa<M8ʄ^tv>x73bohi2oqS_¶Bm^p*I	x"9pt!jar#)n)^?'z<).+Ѐ4igR'UP*\Ւ,?.;?fBܯTzM IDվCK*3Yŧ
mcaztxʐsq/00.0U0sebster@sebster.com0U00
	*H
KT4W6ӽq]
tS` %f1G:HbzJj$EjE'JV~-VbVnJZE/`@@04!+T:c	پf`$Z=1#|oG[OBRG0?0
0
	*H
010	UZA10UWestern Cape10U	Cape Town10U
Thawte Consulting1(0&UCertification Services Division1$0"UThawte Personal Freemail CA1+0)	*H
	personal-freemail@thawte.com0
030717000000Z
130716235959Z0b10	UZA1%0#U
Thawte Consulting (Pty) Ltd.1,0*U#Thawte Personal Freemail Issuing CA00
	*H
0Ħ<UsUNʙZhup[v:aQP
0cZ,p+Z?qV˯<6$*+w=+>@dקe*TH<a@dr`00U00CU<0:08642http://crl.thawte.com/ThawtePersonalFreemailCA.crl0U0)U"0 010UPrivateLabel2-1380
	*H
HP.
fgCL!6-6/P p<ab:~t%Pb'qW%ݩ9 Oe_N4[5MwV!x!5$F]_eO1q0m0v0b10	UZA1%0#U
Thawte Consulting (Pty) Ltd.1,0*U#Thawte Personal Freemail Issuing CAS|
6$1-~j0	+0	*H
	1	*H
0	*H
	1
090420213043Z0#	*H
	1}v}
=7HU?0_	*H
	1R0P0	`He0
*H
0*H
0
*H
@0+0
*H
(0	+71x0v0b10	UZA1%0#U
Thawte Consulting (Pty) Ltd.1,0*U#Thawte Personal Freemail Issuing CAS|
6$1-~j0*H
	1xv0b10	UZA1%0#U
Thawte Consulting (Pty) Ltd.1,0*U#Thawte Personal Freemail Issuing CAS|
6$1-~j0
	*H
x\98[2~X;4~4d캥Mt|mƌD_g(rThq(_=DB/p)k!+6aMBz<2;J7_Ww
\<Z4Ld
.E?B}oN!}8cEȒoki\\8L
y%Ս\f[uB'T+tzfw*XHX(_g|ˮ

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?49ECE983.9090803>