On Mon, Jul 30, 2018 at 12:02 AM Torbjorn Jansson
<torbjorn.jans...@mbox200.swipnet.se> wrote:
>
> On 2018-07-29 22:16, Hans Dedecker wrote:
> > On Fri, Jul 27, 2018 at 2:36 PM Torbjorn Jansson
> > <torbjorn.jans...@mbox200.swipnet.se> wrote:
> >>
> >> Hello
> >>
> >> i decided to try to upgrade my erx-sfp from an old snapshot (probably a 
> >> year or
> >> so old) to 18.06-rc2.
> >> for the most part it worked out but there is something odd going on with 
> >> my 6rd
> >> wan interface and i'm not sure where to start the troubleshooting.
> >>
> >> with luci-proto-ipv6 and 6rd packages installed i get a lot of stuff like 
> >> this
> >> in syslog:
> >> 14:29:07 2018 daemon.notice netifd: wan6 (24771): Command failed: Unknown 
> >> error
> >> 14:29:07 2018 daemon.notice netifd: Interface 'wan6' is now down
> >> 14:29:07 2018 daemon.notice netifd: Interface 'wan6' is setting up now
> >> 14:29:08 2018 daemon.notice netifd: wan6 (24856): Command failed: Unknown 
> >> error
> >> 14:29:08 2018 daemon.notice netifd: Interface 'wan6' is now down
> >> 14:29:08 2018 daemon.notice netifd: Interface 'wan6' is setting up
> >> (dates removed to make log easier to fit in mail without line breaks)
> >>
> >> this repeats every second and 6rd interface seems to get ip adress but it 
> >> is
> >> not quite working.
> >>
> >> plus i noticed under Network -> Interfaces in webinterface i now have two
> >> similar looking 6rd interfaces.
> >> one named WAN6 and thats the one i created and another one that cant be 
> >> edited
> >> that's called WAN_6
> >>
> >> WAN6 is listed as protocol: IPv6-over-IPv4 (6rd)
> >> WAN_6 is listed as protocol: Virtual dynamic interface (IPv6-over-IPv4 
> >> (6rd))
> >>
> >> the last interface must be something new or a problem or something.
> >> it is also that interface that gets the ipv6 addresses.
> >>
> >>
> >> any idea whats wrong?
> >> or how to find out what command failed in the log?
> > Hi,
> >
> > You cannot enable both an automatic 6rd interface (wan_6) and a manual
> > created 6rd interface (wan6); Either remove the manual created 6rd
> > interface or set iface6rd to 0 in the wan network config which will
> > disable the automatic creation of the 6rd wan_6 interface
> >
> > Hans
>
> i'm not sure i get it.
> where is the auto created 6rd interface that can't be edited coming from if 
> not
> from the one i created myself?
The auto created 6rd interface is created by the dhcp script
(https://git.openwrt.org/?p=openwrt/openwrt.git;a=blob;f=package/network/config/netifd/files/lib/netifd/dhcp.script;h=00604f40e70e8ba988bde6af04437d326b5b548a;hb=HEAD#l62)
in case the 6rd DHCP option is received.
So it seems your ISP is providing 6rd info via DHCP
>
> the errors stopped once i changed "bring up on boot" on wan6 and ipv6 still
> works (after reboot) but i don't understand why.
This confirms my statement above about 6rd info being provided by DHCP
>
> the config i'm running with is exactly the same as i had on old version of
> openwrt/lede and it worked just fine.
> i guess something is different now.
Pretty sure nothing has changed recently related to the 6rd logic; I
guess it's a race condition between the wan_6 and wan6 interface which
was before not visible
> if i delete wan6 then I delete all 6rd settings like remote ipv4 address, the
> ipv6 prefix and so on.
If the automatic created 6rd interface gives you IPv6 connectivity
there's no reason to keep the manual created wan6 interface

Hans

_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to