Community discussions

MikroTik App
 
pedala
just joined
Topic Author
Posts: 3
Joined: Tue Mar 05, 2024 10:35 pm

ipv6 help please

Tue Mar 05, 2024 10:44 pm

Hello!

I'm at the beginning and I'm trying to learn to use mikrotik.
I installed mikrotik 7.14 chr on a vps, and the provider assigns my ips statically.
With ipv4 it was a game, but the problem comes when I add ipv6, I add routes and it doesn't work in any way.
No route to host...
/ipv6 address add address=ip::/64 inteface=ether1 advertise=yes
ipv6 route add dst-address=ip::/64 gateway=my-gatewayIpv6
Please, if you can help me with the commands, I will reset it from scratch and I want to be able to configure it. Thank you!
 
tangent
Forum Guru
Forum Guru
Posts: 1406
Joined: Thu Jul 01, 2021 3:15 pm
Contact:

Re: ipv6 help please

Tue Mar 05, 2024 11:17 pm

/ipv6 address add address=ip::/64 inteface=ether1 advertise=yes

Is "inteface" a typo here on the forum, there on the CHR, or both?

Secondly, you don't speak of having a peer VPS on the same virtual network at your hosting provider, so who are you "advertising" to? If this virtual "ether1" is connected to the hosting provider's network directly, you're offering IPv6 addresses within your /64 prefix to all of their other customers by setting this.

ipv6 route add dst-address=ip::/64 gateway=my-gatewayIpv6

That's implicit. You can prove it to yourself by saying "/ipv6/route/print" after the first command.

What I think you mean to say instead is:

/ipv6 route add dst-address=::/0 gateway=ether1

That sets the default route through ether1, where you put the IPv6 prefix in the first command.
 
pedala
just joined
Topic Author
Posts: 3
Joined: Tue Mar 05, 2024 10:35 pm

Re: ipv6 help please

Wed Mar 06, 2024 12:11 am

I reset the router, and added the following:
/ipv6/address/add address=2a12:bec0:540:10c::/64 advertise=yes interface=ether1
ipv6/route/ add dst-address=::/0 gateway=ether1

Now I have ping with the gateway, but only with the gateway


[admin@MikroTik] > ipv6/address/ print
Flags: G - GLOBAL
Columns: ADDRESS, INTERFACE, ADVERTISE
# ADDRESS INTERFACE ADVERTISE
0 G 2a12:bec0:540:10c::/64 ether1 yes

[admin@MikroTik] > ipv6/route/ print
Flags: D - DYNAMIC; A - ACTIVE; c - CONNECT, s - STATIC
Columns: DST-ADDRESS, GATEWAY, DISTANCE
# DST-ADDRESS GATEWAY DISTANCE
0 As ::/0 ether1 1
DAc 2a12:bec0:540:10c::/64 ether1 0
 
tangent
Forum Guru
Forum Guru
Posts: 1406
Joined: Thu Jul 01, 2021 3:15 pm
Contact:

Re: ipv6 help please

Wed Mar 06, 2024 12:18 am

"/tool/traceroute" works for IPv6 as well. What do you get with a well-known address like "2606:4700:4700::1111"? (Cloudflare DNS.)

Also, be careful posting public IPs. Are you sure you want to publish the link between this forum account and your VPS's public address?
 
User avatar
baragoon
Member
Member
Posts: 310
Joined: Thu Jan 05, 2017 10:38 am
Location: Kyiv, UA
Contact:

Re: ipv6 help please

Wed Mar 06, 2024 7:29 am

Gateway is wrong. You need to set it not just interface. Two options: link-local-addr%ether1 or global addres without %ether1
 
User avatar
qatar2022
Member Candidate
Member Candidate
Posts: 156
Joined: Mon Aug 24, 2020 11:12 am

Re: ipv6 help please

Wed Mar 06, 2024 8:32 am

Hello!

I'm at the beginning and I'm trying to learn to use mikrotik.
I installed mikrotik 7.14 chr on a vps, and the provider assigns my ips statically.
With ipv4 it was a game, but the problem comes when I add ipv6, I add routes and it doesn't work in any way.
No route to host...
/ipv6 address add address=ip::/64 inteface=ether1 advertise=yes
ipv6 route add dst-address=ip::/64 gateway=my-gatewayIpv6
Please, if you can help me with the commands, I will reset it from scratch and I want to be able to configure it. Thank you!
https://www.youtube.com/watch?v=Rx2YfFW1TtM&t=46s
 
User avatar
mkx
Forum Guru
Forum Guru
Posts: 11646
Joined: Thu Mar 03, 2016 10:23 pm

Re: ipv6 help please

Wed Mar 06, 2024 9:12 am

Regarding routing: the proper thing to do is to allow ROS to accept RAs. Unfortunately the setting is global for all interfaces:
/ipv6/settings/set accept-router-advertisements=yes
So you don't have to set default route by hand (it seems you're setting it wrong anyway).


And, by all means, stop advertising IPv6 address on WAN interface, it may distract other devices in same L2 broadcast domain.
 
pedala
just joined
Topic Author
Posts: 3
Joined: Tue Mar 05, 2024 10:35 pm

Re: ipv6 help please

Thu Mar 07, 2024 11:06 am

Hello!
I tried all the options that I received from you and that I found in different tutorials on the Internet or in the mikrotik documentation, and no result... just a ping response as a reply echo that goes empty.
After 3 days in which I tried all the options, in parallel the one on the vps and the physical one that I own, I tried a tunnel from he.net.. and that one works, but my ips don't.

I can't understand why I don't succeed, either I'm wrong or it's too complicated or...

Who is online

Users browsing this forum: 5p3c3r and 24 guests