Re: ipv6_enable

From: Hiroki Sato <hrs_at_FreeBSD.org>
Date: Mon, 05 Apr 2010 23:33:58 +0900 (JST)
John Hay <jhay_at_meraka.org.za> wrote
  in <20100405083056.GA8863_at_zibbi.meraka.csir.co.za>:

jh> These questions actually start more questions for me. :-) Maybe we should
jh> also think from the user perspective and list a few use cases and what a
jh> user need to put in rc.conf to make that work?
jh>
jh> Your normal desktop/notebook user on a ipv6 radv network, what does he
jh> need to do to have his machine ipv6 usable?

 Given that it is 9-CURRENT and the box has 1 NIC (fxp0), add the
 following line to rc.conf:

 ifconfig_fxp0_ipv6="accept_rtadv"

jh> A network server that does not accept radv, what should its ipv6 config
jh> in rc.conf look like?

 ifconfig_fxp0_ipv6="inet6 2001:db8:1::1/64"

jh> What about a server that accept radv (so that it can get router info)
jh> and have fixed addresses for it services?

 ifconfig_fxp0_ipv6="inet6 2001:db8:1::1/64 accept_rtadv"

jh> A router kind of box, what should it look like?

 Given that the box has 2 NICs (fxp0 and fxp1), add the following lines
 to rc.conf:

 ipv6_gateway_enable="YES"
 ifconfig_fxp0_ipv6="inet6 2001:db8:1::1/64"
 ifconfig_fxp1_ipv6="inet6 2001:db8:2::1/64"

 And, no ifconfig_IF_ipv6 line means no IPv6 configuration for the IF.

 After my changes committed last September, the existence of
 ifconfig_IF_ipv6 is used as a flag for whether IPv6 is enable or not
 on that interface.

-- Hiroki

Received on Mon Apr 05 2010 - 12:35:23 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:02 UTC