Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 May 2004 13:51:34 +0300
From:      Ruslan Ermilov <ru@FreeBSD.org>
To:        Eugene Grosbein <eugen@kuzbass.ru>
Cc:        net@FreeBSD.org
Subject:   Re: multicast arp entry
Message-ID:  <20040518105134.GC70919@ip.net.ua>
In-Reply-To: <40A9CF72.85E2EC9D@kuzbass.ru>
References:  <40A9CF72.85E2EC9D@kuzbass.ru>

next in thread | previous in thread | raw e-mail | index | archive | help

--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:<UP,HOST,DONE,LLINFO,WASCLONED,MULTICAST>
> locks:  inits:
> sockaddrs: <DST,GATEWAY,IFP,IFA>
>  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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040518105134.GC70919>