6rd address assignment fails after adding interface to DSL modem

Hello all,

I just recently moved from openWRT chaos calmer to LEDE 17. Great work on this fantastic project!

During the upgrade, the sysupgrade process failed, stating it wasn't able to load the ramdisk. I used mtd to flash the upgrade and was up and running. I then tried to import my old openwrt configuration, and that failed (name resolution wouldn't work.) I flashed the sysupgrade again, and starting configuring everything manually again.

I am running my DSL modem in transparent bridging to an archer c7 v2 running LEDE. I can authenticate, and everything works fine.

I have two networks: 192.168.2.0, and the DSL modem is on 10.1.1.0.
IPv6 is handled by 6rd. I have configured it and can use IPV6 to browse, etc.

After adding the modem interface, with static IP on the modem network, and firewall profile of "wan" I run into connectivity problems getting to the outside. I checked the routing table and see that the modem interface is now my default gateway, on dev eth0. Manually configuring the routing table back, so that the ISP is the gateway, over my pppoe-wan dev, allows me to browse again. I can even connect to the modem.

Unfortunately, this does not persist with a reboot. What happens is the 6rd interface fails to set the proper v6 address, and v6 connectivity is lost.

I think I am configuring everything exactly the same as before, but it doesn't seem to want to work right. Is this some kind of bug?

Output of netstat -rn when it is working:

Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
0.0.0.0         67.42.200.5    0.0.0.0         UG        0 0          0 pppoe-wan
10.1.1.0        0.0.0.0         255.255.255.0   U         0 0          0 eth0
67.42.200.5    0.0.0.0         255.255.255.255 UH        0 0          0 pppoe-wan
192.168.2.0     0.0.0.0         255.255.255.0   U         0 0          0 br-lan
205.171.2.6    67.42.200.5    255.255.255.255 UGH       0 0          0 pppoe-wan

Output of netstat -rn after rebooting:

Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
0.0.0.0         67.42.200.5    0.0.0.0         UG        0 0          0 pppoe-wan
10.1.1.0        0.0.0.0         255.255.255.0   U         0 0          0 eth0
67.42.200.5    0.0.0.0         255.255.255.255 UH        0 0          0 pppoe-wan
192.168.2.0     0.0.0.0         255.255.255.0   U         0 0          0 br-lan
205.171.2.6    10.1.1.1        255.255.255.255 UGH       0 0          0 eth0

the ipv6 address for wan6 is: 2602:a:1::1, but in reality it should be like: 2602:43:d7:9800::1

The gateway for 205.171.2.X is also incorrect, it should be going to the 67.42.X.X network..

Today I experimented with selecting false in the option box for bring up on boot. That solves the ip6 interface address problem, but I don't want to have to manually enable the modem interface each time I restart. I also changed the gateway metric hoping to force the right route, but again wan 6 gets the wrong address