From owner-freebsd-net@FreeBSD.ORG Thu Jan 28 07:48:24 2010 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 129B6106566B for ; Thu, 28 Jan 2010 07:48:24 +0000 (UTC) (envelope-from nazeemnss@gmail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id B875E8FC13 for ; Thu, 28 Jan 2010 07:48:23 +0000 (UTC) Received: by vws18 with SMTP id 18so221924vws.13 for ; Wed, 27 Jan 2010 23:48:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=qcJJCs3l6sJ99W1W9EKwUTLNLxsk2kTZD548jN/gcDw=; b=OUqagMt/RidPA+y+LZOSvWYnjzL65oasiMyX6pHQDeNVfqkhS8lsBsSyMqEl7xMHTp H9c6iNy99ULx8dwsk8tj/O3FzO4Q2cg6u2zxozk6iQnKSB6564xA/z67f3y7HZPHDiPZ rU7uRfxnnctE0oz+RFgUwa0HbBv5CTuUPUy0c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=gJseRq7RjlR+v9R7w8K7MOo5K0gXosL1v4T+IxIGdGHV9K6LnYETcNf9ipTlYV+Fdm QYxyMfJtBsMCez3YEkVXMvnAo1hekwHjxP9qETIq3VnLfCG7IWF+9XwGDtY4z+KR169n kEecypDccdld0rZC1Py0IyM64tc3RTCkh3WNg= MIME-Version: 1.0 Received: by 10.220.122.24 with SMTP id j24mr1734071vcr.28.1264664902858; Wed, 27 Jan 2010 23:48:22 -0800 (PST) In-Reply-To: <7609d8391001272323qa8694c0q9c716fc2e577eb47@mail.gmail.com> References: <7609d8391001270601m489ab6e6xe956d1539f2cbe4e@mail.gmail.com> <4B612997.8030505@incunabulum.net> <7609d8391001272323qa8694c0q9c716fc2e577eb47@mail.gmail.com> Date: Thu, 28 Jan 2010 13:18:22 +0530 Message-ID: <7609d8391001272348m624201aco31f9a9ff2b3eb4e6@mail.gmail.com> From: =?UTF-8?B?TmF6ZWVtINmG2KzZhSDZhNiv2YrZhg==?= To: Bruce Simpson Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-net@freebsd.org Subject: Re: MROUTED: Problem with vif installation X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Jan 2010 07:48:24 -0000 *GIVING MORE DETAILS:- ifconfig gives:* em0: flags=3D8843 metric 0 mtu 1500 options=3D19b ether 00:1c:c0:00:d6:68 inet 10.129.86.154 netmask 0xffff0000 broadcast 10.129.255.255 media: Ethernet autoselect (100baseTX ) status: active fxp0: flags=3D8843 metric 0 mtu 150= 0 options=3D2009 ether 00:a9:40:0f:47:2f inet 192.168.0.1 netmask 0xffffff00 broadcast 192.168.0.255 media: Ethernet autoselect (none) status: no carrier fwe0: flags=3D8802 metric 0 mtu 1500 options=3D8 ether 02:90:27:ef:72:9f ch 1 dma -1 fwip0: flags=3D8802 metric 0 mtu 1500 lladdr 0.90.27.0.1.ef.72.9f.a.2.ff.fe.0.0.0.0 plip0: flags=3D8810 metric 0 mtu 1500 lo0: flags=3D8049 metric 0 mtu 16384 options=3D3 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x6 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff000000 *mrouted.conf * tunnel 10.129.86.154 10.12.11.105 * mrouted -d gives:* freebsd1# mrouted -d debug level 0x2de (pruning,routing,peers,cache,interface,membership,igmp) 13:17:13.980 mrouted version 3.9-beta3+IOS12 starting 13:17:13.980 Getting vifs from kernel interfaces 13:17:13.980 installing em0 (10.129.86.154 on subnet 10.129/16) as vif #0 - rate=3D0 13:17:13.980 installing fxp0 (192.168.0.1 on subnet 192.168.0/24) as vif #1 - rate=3D0 13:17:13.980 Getting vifs from /etc/mrouted.conf 13:17:13.980 installing tunnel from 10.129.86.154 to 10.12.11.105 as vif #2 - rate=3D0 13:17:13.980 Installing vifs in mrouted... 13:17:13.981 vif #0, phyint 10.129.86.154 13:17:13.981 assuming querier duties on vif 0 13:17:13.981 sending query on vif 0 13:17:13.981 SENT membership query from 10.129.86.154 to 224.0.0.1 13:17:13.981 SENT neighbor probe from 10.129.86.154 to 224.0.0.4 13:17:13.981 vif #1, phyint 192.168.0.1 13:17:13.982 assuming querier duties on vif 1 13:17:13.982 sending query on vif 1 13:17:13.982 SENT membership query from 192.168.0.1 to 224.0.0.1 13:17:13.982 SENT neighbor probe from 192.168.0.1 to 224.0.0.4 13:17:13.982 vif #2, tunnel 10.129.86.154 -> 10.12.11.105 13:17:13.982 SENT neighbor probe from 10.129.86.154 to 10.12.11.105 vifs_with_neighbors =3D 0 Virtual Interface Table Vif Name Local-Address M Thr Rate Flags 0 em0 10.129.86.154 subnet: 10.129/16 1 1 0 querier IGMP querier: 10.129.86.154 (this system) Nbr bitmaps: 0x0000000000000000 1 fxp0 192.168.0.1 subnet: 192.168.0/24 1 1 0 querier IGMP querier: 192.168.0.1 (this system) Nbr bitmaps: 0x0000000000000000 2 em0 10.129.86.154 tunnel: 10.12.11.105 1 1 0 rexmit_prunes old-tunnel Nbr bitmaps: 0x0000000000000000 Multicast Routing Table (2 entries) Origin-Subnet From-Gateway Metric Tmr Fl In-Vif Out-Vifs 192.168.0/24 1 0 C. 1 0* 10.129/16 1 0 C. 0 1* 13:17:19.211 aging forwarding cache entries 13:17:19.211 sending query on vif 0 13:17:19.211 SENT membership query from 10.129.86.154 to 224.0.0.1 13:17:19.211 sending query on vif 1 13:17:19.211 SENT membership query from 192.168.0.1 to 224.0.0.1 13:17:19.211 SENT neighbor probe from 10.129.86.154 to 224.0.0.4 13:17:19.211 SENT neighbor probe from 192.168.0.1 to 224.0.0.4 13:17:19.211 SENT neighbor probe from 10.129.86.154 to 10.12.11.105 13:17:24.440 mrouted version 3.9-beta3+IOS12 13:17:24.440 Installing vifs in kernel... 13:17:24.440 vif #0, phyint 10.129.86.154 13:17:24.440 vif #1, phyint 192.168.0.1 13:17:24.440 vif #2, tunnel 10.129.86.154 -> 10.12.11.105 13:17:24.440 setsockopt MRT_ADD_VIF on vif 2: Operation not supported freebsd1# On Thu, Jan 28, 2010 at 12:53 PM, Nazeem =D9=86=D8=AC=D9=85 =D9=84=D8=AF=D9= =8A=D9=86 wrote: > > I have build the kernel with MROUTING option. Cause without it mrouted do= es > not execute. But is this a problem with the tunnel creation as it says > setsockopt MRT_ADD_VIF operation not permitted. > > The machine I use has 2 NICs. I have also enabled gateway "YES". > > I am trying to setup a multicast tunnel using mrouted. Anything I am > missing or gone wrong? Is a tunnel to be setup in some other way first? > > -Nazeem > > > On Thu, Jan 28, 2010 at 11:37 AM, Bruce Simpson wrot= e: > >> Did you remember to kldload ip_mroute or build your kernel with 'options >> MROUTING' ? >> > > >