From owner-freebsd-questions@FreeBSD.ORG Mon Apr 20 16:12:58 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3E0AB1065674 for ; Mon, 20 Apr 2009 16:12:58 +0000 (UTC) (envelope-from mksmith@adhost.com) Received: from mail-in04.adhost.com (mail-in04.adhost.com [216.211.128.134]) by mx1.freebsd.org (Postfix) with ESMTP id 250638FC1B for ; Mon, 20 Apr 2009 16:12:57 +0000 (UTC) (envelope-from mksmith@adhost.com) Received: from ad-exh01.adhost.lan (exchange.adhost.com [216.211.143.69]) by mail-in04.adhost.com (Postfix) with ESMTP id 71C07614F7D; Mon, 20 Apr 2009 09:12:57 -0700 (PDT) (envelope-from mksmith@adhost.com) X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Mon, 20 Apr 2009 09:12:56 -0700 Message-ID: <17838240D9A5544AAA5FF95F8D52031605EC0B1E@ad-exh01.adhost.lan> In-Reply-To: <49EC9683.1070703@sebster.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: esxi and freebsd vlans Thread-Index: AcnB0bB8q4HP7Vv8RA6Ik6x1fR/tzAAANoYg References: <49EC9683.1070703@sebster.com> From: "Michael K. Smith - Adhost" To: "Sebastiaan van Erk" , Cc: Subject: RE: esxi and freebsd vlans X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Apr 2009 16:12:58 -0000 Hello Sebastian: -------- Hi, I ran into the ESXi limit of 4 NICs per VM, so I figured I would work=20 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=20 it work. -------- [Michael K. Smith - Adhost]=20 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. Regards, Mike