OpenWrt Forum Archive

Topic: WIFI and WAN not working after reboot

The content of this topic has been archived on 23 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi, I'm pretty desperate at this point, so I'm asking for some help please.
After 2 days of research testing I was able to install OpenWrt on my Archer C7 v1.

Everything that I needed was working: LAN; Wifi; WAN PPPoE with bridged ADSL modem; Firewall with some forwarded services and also DDNS.

But after I rebooted the router, Wifi and WAN don't work anymore.
Checking the config I found nothing changed after the reboot and no problem in the kernel log.

The system log is flooded with messages like this:

Sat Jan 21 11:01:37 2017 daemon.notice netifd: Interface 'wan' is now down
Sat Jan 21 11:01:37 2017 daemon.notice netifd: Interface 'wan' is setting up now
Sat Jan 21 11:01:37 2017 daemon.info pppd[9845]: Plugin rp-pppoe.so loaded.
Sat Jan 21 11:01:37 2017 daemon.info pppd[9845]: RP-PPPoE plugin version 3.8p compiled against pppd 2.4.7
Sat Jan 21 11:01:37 2017 daemon.err pppd[9845]: Couldn't open the /dev/ppp device: No such file or directory
Sat Jan 21 11:01:37 2017 daemon.notice netifd: wan (9845): /usr/sbin/pppd: You need to create the /dev/ppp device node by
Sat Jan 21 11:01:37 2017 daemon.notice netifd: wan (9845): executing the following command as root:
Sat Jan 21 11:01:37 2017 daemon.notice netifd: wan (9845):     mknod /dev/ppp c 108 0
Sat Jan 21 11:01:37 2017 daemon.notice netifd: wan (9845): 
Sat Jan 21 11:01:37 2017 daemon.err pppd[9845]: You need to create the /dev/ppp device node by
executing the following command as root:
    mknod /dev/ppp c 108 0

Any suggestion please?

After run

mknod /dev/ppp c 108 0

The system log is now flooded with:

Sat Jan 21 11:19:01 2017 daemon.notice netifd: Interface 'wan' is now down
Sat Jan 21 11:19:01 2017 daemon.notice netifd: Interface 'wan' is setting up now
Sat Jan 21 11:19:01 2017 daemon.info pppd[21322]: Plugin rp-pppoe.so loaded.
Sat Jan 21 11:19:01 2017 daemon.info pppd[21322]: RP-PPPoE plugin version 3.8p compiled against pppd 2.4.7
Sat Jan 21 11:19:01 2017 daemon.err pppd[21322]: Couldn't open the /dev/ppp device: No such device or address
Sat Jan 21 11:19:01 2017 daemon.notice netifd: wan (21322): /usr/sbin/pppd: Please load the ppp_generic kernel module.
Sat Jan 21 11:19:01 2017 daemon.notice netifd: wan (21322):
Sat Jan 21 11:19:01 2017 daemon.err pppd[21322]: Please load the ppp_generic kernel module.

I just found that if, after reboot, I manually run:

/sbin/kmodloader

the WAN starts to work and the bridged modem connects to the internet.

I still don't understand why I have to run that command manually.

Wifi still doesn't work even if the configuration looks ok.

So I did put

/sbin/kmodloader

in /etc/rc.local before

exit 0

and now things works pretty well after reboot.

But I dislike this hack and I'm still searching for help to make it work without this hack.

Update.

I had to restart the router after 1 month and I found out that wifi still wasn't working after reboot.

I just run:

/etc/init.d/network restart

and Wifi AP did start.

So I added also that line to /etc/rc.local.

The discussion might have continued from here.