rc.conf ifconfig ipv6 address fails at boot

Damien Fleuriot ml at my.gd
Tue Jun 12 13:26:50 UTC 2012


Hello questions,



I can't figure out what I'm doing wrong here.

Trying to get a static IPv6 on a server at boot time from rc.conf, and
that fails.

Notice I haven't set ipv6_network_interfaces , so it defaults to "auto".

=====
ipv6_enable="YES"
ipv6_defaultrouter="2a01:e35:2f1b:e2a0::1"

# VLAN 99 = WAN / CISCO INTERCONNECTION
ifconfig_vlan99="vlan 99 vlandev re0 up"
ipv4_addrs_vlan99="192.168.99.3/24"
ipv6_addrs_vlan99="2a01:e35:2f1b:e2a0::dead:beef/64"
=====


I resorted to adding the IPv6 and default gateway via a @reboot line in
/etc/crontab , but this is really not right...


The machine is running 8.3-PRERELEASE from february.



Should I instead try the following ?

ifconfig_vlan99="inet 192.168.99.3/24 vlan 99 vlandev re0 up"
ipv6_ifconfig_vlan99="2a01:e35:2f1b:e2a0::dead:beef/64"




I'm not really at liberty to reboot the server to test during work time ;)


More information about the freebsd-questions mailing list