Solved IPv6 and rc.conf

Mayhem30

Well-Known Member

Reaction score: 19
Messages: 382

How do I properly add IPv6 IP addresses in my rc.conf file in FreeBSD 11.1?

I was assigned a /64 to my server. Also, how do I apply the changes without rebooting? /etc/netstart ?

This is how I am adding them now (IP address has been modified for security) :
Code:
ipv6_defaultrouter="2501:AE00:0000:01Eb::1"

ifconfig_em0_ipv6="inet6 2501:AE00:0000:01Eb::2 prefixlen 64"
ifconfig_em0_ipv6="inet6 2501:AE00:0000:01Eb::3 prefixlen 64"
ifconfig_em0_ipv6="inet6 2501:AE00:0000:01Eb::4 prefixlen 64"
...
Code:
We have assigned a /64 to your server.

2501:AE00:0000:01Eb::1/64

The address above is the gateway for that range.
 
OP
OP
M

Mayhem30

Well-Known Member

Reaction score: 19
Messages: 382

This appears to be working for me. Is this the correct syntax?
Code:
# Gateway IP
ipv6_defaultrouter="2501:AE00:0000:01Eb::1"

# First IP address
ifconfig_em0_ipv6="inet6 2501:AE00:0000:01Eb::2 prefixlen 64"

# Additional IP's
ifconfig_em0_alias0="inet6 2501:AE00:0000:01Eb::3 prefixlen 64"
ifconfig_em0_alias1="inet6 2501:AE00:0000:01Eb::4 prefixlen 64"
ifconfig_em0_alias2="inet6 2501:AE00:0000:01Eb::5 prefixlen 64"
 
Top