From owner-freebsd-questions@FreeBSD.ORG Fri Feb 6 23:56:25 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 917711065675 for ; Fri, 6 Feb 2009 23:56:25 +0000 (UTC) (envelope-from frederic.perrin@resel.fr) Received: from maisel-gw.enst-bretagne.fr (maisel-gw.enst-bretagne.fr [192.44.76.8]) by mx1.freebsd.org (Postfix) with ESMTP id 1BBE98FC23 for ; Fri, 6 Feb 2009 23:56:24 +0000 (UTC) (envelope-from frederic.perrin@resel.fr) Received: from localhost (localhost [127.0.0.1]) by maisel-gw.enst-bretagne.fr (Postfix) with ESMTP id D49D119C00; Sat, 7 Feb 2009 00:56:23 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at resel.fr Received: from maisel-gw.enst-bretagne.fr ([127.0.0.1]) by localhost (mercure.adm.maisel.enst-bretagne.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YKfjzZfzUc7G; Sat, 7 Feb 2009 00:56:18 +0100 (CET) Received: from chameau.maisel.enst-bretagne.fr (chameau.maisel.enst-bretagne.fr [172.22.209.241]) (Authenticated sender: fperrin) by maisel-gw.enst-bretagne.fr (Postfix) with ESMTP id 00D3819C04; Sat, 7 Feb 2009 00:56:17 +0100 (CET) Received: by chameau.maisel.enst-bretagne.fr (Postfix, from userid 1001) id 02741B829; Sat, 7 Feb 2009 00:56:16 +0100 (CET) From: =?utf-8?Q?Fr=C3=A9d=C3=A9ric_Perrin?= To: Nikos Vassiliadis Organization: =?utf-8?Q?R=C3=A9seau?= des =?utf-8?B?w4lsw6h2ZXM=?= References: <863aeunkj0.fsf@chameau.maisel.enst-bretagne.fr> <498AABCC.4090809@gmx.com> <86ocxfeoqn.fsf@chameau.maisel.enst-bretagne.fr> <498C4E61.7060501@freemail.gr> Date: Sat, 07 Feb 2009 00:56:16 +0100 In-Reply-To: <498C4E61.7060501@freemail.gr> (Nikos Vassiliadis's message of "Fri, 06 Feb 2009 16:51:13 +0200") Message-ID: <867i43m867.fsf@chameau.maisel.enst-bretagne.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-questions@freebsd.org Subject: Re: Multiple MAC on a single (physical) interface 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: Fri, 06 Feb 2009 23:56:27 -0000 Le Vendredi 6 =C3=A0 15:51, Nikos Vassiliadis a =C3=A9crit : > FreeBSD will then know that network 10.0.0.0/24 is attached to > fxp0 and will use fxp0's IP and MAC address to do the ARP query... > > So, in short, if you use such a setup: > fxp0 10.0.0.1/24 ether 00:00:00:01:01:01 > ngeth0 10.0.0.2/32 ether 00:00:00:02:02:02 > ngeth1 10.0.0.3/32 ether 00:00:00:03:03:03 > The IP address in use will be the 10.0.0.1 one > and the MAC address will be the 00:00:00:01:01:01 one. Yes indeed : if I do from another host : $ arping [ngeth0 IP] I get rl0's MAC as an answer, and doig 'tcpdump -i rl0 ether host [ngeth0 MAC]' when ssh to my jail behind ngeth0, I don't see any activity. If I manually add ngeth0's MAC to the other host arp cache, ssh'ing to my jail works, and packets do have ngeth0's MAC. I won't be able to work any further on this before next week. Thanks a lot for your help, Nikos. --=20 Fred For the record, my network config looks like (minus lo0) : % ifconfig=20 rl0: flags=3D8943 metric 0 = mtu 1500 options=3D8 ether 00:1c:f0:f8:cd:d6 inet6 fe80::21c:f0ff:fef8:cdd6%rl0 prefixlen 64 scopeid 0x1=20 inet 172.22.209.241 netmask 0xffffe000 broadcast 172.22.223.255 inet6 2001:660:7302:3:21c:f0ff:fef8:cdd6 prefixlen 64 autoconf=20 media: Ethernet autoselect (100baseTX ) status: active ngeth0: flags=3D8943 metric= 0 mtu 1500 ether 00:00:39:56:f1:1a inet6 fe80::200:39ff:fe56:f11a%ngeth0 prefixlen 64 scopeid 0x4=20 inet 172.22.212.7 netmask 0xffffffff broadcast 172.22.212.7 bridge0: flags=3D8843 metric 0 mtu = 1500 ether 56:34:43:fd:04:57 id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15 maxage 20 holdcnt 6 proto rstp maxaddr 100 timeout 1200 root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0 member: ngeth0 flags=3D143 ifmaxaddr 0 port 4 priority 128 path cost 2000000 member: rl0 flags=3D143 ifmaxaddr 0 port 1 priority 128 path cost 200000