Dual stack with multiple addresses in rc.conf

Max Laier max at love2party.net
Tue May 27 14:25:07 UTC 2008


On Tuesday 27 May 2008 16:11:41 Steve Bertrand wrote:
> Hi all,
>
> I'm having a difficult time sorting out how to have all my required IP
> addresses (and gateways) configured correctly on boot up via rc.conf.
>
> I've tried all manner of methods using aliases etc, but somehow or
> another, the machine fails to configure all of the addresses correctly,
> and it never configures the IPv6 defaultrouter in the routing table. I
> must stand by the console of the machine if it needs to be rebooted so
> I can manually configure the addresses/routes that do not set
> themselves up correctly.
>
> Can someone please advise me on the proper configuration as it should
> be in rc.conf for the following addresses? All of the addresses need to
> be configured on a single interface (fxp0):
>
> ifconfig_fxp0="inet6 2607:f118::b6 prefixlen 64"
> ifconfig_fxp0_alias0="inet6 2607:f118::b7 prefixlen 64"
> ifconfig_fxp0="inet 208.70.104.210 255.255.255.248"
> ifconfig_fxp0_alias1="inet 208.70.104.211 netmask 255.255.255.255"
>
> defaultrouter="208.70.104.209"
> ipv6_defaultrouter="2607:f118::1"

From rc.conf(5):

            Instead of setting the ifconfig variables as
            ifconfig_<interface> they should be set as
            ipv6_ifconfig_<interface>.  Aliases should be set as
            ipv6_ifconfig_<interface>_alias<n>.

The default router should fall into place once you have an interface that 
is able to contact it - otherwise route will refuse to add.

> Regards,
>
> Steve
> _______________________________________________
> freebsd-net at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-net
> To unsubscribe, send any mail to "freebsd-net-unsubscribe at freebsd.org"



-- 
/"\  Best regards,                      | mlaier at freebsd.org
\ /  Max Laier                          | ICQ #67774661
 X   http://pf4freebsd.love2party.net/  | mlaier at EFnet
/ \  ASCII Ribbon Campaign              | Against HTML Mail and News


More information about the freebsd-net mailing list