Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Mar 2015 11:31:32 +1100
From:      Brendan Inglese <brendan.inglese@gmail.com>
To:        freebsd-stable@freebsd.org
Subject:   rc.conf: select fib for dhclient
Message-ID:  <CAN9SZg_GDXFd7O5oUq3=D3jowY1EaN8Zg0uvh8YE_W77%2BGTnUg@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hi,

I need some configuration settings for setting up multiple public network
interfaces.

Question one ( Using pf )

How would I set this up using pf on 2 public interfaces and a loopback?

Question two ( Using fibs )

I want to select a particular fib for dhclient to use in rc.conf. I want it
to create a whole new routing table

If I do:

ifconfig_if1="DHCP fib 1"

It will run dhclient but not create a default route in the second table.

If I pop:

setfib 1 dhclient if1

Into rc.local, on reboot it does exactly what I want it to do.

Thanks!
Brendan.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAN9SZg_GDXFd7O5oUq3=D3jowY1EaN8Zg0uvh8YE_W77%2BGTnUg>