From owner-freebsd-questions@FreeBSD.ORG Tue Aug 21 19:27:32 2007 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E94C916A418 for ; Tue, 21 Aug 2007 19:27:32 +0000 (UTC) (envelope-from mcgovern@spoon.beta.com) Received: from spoon.beta.com (spoon.beta.com [199.165.180.1]) by mx1.freebsd.org (Postfix) with ESMTP id 79E8D13C481 for ; Tue, 21 Aug 2007 19:27:32 +0000 (UTC) (envelope-from mcgovern@spoon.beta.com) Received: from spoon.beta.com (localhost.beta.com [127.0.0.1]) by spoon.beta.com (8.13.8/8.13.8) with ESMTP id l7LIu0pK014889 for ; Tue, 21 Aug 2007 14:56:00 -0400 (EDT) (envelope-from mcgovern@spoon.beta.com) Message-Id: <200708211856.l7LIu0pK014889@spoon.beta.com> To: questions@freebsd.org Date: Tue, 21 Aug 2007 14:56:00 -0400 From: "Brian J. McGovern" X-Virus-Scanned: ClamAV 0.91.1/4021/Tue Aug 21 11:42:43 2007 on spoon.beta.com X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,BAYES_00, MISSING_MID autolearn=ham version=3.2.1 X-Spam-Checker-Version: SpamAssassin 3.2.1 (2007-05-02) on spoon.beta.com Cc: Subject: if_bridge and VMware.... 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: Tue, 21 Aug 2007 19:27:33 -0000 I'm in the process of doing something that is possibly a bit out of the ordinary with VMware. I have two stand alone PCs connected to a catalyst 2900 doing 802.1q trunking. I can configure the VLAN interfaces on the stand alone PCs, assign IP addresses, and communicate happily. I then add a PC running VMware's free software offering, again set up the ethernet for 802.1q, and load FreeBSD in to a VM. Like the stand alone PCs, I can configure the vlan interface, attach it to the "hardware" interface (lnc0), configure vlan interfaces, assign IPs, and life goes happily on. However, what I want to do is add another VM to the network, which does not support 802.1q natively, so thought I could create a host only network, add the network to the FreeBSD machine and the new VM, and then bridge the VLAN interface to the new network's "hardware" interface (lnc1). To test connectivity, I initally assigned an IP to lnc1 of the FreeBSD system, and an IP to the new VM's ethernet interface. The two systems communicated fine, so far, so good. I then rebooted both boxes, configured the "vlan100" interface with: ifconfig vlan100 create vlan 100 vlandev lnc0 ifconfig vlan100 up I then changed the mtu of lnc1 to match vlan100, and brought it up: ifconfig lnc1 mtu 1496 ifconfig lnc1 up I then created the bridge, and attached the interfaces: ifconfig bridge0 create ifconfig bridge0 addm vlan100 addm lnc1 ifconfig bridge0 inet 1.1.1.10 netmask 255.255.255.0 up The stand alone hosts are 1.1.1.1 and 1.1.1.2. The other VM is 1.1.1.20. At this point, the FreeBSD system can not ping either the stand alone boxen, nor the other VM. In playing with it, if I assign an IP address to vlan100, I can reach the stand alone boxes, but not the other VM. Running trafshow, I see broadcast ARP requests on bridge0, vlan100, and lnc1, but no responses. Any thoughts about what I can look at, or what additional information would be handy? Quick ASCII art to help the discussion +-----------+------------+ | | | 1.1.1.1 1.1.1.2 | Linux Host/VMWare | | vlan100 via lnc0 (MTU 1492) FreeBSD 6.2 VM | bridge0 1.1.1.10 | lnc1 (MTU 1492) | | Test Client VM 1.1.1.20