From owner-freebsd-net@FreeBSD.ORG Tue Jan 13 14:19:22 2009 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CD7331065676 for ; Tue, 13 Jan 2009 14:19:22 +0000 (UTC) (envelope-from stefan.lambrev@moneybookers.com) Received: from blah.sun-fish.com (blah.sun-fish.com [217.18.249.150]) by mx1.freebsd.org (Postfix) with ESMTP id 185FE8FC13 for ; Tue, 13 Jan 2009 14:19:21 +0000 (UTC) (envelope-from stefan.lambrev@moneybookers.com) Received: by blah.sun-fish.com (Postfix, from userid 1002) id 402DA1B11612; Tue, 13 Jan 2009 15:03:08 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on malcho.cmotd.com X-Spam-Level: X-Spam-Status: No, score=-10.6 required=5.0 tests=ALL_TRUSTED,BAYES_00, HTML_MESSAGE autolearn=ham version=3.2.5 Received: from hater.cmotd.com (hater.cmotd.com [192.168.3.125]) by blah.sun-fish.com (Postfix) with ESMTP id B626E1B1160F; Tue, 13 Jan 2009 15:03:04 +0100 (CET) Message-Id: From: Stefan Lambrev To: Eitan Shefi In-Reply-To: <5D49E7A8952DC44FB38C38FA0D758EAD0173629B@mtlexch01.mtl.com> Mime-Version: 1.0 (Apple Message framework v930.3) Date: Tue, 13 Jan 2009 16:03:04 +0200 References: <5D49E7A8952DC44FB38C38FA0D758EAD0173629B@mtlexch01.mtl.com> X-Mailer: Apple Mail (2.930.3) X-Virus-Scanned: ClamAV 0.94/8857/Tue Jan 13 08:35:27 2009 on blah.cmotd.com X-Virus-Status: Clean Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-net@freebsd.org Subject: Re: When configuring 2 VLANs to be on the same subnet, only one works. X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Jan 2009 14:19:23 -0000 Greetings, For me your configuration looks invalid. Try with netmask 255.255.0.0 The question here is why freebsd allow this. On Jan 13, 2009, at 3:09 PM, Eitan Shefi wrote: > I'm testing a NIC driver. > I use 2 directly connected FreeBSD-7.0 hosts. > When I create 2 VLANs for the same interface (mtnic0), on each host, > and > configure the VLANs on each host to be on the same subnet: > ping works only to one of the VLANs. > > I run: > On sw259: > /sbin/ifconfig vlan1 create vlan 1 vlandev mtnic0 > /sbin/ifconfig vlan2 create vlan 2 vlandev mtnic0 > /sbin/ifconfig vlan1 91.154.12.5 netmask 255.0.0.0 > /sbin/ifconfig vlan2 91.155.12.5 netmask 255.0.0.0 > > On sw260: > /sbin/ifconfig vlan1 create vlan 1 vlandev mtnic0 > /sbin/ifconfig vlan2 create vlan 2 vlandev mtnic0 > /sbin/ifconfig vlan1 91.154.12.6 netmask 255.0.0.0 > /sbin/ifconfig vlan2 91.155.12.6 netmask 255.0.0.0 > > Now on sw259 run: > ping 91.154.12.6 - works. > ping 91.155.12.6 - does not work. > > I saw the same behavior also when running via a different NIC. > > > Is this expected ? > > > Thanks, > Eitan. > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" -- Best Wishes, Stefan Lambrev ICQ# 24134177