Article

Table of Contents
Theme:
Was this article helpful?
Try Vultr Today with

$50 Free on Us!

Want to contribute?

You could earn up to $300 by adding new articles!

Configuring IPv6 on FreeBSD

Last Updated: Wed, Oct 28, 2020
BSD FAQ Networking

Introduction

Vultr supports IPv6 for all VPS and Bare Metal instances. To enable IPv6, use either of these methods:

  • Select Enable IPv6 in the Additional Features section when deploying a new instance.
  • Use this guide to add IPv6 support, or add a secondary address, to a deployed instance.

This guide applies to:

  • FreeBSD 12.x
  • FreeBSD 11.x
  • FreeBSD 10.x

Add IPv6 to an Instance

  1. IPv6 autoconfiguration depends on ICMP protocol. Please verify you haven't blocked ICMP in the OS firewall.
  2. Navigate to the Settings tab for the instance.
  3. Select the IPv6 menu.
  4. Click the Assign IPv6 Network button.

    Assign IPv6

  5. Restart the server via the Vultr Customer Portal. Important: rebooting via SSH doesn't activate the new network.

  6. Choose dynamic or static configuration:

    Dynamic configuration

    Add the following lines to the /etc/rc.conf file.

    ifconfig_vtnet0_ipv6="inet6 accept_rtadv" 
    ipv6_activate_all_interfaces="YES" 
    rtsold_enable="YES" 
    rtsold_flags="-aF" 
    

    Static configuration

    Add the following lines to the /etc/rc.conf file. Replace the example with an address in your IPv6 subnet.

    rtsold_enable="YES" 
    ipv6_activate_all_interfaces="YES" 
    rtsold_flags="-aF" 
    ifconfig_vtnet0_ipv6="inet6 2001:db8:1000::100 prefixlen 64" 
    
  7. Start the router solicitation daemon or reboot.

    service rtsold start
    

Add Secondary IPv6 to an Instance

Optionally, you may configure a secondary IPv6 address for your instance.

  1. Add the following line to /etc/rc.conf. Replace the example with an address in your IPv6 subnet.

    ifconfig_vtnet0_alias0="inet6 2001:db8:1000::200 prefixlen 64" 
    
  2. Start the router solicitation daemon or reboot.

    # service rtsold start
    

More Information

Refer to specific network configuration examples on the instance's IPv6 information page.

Configuration Examples

Want to contribute?

You could earn up to $300 by adding new articles