two NIC - separated IPv4 and IPv6?
Trond Endrestøl
trond.endrestol at ximalas.info
Tue Jan 28 12:29:29 UTC 2020
On Tue, 28 Jan 2020 15:15+0300, Handreas wrote:
> Hi all.
> I got 2 NIC cards on my system.
>
> My NIC card ix0 has both Static IPv4 and Static IPv6 from the router,
> working ok.
> However, I'd like to separate IPv4 and IPv6 on that card, set the ix1: (Not
> configured) card, to have all (and only) IPv6 connections.
>
> How to define IPv4 traffic to ix0 and IPv6 only to ix1 in rc.conf?
How about these lines in /etc/rc.conf:
ifconfig_ix0="DHCP" # Change the value to suit your needs.
ifconfig_ix1_ipv6="inet6 accept_rtadv" # Adjust as necessary.
# Specify the static routers here:
defaultrouter="a.b.c.d"
ipv6_defaultrouter="w:x:y:z::1"
# Maybe unnecessary in your case.
ipv6_default_interface="ix1"
--
Trond.
More information about the freebsd-questions
mailing list