Community discussions

MikroTik App
 
mstehle
just joined
Topic Author
Posts: 8
Joined: Wed Sep 09, 2020 10:05 am

IPv6, No routing to default gateway possible on my CHR

Wed Sep 09, 2020 10:55 am

Hello everyone,

I have the following problem with the configuration of my CHR RouterOS.
When configuring the ipv6 settings I cannot set up the default gateway.
The default gateway is always disabled by RouterOS as unreachable.
But the default gateway can be pinged without problems.
So the standard GW is accessible from RoterOS without problems

What am I doing wrong that it does not work ?


Here an extract from my RouterOS. You can see that the default is not available in RouterOS

[admin@MikroTik] /ipv6 route> print detail
Flags: X - disabled, A - active, D - dynamic, C - connect, S - static, r - rip, o - ospf, b - bgp, 
U - unreachable 
 0   S  dst-address=::/0 gateway=2a02:29b8:dc01:426::1 gateway-status=2a02:29b8:dc01:426::1 unreachable 
        distance=1 scope=30 target-scope=10 

 1 A S  dst-address=2a02:29b8:dc01:426::1/128 gateway=ether1 gateway-status=ether1 reachable distance=1 
        scope=30 target-scope=10 

 2 ADC  dst-address=2a02:29b8:dc01:426:2f34:4eca:a512:0/112 gateway=ether1 gateway-status=ether1 reachable 
        distance=0 scope=10 
[admin@MikroTik] /ipv6 route> 
And here is an extract of the IPV6 settings:

[admin@MikroTik] /ipv6> address p
Flags: X - disabled, I - invalid, D - dynamic, G - global, L - link-local 
 #    ADDRESS                                     					FROM-POOL INTERFACE		ADVERTISE
 0  G 2a02:29b8:dc55:426:2f34:4eca:a512:1/112               	ether1                                  		no       
 1 DL fe80::216:3eff:fed3:c180/64                           		ether1                                  		no       
[admin@MikroTik] /ipv6>

A ping to the default gateway shows that it is generally accessible from RouterOS:

[admin@MikroTik] > ping 2a02:29b8:dc01:426::1
  SEQ HOST                                     SIZE TTL TIME  STATUS                                         
    0 2a02:29b8:dc01:426::1                      56  64 3ms   echo reply                                     
    1 2a02:29b8:dc01:426::1                      56  64 0ms   echo reply                                     
    2 2a02:29b8:dc01:426::1                      56  64 0ms   echo reply                                     
    3 2a02:29b8:dc01:426::1                      56  64 1ms   echo reply                                     
    4 2a02:29b8:dc01:426::1                      56  64 1ms   echo reply                                     
    5 2a02:29b8:dc01:426::1                      56  64 0ms   echo reply                                     
    6 2a02:29b8:dc01:426::1                      56  64 1ms   echo reply                                     
    7 2a02:29b8:dc01:426::1                      56  64 0ms   echo reply                                     
    8 2a02:29b8:dc01:426::1                      56  64 2ms   echo reply                                     
    sent=9 received=9 packet-loss=0% min-rtt=0ms avg-rtt=0ms max-rtt=3ms 

[admin@MikroTik] > 


Here is the Routig table before I updated from Ubuntu to RoterOS (IPV6 routing worldwide was possible)

root@swiss:/# route -6
Kernel IPv6 routing table
Destination                    					Next Hop                   	Flag Met  Ref   Use If
localhost/128                  					[::]                      		U    256  	2     	0 lo
2a02:29b8:dc55:426::1/128      			[::]                       		U    1024	1     	0 eth0
2a02:29b8:dc55:426:2f34:4eca:a512:0/112 	[::]                       		U    256  	2     	0 eth0
fe80::/64                      					[::]                       		U    256  	1     	0 eth0
[::]/0                         					2a02:29b8:dc55:426::1	UGH  	1024 2     0 eth0
localhost/128                  					[::]                       		Un   0    	4     	0 lo
2a02:29b8:dc55:426:2f34:4eca:a512:1/128 	[::]                       		Un   0    	4     	0 eth0
2a02:29b8:dc55:426:2f34:4eca:a512:2/128 	[::]                       		Un   0    	3     	0 eth0
fe80::216:3eff:fed3:c180/128   			[::]                       		Un   0    	2     	0 eth0
ff00::/8                       					[::]                       		U    256  	3     	0 eth0
[::]/0                         					[::]                       		!n   -1   	1     	0 lo
root@swiss:/#

Here a traceroute from Ubuntu:

root@swiss:/# traceroute -6 www.ccc.de
traceroute to www.ccc.de (2001:67c:20a0:2:0:164:0:39), 30 hops max, 80 byte packets
 1  2a02:29b8:dc01:426::1 (2a02:29b8:dc01:426::1)  1.575 ms  1.502 ms  1.455 ms
 2  2a02:29b8:dc01:599::34 (2a02:29b8:dc01:599::34)  9.281 ms  9.305 ms  9.534 ms
 3  100ge6-2.core1.fra1.he.net (2001:470:1:b3d::1)  9.378 ms  9.356 ms  9.305 ms
 4  100ge14-1.core1.prg1.he.net (2001:470:0:213::2)  17.411 ms  17.379 ms  17.321 ms
 5  e0-32.core2.ber1.he.net (2001:470:0:41f::2)  28.417 ms  31.421 ms  34.530 ms
 6  chaos.ber.ecix.net (2001:7f8:8:5:0:c528:0:1)  24.798 ms  24.187 ms  24.123 ms
 7  web.ber.ccc.de (2001:67c:20a0:2:0:164:0:39)  24.023 ms  24.178 ms  24.150 ms
root@swiss:/#

And finally an IFConfig extract from Ubuntu:

root@swiss:/tmp# ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 179.254.254.254  netmask 255.255.255.224  broadcast 179.254.254.254
        inet6 fe80::216:3eff:fed3:c180  prefixlen 64  scopeid 0x20<link>
        inet6 2a02:29b8:dc01:426:2f34:4eca:a512:1  prefixlen 112  scopeid 0x0<global>
        inet6 2a02:29b8:dc01:426:2f34:4eca:a512:2  prefixlen 112  scopeid 0x0<global>
        ether 00:16:3e:d3:c1:80  txqueuelen 1000  (Ethernet)
        RX packets 2781  bytes 232369 (232.3 KB)
        RX errors 0  dropped 258  overruns 0  frame 0
        TX packets 409  bytes 65170 (65.1 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

root@swiss:/tmp#

I have tested with RouterOS 6.36.4 / 6.45.9 LT and 6.48 beta35
 
mstehle
just joined
Topic Author
Posts: 8
Joined: Wed Sep 09, 2020 10:05 am

Re: IPv6, No routing to default gateway possible on my CHR

Mon Sep 14, 2020 12:36 pm

Hello everyone,

i have solved my problem with IPv6 routing for a short time over a HE tunnel.
But it would be nice if somebody could support me to use the Native IPv6 address and not to work with a 6in4 tunnel.

Greetings and thanks

Michael
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7056
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: IPv6, No routing to default gateway possible on my CHR

Mon Sep 14, 2020 4:08 pm

Adjust scopes, default route will not be able to recursively resolve the gateway if scopes and target scopes are exactly the same as values of route over which you want to resolve
https://wiki.mikrotik.com/wiki/Manual:I ... hop_lookup

Who is online

Users browsing this forum: Bing [Bot], Google [Bot], Kanzler and 184 guests