From owner-freebsd-net@FreeBSD.ORG Tue May 18 03:51:33 2004 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 24FDB16A4CE for ; Tue, 18 May 2004 03:51:33 -0700 (PDT) Received: from tigra.ip.net.ua (tigra.ip.net.ua [82.193.96.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7574343D5E for ; Tue, 18 May 2004 03:51:31 -0700 (PDT) (envelope-from ru@ip.net.ua) Received: from heffalump.ip.net.ua (heffalump.ip.net.ua [82.193.96.213]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id i4IAut4I058574 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 18 May 2004 13:56:57 +0300 (EEST) (envelope-from ru@ip.net.ua) Received: (from ru@localhost) by heffalump.ip.net.ua (8.12.11/8.12.11) id i4IApYhS071075; Tue, 18 May 2004 13:51:34 +0300 (EEST) (envelope-from ru) Date: Tue, 18 May 2004 13:51:34 +0300 From: Ruslan Ermilov To: Eugene Grosbein Message-ID: <20040518105134.GC70919@ip.net.ua> References: <40A9CF72.85E2EC9D@kuzbass.ru> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="w7PDEPdKQumQfZlR" Content-Disposition: inline In-Reply-To: <40A9CF72.85E2EC9D@kuzbass.ru> User-Agent: Mutt/1.5.6i X-Virus-Scanned: by amavisd-new X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) cc: net@FreeBSD.org Subject: Re: multicast arp entry X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 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, 18 May 2004 10:51:33 -0000 --w7PDEPdKQumQfZlR Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, May 18, 2004 at 04:55:14PM +0800, Eugene Grosbein wrote: > Hi! >=20 > route -n monitor shows me: >=20 > got message of size 236 on Tue May 18 16:42:26 2004=20 > RTM_ADD: Add Route: len 236, pid: 0, seq 0, errno 0, > flags: > locks: inits: > sockaddrs: > 224.0.0.9 1.0.5e.0.0.9 em3:0.7.e9.1f.f1.de 172.20.2.75 >=20 > After that arp -an shows: > (224.0.0.9) at 01:00:5e:00:00:09 on em3 permanent [ethernet] >=20 > Then tcpdump shows that multicast packets with source IP of interface em1 > (those must be directed via em1) go out through em3. I run quagga/ripd > (same effect for zebra) on FreeBSD 4.9-STABLE. >=20 > How do I find who installs this route? >=20 The short answer is: the kernel adds it for you, automatically, just as it does this for you for normal unicast destinations. The long answer could be: you could join to a single multicast group on multiple interfaces, and you will be able to receive multicast on all of them, but if you don't have multicast forwarding enabled, only one interface will be used for sending. Which one gets used will be determined by a normal routing lookup, i.e., ``route -vn get -host 224.0.0.9'' where no entry yet exists. Then, when the actual packet gets delivered, the kernel will insert the corresponding ARP entry, mapping the multicast group address to a MAC address. Cheers, --=20 Ruslan Ermilov ru@FreeBSD.org FreeBSD committer --w7PDEPdKQumQfZlR Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAqeq2Ukv4P6juNwoRAg4mAJ4zhPiigkN+bvWEbJOvM4eIcQIUQwCbBwsd UGaS22ZxuJUtBaT3MmjAObk= =sV+o -----END PGP SIGNATURE----- --w7PDEPdKQumQfZlR--