Restart WLAN IPV6 Interface after Boot to get DHCP IP

I have the problem that i don't get a DHCP v6 IP on my WLAN V6 Interface after every reboot.

I have to go into the Interface Settings and disable "Bring up on Boot" -> Apply -> Go into again -> enable "Bring up on Boot" -> Apply to succesfully get the DHCP V6 IP.

Can somebody give my a simple script which i can add to the Startup Section to achieve this automatically?

Thanks all for help!

After restart, log into the router via SSH and check if some of the following commands
will work for you:

ifdown wwan6 && sleep 3 && ifup wwan6

wifi down && sleep 3 && wifi up

/etc/init.d/network restart

We'll think about the script later

2 Likes

Perfect this did the trick! :wink:

1 Like

Unfortunatly this worked only one time :frowning:
I tried now different restart commands for WLAN and WWAN interfaces on the command line and in the startup scripts but this didn't work either... (the commands itself worked but i still get "Network Device not present" on the Inferfaces GUI on the WWAN6 Interface)
The only reliant thing on the GUI is over the "Bring up on boot Option" (Disable/Apply/Enable/Apply)


But i dont found a script way for that until now...

Uncheck Bring up on boot of the wwan6 interface.
Insert the following in /etc/rc.local

sleep 30
ifup wwan6

EDIT:
If it doesn't work, check again Bring up on boot and try the following:

sleep 30
uci set network.wwan6.auto=0
uci commit network
/etc/init.d/network restart
uci set network.wwan6.auto=1
uci commit network
/etc/init.d/network restart
1 Like

This seems a hard computer science problem... :smiley:
Tried also the UCI Commands already... but still no success ...

I have found now a working script, after "some" tries :smiley:

sleep 20
uci set network.WWAN6.auto=0
uci commit network
service network reload
sleep 5
uci set network.WWAN6.auto=1
uci commit network
service network reload
sleep 5
uci set network.WWAN6.auto=0
uci commit network
service network reload
sleep 5
ifup WWAN6
uci set network.WWAN6.auto=1
uci commit network

Don't really know why i need so many switching between "Enable/Disable bringing up on boot"...

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.