From owner-freebsd-net@FreeBSD.ORG Tue Jan 13 13:36:31 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 8BC251065670 for ; Tue, 13 Jan 2009 13:36:31 +0000 (UTC) (envelope-from eitans@mellanox.co.il) Received: from mellanox.co.il (mail.mellanox.co.il [194.90.237.43]) by mx1.freebsd.org (Postfix) with ESMTP id BF5648FC1B for ; Tue, 13 Jan 2009 13:36:30 +0000 (UTC) (envelope-from eitans@mellanox.co.il) Received: from Internal Mail-Server by MTLPINE1 (envelope-from eitans@mellanox.co.il) with SMTP; 13 Jan 2009 15:09:46 +0200 Content-class: urn:content-classes:message MIME-Version: 1.0 X-MimeOLE: Produced By Microsoft Exchange V6.5 Date: Tue, 13 Jan 2009 15:09:11 +0200 Message-ID: <5D49E7A8952DC44FB38C38FA0D758EAD0173629B@mtlexch01.mtl.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: When configuring 2 VLANs to be on the same subnet, only one works. Thread-Index: Acl1gCBZG2HxXxCuQrOAz+bjPdf4vg== From: "Eitan Shefi" To: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: 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 13:36:31 -0000 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. =20 I run: On sw259:=20 /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 =20 On sw260:=20 /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 =20 Now on sw259 run:=20 ping 91.154.12.6 - works.=20 ping 91.155.12.6 - does not work.=20 =20 I saw the same behavior also when running via a different NIC. =20 =20 Is this expected ? =20 =20 Thanks, Eitan.