From owner-freebsd-stable@FreeBSD.ORG Fri Mar 20 20:30:31 2015 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3A149D23; Fri, 20 Mar 2015 20:30:31 +0000 (UTC) Received: from mail-ie0-x22b.google.com (mail-ie0-x22b.google.com [IPv6:2607:f8b0:4001:c03::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id F36D5828; Fri, 20 Mar 2015 20:30:30 +0000 (UTC) Received: by iedfl3 with SMTP id fl3so13273044ied.1; Fri, 20 Mar 2015 13:30:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=s3xOfRFrkvWzwPHCtEtVOJ2mb+YFVJUU1qC34faQ0xg=; b=oKCkNv40MhGDcNPweTytdVypKBQnFt7hRptD8UcdWILPUGJPX9DPEhEUeV895egkC6 qHDOSlYWMOEBkrmLcJkSQG0Ty4c9vsCcg8lOrqU3tEVnrFedUqKh6fkY11hKHOzTW4mp 74rd6wxfEWd8AUJpwS4t20kuw375Itr/lYcRrHuLKP2ZRxmpBbZy/zv8MPol5eteZwax 3B/u9up/bKRdta2CgKDkuowPJGVSOmfyTcRGyGhtYmlaxKZZGoLHuY8tBllCIt42QarG C3eYC6ZX8kEuFfbIcQWmCmKycVPPQYbZTQxKKMqAojmPEzMlDjwe4QDLYdpOoX9OSggT QUAQ== MIME-Version: 1.0 X-Received: by 10.50.126.6 with SMTP id mu6mr28833225igb.4.1426883430400; Fri, 20 Mar 2015 13:30:30 -0700 (PDT) Received: by 10.36.23.196 with HTTP; Fri, 20 Mar 2015 13:30:30 -0700 (PDT) In-Reply-To: References: Date: Sat, 21 Mar 2015 07:30:30 +1100 Message-ID: Subject: Re: rc.conf: select fib for dhclient From: Brendan Inglese To: Hajimu UMEMOTO Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Mar 2015 20:30:31 -0000 Hi, I've tried that actually and it seemed to run dhclient on fib 1 for all interfaces. I gave up on the fib option I've recently just found a solution using pf. Cheers, Brendan. On Sat, Mar 21, 2015 at 5:23 AM, Hajimu UMEMOTO wrote: > Hi, > > >>>>> On Fri, 20 Mar 2015 11:31:32 +1100 > >>>>> Brendan Inglese said: > > brendan> I want to select a particular fib for dhclient to use in rc.conf. > I want it > brendan> to create a whole new routing table > > brendan> If I do: > > brendan> ifconfig_if1="DHCP fib 1" > > brendan> It will run dhclient but not create a default route in the second > table. > > brendan> If I pop: > > brendan> setfib 1 dhclient if1 > > brendan> Into rc.local, on reboot it does exactly what I want it to do. > > Perhaps, following works for you: > > ifconfig_if1="DHCP" > dhclient_fib="1" > > Sincerely, > > -- > Hajimu UMEMOTO > ume@mahoroba.org ume@{,jp.}FreeBSD.org > http://www.mahoroba.org/~ume/ >