I have freebsd 12.1 OS and I need the ipv6 ip addresses for resolc.conf.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
I’m running a FreeBSD-12.1 image, updated using freebsd-update to FreeBSD-13.0-RELEASE.
When I enabled ipv6 on the droplet, the service /usr/local/etc/rc.d/digitalocean was being run on startup which wiped the ipv4 and ipv6 in /etc/rc.conf every boot. To solve your problem, there are 2x steps you’ll need to do:
# /etc/rc.conf
# default routes
defaultrouter="111.222.111.1"
ipv6_defaultrouter="2607:f0d0:1002:51::1"
# assign ip addresses
ifconfig_vtnet0="inet 111.222.111.33 netmask 255.255.240.0"
ifconfig_vtnet0_ipv6="inet6 2607:f0d0:1002:51::a001 prefixlen 64"
ipv6_activate_all_interfaces="yes"
test this before continuing:
sudo service netif restart
sudo service routing restart
digitalocean service to prevent your config from being wiped every reboot.# /etc/rc.conf
# digitalocean="YES"
# for me, disabling the service in rc.conf had no effect,
# so I renamed the service
mv /usr/local/etc/rc.d/digitalocean /usr/local/etc/rc.d/digitalocean.orig
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.