Hi,
I've installed OpenWRT on my TL-WR1043ND v2.1 (taking v2 from here).
Everything was working for a while (I guess a few hours of active usage) then I noticed no access to Internet. When I logged in into the router (via ssh) I could see that there is no IP assigned to my wan.
I was playing around with the network configuration. However, without a success. I decided to reset the router to its defaults and this helped with Internet connection. As it turned out, only for a while...
I found a similar problem here but neither unplugging and plugging a cable helps nor switching eth0
with eth1
(schema).
Although I managed to obtain IP with restarting dnsmasq
yesterday, I couldn't reproduce this today .
/etc/config/network
config interface 'loopback'
option ifname 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config interface 'lan'
option type 'bridge'
option ifname 'eth0.1'
option proto 'static'
option ipaddr '192.168.10.1'
option netmask '255.255.255.0'
option ip6assign '60'
config interface 'wan'
option ifname 'eth1.2'
option proto 'dhcp'
#config interface 'wan6'
# option ifname 'eth0.2'
# option proto 'dhcpv6'
config switch
option name 'switch0'
option reset '1'
option enable_vlan '1'
config switch_vlan
option device 'switch0'
option vlan '1'
option ports '1 2 3 4 6t'
config switch_vlan
option device 'switch0'
option vlan '2'
option ports '5 0t'
ifstatus wan
{
"up": false,
"pending": true,
"available": true,
"autostart": true,
"dynamic": false,
"proto": "dhcp",
"device": "eth1.2",
"data": {
}
}
logread | grep eth1
Sun Jun 21 20:52:09 2020 kern.info kernel: [ 1.778552] eth1: Atheros AG71xx at 0xba000000, irq 5, mode: sgmii
Sun Jun 21 20:52:09 2020 kern.info kernel: [ 6.455331] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
Sun Jun 21 20:52:09 2020 kern.info kernel: [ 6.461372] IPv6: ADDRCONF(NETDEV_UP): eth1.1: link is not ready
Sun Jun 21 20:52:09 2020 kern.info kernel: [ 7.538390] eth1: link up (1000Mbps/Full duplex)
Sun Jun 21 20:52:09 2020 kern.info kernel: [ 7.545012] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
Sun Jun 21 20:52:09 2020 kern.info kernel: [ 7.559789] IPv6: ADDRCONF(NETDEV_CHANGE): eth1.1: link becomes ready
Sun Jun 21 20:52:09 2020 kern.info kernel: [ 10.156131] eth1: link down
Sun Jun 21 20:52:19 2020 kern.info kernel: [ 25.213082] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
Sun Jun 21 20:52:19 2020 kern.info kernel: [ 25.220331] eth1: link up (1000Mbps/Full duplex)
Sun Jun 21 20:52:19 2020 kern.info kernel: [ 25.225265] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
Sun Jun 21 20:52:19 2020 daemon.notice netifd: Network device 'eth1' link is up
Sun Jun 21 20:52:19 2020 daemon.notice netifd: VLAN 'eth1.2' link is up
logread | grep wan
Sun Jun 21 20:52:19 2020 daemon.notice netifd: Interface 'wan' is enabled
Sun Jun 21 20:52:19 2020 daemon.notice netifd: Interface 'wan' has link connectivity
Sun Jun 21 20:52:19 2020 daemon.notice netifd: Interface 'wan' is setting up now
Sun Jun 21 20:52:19 2020 daemon.notice netifd: wan (1382): udhcpc: started, v1.30.1
Sun Jun 21 20:52:20 2020 daemon.notice netifd: wan (1382): udhcpc: sending discover
Sun Jun 21 20:52:23 2020 daemon.notice netifd: wan (1382): udhcpc: sending discover
Sun Jun 21 20:52:26 2020 daemon.notice netifd: wan (1382): udhcpc: sending discover
When I managed to get IP, after having broken wan, there was a notification about lease.
If I unplug or plug the cable there is no new entry in logread
.
I have a second, the same router with its original firmware and have no issues with wan (therefore I assume that the cable is fine).
Do you have an idea what the cause is and how to fix it?