This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
irc:openbsd:ipv6 [2019/11/14 13:59] jrmu |
irc:openbsd:ipv6 [2020/07/11 02:34] jrmu |
||
---|---|---|---|
Line 60: | Line 60: | ||
The first one sets the device to use the static IPv6 address 2001:0db8:: with a /48 subnet, and the second one creates another IPv6 address 2001:0db8:0000:0000:9b1d:3511:387e:143a with a /48 subnet, aliased to the first IPv6 address. In this way, you can create dozens of unique IPv6 addresses so that each user on a shell account or bouncer can get a unique IPv6 address. | The first one sets the device to use the static IPv6 address 2001:0db8:: with a /48 subnet, and the second one creates another IPv6 address 2001:0db8:0000:0000:9b1d:3511:387e:143a with a /48 subnet, aliased to the first IPv6 address. In this way, you can create dozens of unique IPv6 addresses so that each user on a shell account or bouncer can get a unique IPv6 address. | ||
+ | |||
+ | You will also need to specify the default gateway in /etc/mygate: | ||
+ | |||
+ | <code> | ||
+ | 192.168.1.1 | ||
+ | 2001:0db8:0000:0000::1 | ||
+ | </code> | ||
Sometimes, to restart networking, I will run: | Sometimes, to restart networking, I will run: | ||
Line 71: | Line 78: | ||
Watch out! Iked, without the -6 flag, will block all IPv6 traffic. | Watch out! Iked, without the -6 flag, will block all IPv6 traffic. | ||
- | If you later decide you want to add or delete a new ipv6 address, use ifconfig: | + | If you later decide you want to add a new ipv6 address, use ifconfig: |
+ | |||
+ | <code> | ||
+ | $ doas ifconfig if0 inet6 2001:0db8::/64 | ||
+ | </code> | ||
+ | |||
+ | To delete the IPv6 address: | ||
<code> | <code> | ||
- | $ doas ifconfig if0 inet6 2001:470:28:88::1/64 | + | $ doas ifconfig if0 inet6 2001:0db8::/64 delete |
- | $ doas ifconfig if0 inet6 2001:470:28:88::1/64 delete | + | |
</code> | </code> | ||
Replace if0 with your specific interface. | Replace if0 with your specific interface. |