📜 ⬆️ ⬇️

How I set up IPv6 6to4 on Keenetic

It so happened that my provider Rostelecom does not want or still cannot provide me with IPv6. And I really want to try it. Immediately make a reservation: for normal operation requires static IPv4.

ZyXEL Keenetic router users know that it can be configured through a tunnel broker. And those who have already tried and set up, have remained dissatisfied with the speed of work and ping, which depend on the broker’s network and are not very pleased with the users in Russia.

So, having tried all kinds of free brokers, I threw this idea, but did not quit studying the issue. So I came across 6to4 . Everything there is certainly interesting, but to set up a slightly lazy business on every device in the house. Well, once the question I learned, what came? IPv6 6to4 is the same IPv6 6in4 that brokers provide us. It remains to be the case - to try to feed all this to ZUHEL.

Do not forget to check the section "System Requirements" of the above site. It says: Check if you have access to the IPv4 address 192.88.99.1 (for example, using ping). If this address is not pinged, it’s most likely that your ISP has something seriously “not so” configured, and in this case, 6to4 with automatic gateway selection will not work.
')
In order not to sit with a calculator and a notepad, we will use the site 6to4.ru and find out the IPv6 address for your static IPv4. It is written in the upper right corner after the words: Your 6to4 prefix is .

The site made changes and added a calculator. Enter IPv4, click Get config and get IPv6.

And this is why static: if we configure all this for a dynamic address, then after each IP change we will need to return to the settings of the router and change the address there.

We learned the address, now we go to the router.

On the IPv6 configuration page, in the Server Address field , enter the address 192.88.99.1. In the IPv6 Address field , we indicate the address “counted” on the site without a prefix, but with the addition of 1 at the end. Since This will be the address of our router. In the IPv6 routing address field , specify the address along with the prefix.



Everything seems to be set, but it was not there. There is a problem with DNS servers.
Since The name server is unknown, we will not open sites.
Let's use the favorite servers' DNS servers: 2001: 4860: 4860 :: 8888 and 2001: 4860: 4860 :: 8844.
Specify on each machine manually? Not interesting either.

Web muzzle does not allow us to specify these addresses, swears at the syntax.

Having rummaged on the ZyXEL website, we find out that the DNS server can be set by a command through the terminal. But I took the path of least resistance and, through the same web, downloaded the startup-config configuration file, edited it and downloaded it back.

Almost at the very end of the file, after the line: ipv6 local-prefix default , added lines:

ipv6 name-server 2001: 4860: 4860 :: 8888
ipv6 name-server 2001: 4860: 4860 :: 8844

After downloading the configuration file, we reboot the router and get IPv6 on all machines, including smartphones.

Now we have fast IPv6 Internet and small ping without dependence on tunnel brokers.



UPD:
After the article, ZyXEL support decided to add IPv6 6to4 to the firmware.
Now it is enough to execute commands in the console:
interface TunnelSixToFour0
ipv6 force-default
up
system config-save

Or in the configuration file after all your interfaces add the same lines:
interface bridge2
name Home2
- // -
!
interface PPPoE0
description inet
- // -
!
interface TunnelSixToFour0
ipv6 force-default
up
!

Source: https://habr.com/ru/post/257863/


All Articles