I am having a hard time figuring out how to add additional IPv6 addresses to a tagged vlan in rc.conf on FreeBSD v12.1.
/etc/rc.conf (not working):
Neither the
But I can run:
How does one add this to rc.conf?
/etc/rc.conf (not working):
Code:
# Define vlan
vlans_igb0="3005"
# Set first IP
ifconfig_igb0_3005="inet6 2604:86c0:2000:6::2/64"
# Fail 1
ifconfig_igb0_3005_alias0="inet6 2604:86c0:2000:6::3/64"
# Fail 2
ifconfig_igb0_3005_aliases="\
inet6 2604:86c0:2000:6::3/64\
inet6 2604:86c0:2000:6::4/64\
inet6 2604:86c0:2000:6::5/64\
inet6 2604:86c0:2000:6::6/64\
inet6 2604:86c0:2000:6::7/64\
inet6 2604:86c0:2000:6::8/64\
inet6 2604:86c0:2000:6::9/64\
"
# Fail 3
ifconfig_igb0_3005="inet6 2604:86c0:2000:6::3/64"
# Route
ipv6_defaultrouter="2604:86c0:2000:6::1"
Neither the
ifconfig_igb0_3005_alias0
nor the ifconfig_igb0_3005_aliases
nor adding another ifconfig_igb0_3005="inet6 2604:86c0:2000:6::3/64"
works. The last option overwrites the primary ::2 entry.But I can run:
ifconfig igb0.3005 inet6 2604:86c0:2000:6::4/64
on the command line and the alias is added.How does one add this to rc.conf?