Step-by Step Configure IPv6 Host in FreeBSD 4.7

IPv6 natively support starts from Free BSD 4.0 Release

Configuration files
Most of the configuration information is given in /etc/rc.conf and obtained automatically via network.

How to enable IPv6 on this machine
IPv6 prefix will automatically assigned by router-advertisement, so all you have to do is just to enable IPv6.

    ipv6_enable="YES"        # by default it's "NO"

You can use the following option to limit the interface to enable IPv6. By default it's "auto", meaning to enable IPv6 on all the interfaces.
Since IPv6 protocol assumes host has only one interface, its configuration is recommended for hosts with multiple interfaces.
    ipv6_network_interface="fxp0"         # by default it's "auto"

How to configure IPv6 address
you don't have to configure since IPv6 address is automatically given by the router advertisements from the neighboring routers,


If you want to create a non-EUI-64-based IPv6 address on host, then you can configure in either of the following manners.

1.completely static configuration like IPv4
    Linklocal prefix (fe80:....) is automatically generated, so you don't have to configure it.
        ipv6_ifconfig_fxp0="3ffe:501:ffff:2::1 prefixlen 64"
        ipv6_ifconfig_fxp0_alias0="2001:ffff:0:2::2 prefixlen 64"

2. semi-automatic configuration using router-advertisement
    In this case, you only have to configure the latter 64 bits of IPv6 address; remaining information is automatically configured by router  

How to configure IPv6 host entry

Write an entry on /etc/hosts in the same manner as IPv4, except for the IP address format.  Below is an example.
Please take care that scoped address (e.g. fe80::1%fxp0) is not supported now in this file.

        3ffe:501:4819:1000:5054:ff:feda:cfc7    banana

Source :
Last Archive : 2003-02-20


home     IPv6 Router