#acl All:read <> = IPv6 configuration of FreeBSD operating systems = == How should I enabled IPv6 in the kernel? == From FreeBSD 4.0 (including FreeBSD 5.x, 6.x and 7.x) supports IPv6 in the GENERIC kernel. Your should have the following line in the kernel configuration: {{{ options INET6 #IPv6 communications protocols }}} You should not do anything unless you removed the line above from your kernel configuration. You cannot load IPv6 support as a module. == How should I enable IPv6 on the system? == The system configuration stored on FreeBSD in the {{{/etc/rc.conf}}} file. You should put {{{ipv6_enable="YES"}}} in this file for IPv6 autoconfiguration. In case of FreeBSD you can use {{{/stand/sysinstall}}} to enable IPv6. {{attachment:freebsd_sysinstall.gif}} However this is recommended only for one interface configuration (host only). The sysinstall configuration has a side-effect also: * wait for Router Advertisment message * wait the autoconfiguration take place * put the autoconfigured address in {{{/etc/hosts}}} file == How should I configure a specific IPv6 address to a certain interface? == Enter to {{{/etc/rc.conf}}} configuration file {{{ipv6_enable='YES'}}} , then you should specify which interfaces you want to configure with IPv6 {{{ipv6_network_interfaces='if0 if1'}}} (this is not really necessary if you want IPv6 on all interfaces enabled). Then you should configure prefix for each specified interface (e.g. {{{ipv6_prefix_if0="fec0:0000:0000:000"}}} (prefixlen 64 assumed) ) or you can configure all {{{ifconfig}}} parameters (e.g. {{{ipv6_ifconfig_if0="fec0:0:0:5::1 prefixlen 64"}}}). It is worth configuring default interface (e.g. {{{ipv6_default_interface="if0"}}}) if you want to use scoped addressess (link local, or multicast). == How should I configure additional (alias) IPv6 address to a certain interface? == Configure in {{{/etc/rc.conf}}} file on which interface you want alias address like: {{{ipv6_ifconfig_if0_alias0="fec0:0:0:5::2/64" }}}. == How can I activate the configuration changes in /etc/rc.conf? == You should run {{{/etc/netstart}}} command to activate the network related configuration changes in {{{/etc/rc.conf}}}. This script is intented mostly to start networking in single user mode, but can be used to activate network con figuration changes. But since the network is already running some errors might occur. == How can change the address selection policy? == In FreeBSD 5.2 and later you can define address selection defined [[http://tools.ietf.org/html/rfc2484|RFC 3484]]. For this purpose you can use {{{ip6addrctl}}} command. * Adding policy rule {{{ ip6addrctl add