From owner-freebsd-net@FreeBSD.ORG Thu Jun 14 01:29:32 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5405516A400 for ; Thu, 14 Jun 2007 01:29:32 +0000 (UTC) (envelope-from freebsd-net@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id CDFBD13C447 for ; Thu, 14 Jun 2007 01:29:26 +0000 (UTC) (envelope-from freebsd-net@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Hycge-0001kK-S5 for freebsd-net@freebsd.org; Thu, 14 Jun 2007 01:55:40 +0200 Received: from 78-1-84-209.adsl.net.t-com.hr ([78.1.84.209]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 14 Jun 2007 01:55:40 +0200 Received: from ivoras by 78-1-84-209.adsl.net.t-com.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 14 Jun 2007 01:55:40 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-net@freebsd.org From: Ivan Voras Date: Thu, 14 Jun 2007 01:55:20 +0200 Lines: 65 Message-ID: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigF4678ADB2738186B0727E09C" X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 78-1-84-209.adsl.net.t-com.hr User-Agent: Thunderbird 1.5.0.12 (Windows/20070509) X-Enigmail-Version: 0.94.3.0 Sender: news Subject: VLANs and routing 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: Thu, 14 Jun 2007 01:29:32 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigF4678ADB2738186B0727E09C Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi! I have a question that's accidentally connected with VLANs, but I think it's generally routing related. The situation is : machine1 VLAN 400 on fxp1 <-- network --> machine2, VLAN 400 on em0 The interfaces on both machines are called vlan400. If I assign "normal" IP addresses on both ends, e.g. 10.10.0.10/24 on vlan400 on machine1 and 10.10.0.11/24 on vlan400 on machine2, everything's fine, I can ping each other through VLAN 400. But the (somewhat weird) requirements are that the vlan interface on machine1 shouldn't have assigned IP address, but the second one should. So, I've removed the IP from vlan400 on machine1, and added a static host route to 10.0.0.11 via vlan400. Now, when I ping 10.10.0.11 I get th= is: PING 10.10.0.11 (10.10.0.11): 56 data bytes ping: sendto: Invalid argument ping: sendto: Invalid argument The (excerpt from) route table with assigned IP address on machine1 (first case) looks like: 10.10/24 link#70 UC 0 0 1500 vlan= 400 10.10.0.11 00:30:48:8d:15:76 UHLW 1 3 1500 vlan400 1188 With the static route it looks like: 10.10.0.11 00:07:e9:d4:2b:39 UHLS 0 2 1500 vlan= 400 (the command is route add -host 10.10.0.11 -iface vlan400 -llinfo) The MAC address in the first case is correct - ...:76 is the MAC from machine2. In the second case, it's not, it's the local MAC. Is this kind of setup even supported? --------------enigF4678ADB2738186B0727E09C Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.4 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGcIPvldnAQVacBcgRAmb8AJ0SiJCjnnm7JQ2TMDyVNhxNkYsAfgCeISd+ XjidbRif3a9FhI1K4myCq3U= =4DaP -----END PGP SIGNATURE----- --------------enigF4678ADB2738186B0727E09C--