cumpig

IPv6

I was surprised when I logged into my router the other day and saw a notification "IPv6 is available from your ISP, enable it?" It's been over a decade!

So now, this blog is available via IPv6 as well! As a kid, I was setting up 4to6 tunnels that would tunnel IPv6 traffic to IPv4 hosts that didn't have support. At the time, I was only interested in having a vanity hostname on IRC. It's pretty neat, not having to deal with NATW though. Also, that my network interface card can pull multiple IPv6 IPs, and the linux kernel does that automatically.

ipv6 and linux

In Linux, you can enable ipv6 privacy extensions. I've been using use_tempaddr to generate new temporary addresses which are rotated. They have a TTL, I think the defaults max out around 2 days.

The problem with this is if you have any long-lived connection, you should instead use your more stable permanent address.

To set my permanent address, I've used ip token set ::f00d dev eno1. This will allocate a permanent address that uses your assigned prefix, and whatever suffix you give it. With ::f00d since my ISP gives me a /64 block, it will expand to :0000:0000:0000:f00d.

Since IPv6 addresses are 128 bits we get 32 hexadecimal digits to work with. A /64 prefix means the first 16 digits are reserved.

Comments

Leave a Comment

Webmentions

Date Published

Last Modified