From owner-freebsd-net@FreeBSD.ORG Tue Mar 22 09:19:58 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 165FA106564A for ; Tue, 22 Mar 2011 09:19:58 +0000 (UTC) (envelope-from matt.xtaz@gmail.com) Received: from mail-qw0-f54.google.com (mail-qw0-f54.google.com [209.85.216.54]) by mx1.freebsd.org (Postfix) with ESMTP id B756B8FC08 for ; Tue, 22 Mar 2011 09:19:57 +0000 (UTC) Received: by qwc9 with SMTP id 9so5382643qwc.13 for ; Tue, 22 Mar 2011 02:19:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=IQpR/SqES+lpO2FMocHTD63QWNR8bDSyH2hSuC+vpdY=; b=wzdABt2kFaeHWqMRcDqF6+yr9mXrSfcg4w4OpizrpuVFpdxvp7563ays0F/CN1FLZJ wjgbozawbufiyu6UisnDReU360F/1rkByQy92SpRDmoBThi3Y2SBAdH7TathkFJ/P4oU 94DELiySqBG8xQfL5lngqdM7CRAwXRcrh4imQ= 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:content-transfer-encoding; b=BindiGiJhc1WsgKqx/EUtsIE7m/thi3Gvwszexbf/7/1oIHsiCx3jW5858DAUKKRgT m7kZUDoPeobUAhbJm+B/ozckhUeIpycr7KI9KH/k97QYczgEhH983BVNVDqn06O1dW0L 7v4MqLCM7pA7RuK+q4h3Lf77akqKd2r5X3nu4= MIME-Version: 1.0 Received: by 10.224.180.208 with SMTP id bv16mr4445709qab.268.1300785595541; Tue, 22 Mar 2011 02:19:55 -0700 (PDT) Received: by 10.229.70.140 with HTTP; Tue, 22 Mar 2011 02:19:55 -0700 (PDT) In-Reply-To: References: Date: Tue, 22 Mar 2011 09:19:55 +0000 Message-ID: From: Matt Smith To: "J. Hellenthal" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-net@freebsd.org Subject: Re: IPv6 policy based source routing 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: Tue, 22 Mar 2011 09:19:58 -0000 On 22 March 2011 03:00, J. Hellenthal wrote: > > Hi Matt, > > Unofficially not sure if you have already checked into this so I am not s= ure if it is really a solution to your problem but may be a step forward. C= heck out the man page for ip6addrctl(8) that allows you to set a precedence= for each prefix/route. The default output of ip6addrctl(8) can be dumped i= nto /etc/ip6addrctl.conf where it will also be parsed and restored upon reb= oot. > This does indeed look like exactly what I was after however I can't seem to get it to do anything unless I'm using it wrong. root@tao[~]# ip6addrctl show Prefix Prec Label Use ::1/128 50 0 0 ::/0 40 1 155126 2002::/16 30 2 0 ::/96 20 3 0 ::ffff:0.0.0.0/96 10 4 0 The IP on vr0 is 2a01:348:294::1/64 and the IP on gif0 is 2a01:348:6:45c::2/128. Right now if I ping6 ipv6.google.com I get this PING6(56=3D40+8+8 bytes) 2a01:348:6:45c::2 --> 2a00:1450:8002::67 so it's sourcing traffic from the gif0 IP. I assume in that list the higher the precedence the higher the priority so I ran "ip6addrctl add 2a01:348:294::/64 45 5". This makes no difference. Traffic still comes from the gif0 IP. I also tried adding the gif0 prefix with "ip6addrctl add 2a01:348:6:45c::2/128 44 6" to make it lower but same effect. In case I got the precedence the wrong way round I tried reversing it. Same effect. So I guess I'm not using it correctly. Can you enlighten me as to what I'm doing wrong with it? Matt.