From owner-freebsd-questions Thu Aug 30 11:41:31 2001 Delivered-To: freebsd-questions@freebsd.org Received: from Awfulhak.org (gw.Awfulhak.org [217.204.245.18]) by hub.freebsd.org (Postfix) with ESMTP id F216C37B407 for ; Thu, 30 Aug 2001 11:41:19 -0700 (PDT) (envelope-from brian@Awfulhak.org) Received: from hak.lan.Awfulhak.org (root@hak.lan.Awfulhak.org [fec0::1:12]) by Awfulhak.org (8.11.5/8.11.5) with ESMTP id f7UIdwA71961; Thu, 30 Aug 2001 19:39:58 +0100 (BST) (envelope-from brian@Awfulhak.org) Received: from hak.lan.Awfulhak.org (brian@localhost [127.0.0.1]) by hak.lan.Awfulhak.org (8.11.6/8.11.6) with ESMTP id f7UIdwU10527; Thu, 30 Aug 2001 19:39:58 +0100 (BST) (envelope-from brian@hak.lan.Awfulhak.org) Message-Id: <200108301839.f7UIdwU10527@hak.lan.Awfulhak.org> X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: Wouter Van Hemel Cc: freebsd-questions@FreeBSD.ORG, brian@freebsd-services.com Subject: Re: ipv6 route configuration In-Reply-To: Message from Wouter Van Hemel of "Wed, 29 Aug 2001 17:06:08 +0200." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 30 Aug 2001 19:39:58 +0100 From: Brian Somers Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > > 'lo, > > Surprisingly unable to find good, extensive documentation on ipv6 or > advanced ipv4 routing issues on the net, I turn to you with my problem, in > the hope you can help me, or point me to some extensive information (not > the 'hot to make a home network and share your connection'-stuff). > > I have an experimental /48 ipv6 network class, arriving on my router > tunneled, and I'd like to route it to my internal network as follows: > > real_ip > | <- ed0 -- ed1 -> > internet |=--> router --> server1 > | 192.168.196.1 192.168.196.2 > > --> server2 > 192.168.196.3 > > > This is the simple, very basic ipv4 setup with natd. > > > Now, I want to do the same, using the globally routable 3ffe:b80:1c8::/48 > class (but without natd, ofcourse): > > router = 3ffe:b80:1c8::1 > server1 = 3ffe:b80:1c8::2 > server2 = 3ffe:b80:1c8::3 > (etc) > > As you see, actually just like the 192.168.196.* network. > > The problem now is, that each setup I tried, only the router can be traced > from the outside (3ffe:b80:1c8::1), and for instance server1 > (3ffe:b80:1c8::2) either times out (traceroute = * * * etc), or starts > repeating the packets between 3ffe:b80:1c8::1 and the upward tunnel > address. > > I have a script, but it routes the 3ffe:b80:1c8:1:: network through, and > hmmm... that's one character more to type :) > > Basically, what happens in the script (of those nice folks at freenet) is > (after setting up the tunnel etc, that just works fine): > > ##### start ##### > route add -inet6 3ffe:0b80:01c8:: -prefixlen 48 -interface lo0 > (--> why lo0 ?? shouldn't this subnet be send to ed1, the internal net?) > sysctl -w net.inet6.ip6.forwarding=1 > sysctl -w net.inet6.ip6.accept_rtadv=0 > ifconfig ed1 inet6 3ffe:b80:1c8:1::1 prefixlen 64 > > ##### end ##### > > and it makes a rtadvd.conf-file with: > ##### start ##### > default:\ > :raflags#0:rltime#3600:\ > :pinfoflags#64:vltime#360000:pltime#360000:mtu#1500: > ether:\ > :mtu#1280:tc=default: > # interfaces. > ed1:\ > :addrs#1:\ > :addr="3ffe:0b80:01c8:0001::":prefixlen#64:tc=ether: > ##### end ##### > > So, my questions (finally :) ): > > 1) why does the /48 class get bound to lo0? It looks like that's provided to get your local machine to answer as all addresses.... not what you want. > 2) how do I send the full /48 class to the internal net, using ::1 for the > router itself - like my ipv4 internal net? In /etc/rc.conf: ipv6_gateway_enable=YES ipv6_prefix_ed1=3ffe:b80:1c8:0000 ipv6_router_enable=YES ipv6_ifconfig_vr0="3ffe:b80:1c8::1 prefixlen 64" > 3) does rtadvd have to run on all machines, or just the router? Just on the router. > Anybody with a better understanding of routing, please enlighten me, or > point me to good resources... thanks :) > > > / wouter -- Brian http://www.freebsd-services.com/ Don't _EVER_ lose your sense of humour ! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message