Date: Thu, 14 Jun 2007 01:55:20 +0200 From: Ivan Voras <ivoras@fer.hr> To: freebsd-net@freebsd.org Subject: VLANs and routing Message-ID: <f4q05k$f68$1@sea.gmane.org>
next in thread | raw e-mail | index | archive | help
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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?f4q05k$f68$1>