From owner-freebsd-net@FreeBSD.ORG Wed Apr 27 16:07:41 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1EBC2106566C for ; Wed, 27 Apr 2011 16:07:41 +0000 (UTC) (envelope-from ticso@cicely7.cicely.de) Received: from raven.bwct.de (raven.bwct.de [85.159.14.73]) by mx1.freebsd.org (Postfix) with ESMTP id 89DC58FC14 for ; Wed, 27 Apr 2011 16:07:40 +0000 (UTC) Received: from mail.cicely.de ([10.1.1.37]) by raven.bwct.de (8.13.4/8.13.4) with ESMTP id p3RFWm9f019909 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 27 Apr 2011 17:32:48 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (cicely7.cicely.de [10.1.1.9]) by mail.cicely.de (8.14.4/8.14.4) with ESMTP id p3RFWaBp091149 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 27 Apr 2011 17:32:36 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (localhost [127.0.0.1]) by cicely7.cicely.de (8.14.2/8.14.2) with ESMTP id p3RFWaZa009187; Wed, 27 Apr 2011 17:32:36 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: (from ticso@localhost) by cicely7.cicely.de (8.14.2/8.14.2/Submit) id p3RFWaxF009186; Wed, 27 Apr 2011 17:32:36 +0200 (CEST) (envelope-from ticso) Date: Wed, 27 Apr 2011 17:32:36 +0200 From: Bernd Walter To: freebsd-net@freebsd.org Message-ID: <20110427153235.GH3101@cicely7.cicely.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Operating-System: FreeBSD cicely7.cicely.de 7.0-STABLE i386 User-Agent: Mutt/1.5.11 X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED=-1, BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 autolearn=unavailable version=3.3.0 X-Spam-Checker-Version: SpamAssassin 3.3.0 (2010-01-18) on spamd.cicely.de Cc: Bernd Walter Subject: Multicast questions X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ticso@cicely.de List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Apr 2011 16:07:41 -0000 I have some strange problems with multicast. Tested host is running FreeBSD 8.1-RELEASE. System is a jailed environment. Outside of the jail I can start a multicast reader: [54]host# mcastread -v6 lo0 ff35::fe00:1 5356 mcastread: trying ff35::fe00:1 mcastread: using ff35::fe00:1 Inside the jail however it fails on binding to the address: [85]jail# mcastread -v6 lo0 ff35::fe00:1 5356 mcastread: trying ff35::fe00:1 mcastread: bind: Can't assign requested address mcastread: can't allocate socket Is there any workaround for this problem? I've read about vimage, but I would like to live without it. Sending to the multicast group works more or less: [94]jail# echo test | mcastsend ff35::fe00:1 5356 mcastsend: send: No route to host Exit 1 [95]jail# echo test | mcastsend -i lo0 ff35::fe00:1 5356 The last one is received with the reader running on the host. But why do I get a no route to host error without using an interface for a site local address? With the only anycast address configured to lo0 using another interface fails inside the jail: [99]jail# echo test | mcastsend -i em0 ff35::fe00:1 5356 mcastsend: Failed to bind source address. Exit 1 Do I really need to configure the address to the LAN interface? -- B.Walter http://www.bwct.de Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.