aparcar / openwrt

Staging tree of Paul Spooren
Other
8 stars 1 forks source link

FS#592 - 6in4 not creating routes when multiples prefixes used #603

Open aparcar opened 7 years ago

aparcar commented 7 years ago

jordipalet:

If you need to route several (non aggregatable) prefixes thru a 6in4 tunnel, I've not found documentation, but it seems that this will make it:

option ip6prefix 'prefix::/64 prefix::/48'

(example for 2 prefixes)

Then doing ifstatus interface-ipv6, you can see that both prefixes have been considered under ipv6-prefix.

However, under route, only the first one has a default route for that "source-prefix".

Creating a manual route, it works, so the bug is not creating automatically that route.

aparcar commented 5 years ago

treysis:

Can confirm. Actually, setting sourcerouting to 0 should prevent this and make it obsolete to define prefixes, but IF you add prefixes, a route should be set up. To workaround this, the following is necessary in /etc/config/network:

config route6 option interface 'wan6' # wan6 is your 6in4-interface option source 'prefix::/64' option target '::/0'