From owner-freebsd-net@FreeBSD.ORG Mon May 28 06:14:59 2012 Return-Path: Delivered-To: freebsd-net@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E5C9F106564A for ; Mon, 28 May 2012 06:14:59 +0000 (UTC) (envelope-from randy@psg.com) Received: from ran.psg.com (ran.psg.com [IPv6:2001:418:1::36]) by mx1.freebsd.org (Postfix) with ESMTP id C56D88FC08 for ; Mon, 28 May 2012 06:14:59 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=rair.psg.com.psg.com) by ran.psg.com with esmtp (Exim 4.77 (FreeBSD)) (envelope-from ) id 1SYtEI-0006pu-Ma for freebsd-net@FreeBSD.org; Mon, 28 May 2012 06:14:58 +0000 Date: Mon, 28 May 2012 15:14:57 +0900 Message-ID: From: Randy Bush To: freebsd-net User-Agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/22.3 Mule/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Cc: Subject: complex v6 gateway - live by tunnels die by tunnels 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: Mon, 28 May 2012 06:15:00 -0000 problem: some devices are getting a v6 address and find the gateway, i.e. a lionized macbook air. but a ripe atlas probe is getting an address but not gateway. environment and config: the router is a soekris 5501 gateway running FreeBSD soek0.psg.com 9.0-STABLE FreeBSD 9.0-STABLE #0: Fri Jan 27 03:05:06 GMT 2012 root@soek0.psg.com:/usr/obj/usr/src/sys/SOEK0 i386 .------------------------------. | | | b --wlan0| | r | 192.168.0.0/24 WAN IIJ | i --- vr1| LAN hosts, PPP/NAT ---|vr0[PPPoE][ppp]tun0--d | DHCP Clients 210.138.216.50 | g --- vr2| ... | e | | 0 --- vr3| | | `------------------------------' and tunneled v6 over that ### IPv6 options: ### ipv6_activate_all_interfaces=YES ipv6_gateway_enable=YES #ipv6_cpe_wanif=????? maybe this would help, but what interface? route6d_enable=YES route6d_flags="-A 2001:240:6a8::/48,gif0 -O 2001:240:6a8::/48,gif0" rtsold_enable=YES rtadvd_enable=YES rtadvd_interfaces="vr0 bridge0" gif_interfaces=gif0 gifconfig_gif0="210.138.216.50 210.138.77.245" ipv6_static_routes=gif ipv6_route_gif="default -interface gif0" soek0.psg.com:/root# ifconfig vr0: flags=8843 metric 0 mtu 1500 options=8280b ether 00:00:24:c8:b3:28 inet6 fe80::200:24ff:fec8:b328%vr0 prefixlen 64 scopeid 0x1 nd6 options=21 media: Ethernet autoselect (100baseTX ) status: active vr1: flags=8943 metric 0 mtu 1500 options=82809 ether 00:00:24:c8:b3:29 inet6 fe80::200:24ff:fec8:b329%vr1 prefixlen 64 scopeid 0x2 nd6 options=21 media: Ethernet autoselect (100baseTX ) status: active vr2: flags=8943 metric 0 mtu 1500 options=82809 ether 00:00:24:c8:b3:2a inet6 fe80::200:24ff:fec8:b32a%vr2 prefixlen 64 scopeid 0x3 nd6 options=21 media: Ethernet autoselect (none) status: no carrier vr3: flags=8943 metric 0 mtu 1500 options=82809 ether 00:00:24:c8:b3:2b inet6 fe80::200:24ff:fec8:b32b%vr3 prefixlen 64 scopeid 0x4 nd6 options=21 media: Ethernet autoselect (none) status: no carrier ath0: flags=8843 metric 0 mtu 2290 ether 00:0b:6b:83:59:25 nd6 options=21 media: IEEE 802.11 Wireless Ethernet autoselect mode 11g status: running ipfw0: flags=8801 metric 0 mtu 65536 nd6 options=21 lo0: flags=8049 metric 0 mtu 16384 options=3 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x9 inet 127.0.0.1 netmask 0xff000000 nd6 options=21 bridge0: flags=8843 metric 0 mtu 1500 ether 02:52:fd:5d:b5:00 inet 192.168.0.1 netmask 0xffffff00 broadcast 192.168.0.255 inet6 fe80::452:fdff:fe5d:b500%bridge0 prefixlen 64 scopeid 0xa inet6 2001:240:6a8::1 prefixlen 64 nd6 options=21 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: wlan0 flags=143 ifmaxaddr 0 port 12 priority 128 path cost 370370 member: vr3 flags=143 ifmaxaddr 0 port 4 priority 128 path cost 55 member: vr2 flags=143 ifmaxaddr 0 port 3 priority 128 path cost 55 member: vr1 flags=143 ifmaxaddr 0 port 2 priority 128 path cost 55 gif0: flags=8051 metric 0 mtu 1280 tunnel inet 210.138.216.50 --> 210.138.77.245 inet6 fe80::200:24ff:fec8:b328%gif0 prefixlen 64 scopeid 0xb nd6 options=21 options=1 wlan0: flags=8943 metric 0 mtu 1500 ether 00:0b:6b:83:59:25 inet6 fe80::20b:6bff:fe83:5925%wlan0 prefixlen 64 scopeid 0xc nd6 options=21 media: IEEE 802.11 Wireless Ethernet autoselect mode 11g status: running ssid rgnet-crypt channel 11 (2462 MHz 11g) bssid 00:0b:6b:83:59:25 country US ecm authmode WPA2/802.11i privacy MIXED deftxkey 2 TKIP 2:128-bit TKIP 3:128-bit txpower 21 scanvalid 60 protmode CTS wme burst dtimperiod 1 -dfs tun0: flags=8051 metric 0 mtu 1454 options=80000 inet 210.138.216.50 --> 210.149.34.72 netmask 0xffffffff nd6 options=21 Opened by PID 1398 tun1: flags=8051 metric 0 mtu 1500 options=80000 inet6 fe80::200:24ff:fec8:b328%tun1 prefixlen 64 scopeid 0xe inet 192.168.0.65 --> 192.168.0.66 netmask 0xffffffff nd6 options=21 Opened by PID 2098 randy