Hi.
I've got a linksys wdr3200acm plugged into an arris surfboard cable modem, and it's not picking up an IP from DHCP. If I connect a laptop directly to the modem, the laptop gets an IP successfully, but the OpenWRT router is having problems.
When I reset all the config on OpenWrt SNAPSHOT, r9640-e7a7749a3c
, what I get in dmesg is an apparently never-ending stream of messages that look like this, when the wan interface is plugged into the modem:
[ 327.899358] mvneta f1070000.ethernet eth1: Link is Up - 1Gbps/Full - flow control off
[ 327.907495] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
[ 328.004127] mvneta f1070000.ethernet eth1: Link is Down
[ 328.015446] mvneta f1070000.ethernet eth1: configuring for fixed/rgmii-id link mode
[ 328.023275] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
[ 328.029337] mvneta f1070000.ethernet eth1: Link is Up - 1Gbps/Full - flow control off
[ 328.037271] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
[ 328.134244] mvneta f1070000.ethernet eth1: Link is Down
[ 328.145655] mvneta f1070000.ethernet eth1: configuring for fixed/rgmii-id link mode
[ 328.153490] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
[ 328.159418] mvneta f1070000.ethernet eth1: Link is Up - 1Gbps/Full - flow control off
[ 328.169548] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
[ 328.255526] mvneta f1070000.ethernet eth1: Link is Down
[ 328.266967] mvneta f1070000.ethernet eth1: configuring for fixed/rgmii-id link mode
[ 328.274782] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
[ 328.280759] mvneta f1070000.ethernet eth1: Link is Up - 1Gbps/Full - flow control off
[ 328.288789] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
[ 328.384217] mvneta f1070000.ethernet eth1: Link is Down
[ 328.395530] mvneta f1070000.ethernet eth1: configuring for fixed/rgmii-id link mode
[ 328.403340] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
[ 328.409307] mvneta f1070000.ethernet eth1: Link is Up - 1Gbps/Full - flow control off
[ 328.417236] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
[ 328.524191] mvneta f1070000.ethernet eth1: Link is Down
[ 328.535368] mvneta f1070000.ethernet eth1: configuring for fixed/rgmii-id link mode
[ 328.543168] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
[ 328.549073] mvneta f1070000.ethernet eth1: Link is Up - 1Gbps/Full - flow control off
[ 328.558891] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
[ 328.654189] mvneta f1070000.ethernet eth1: Link is Down
[ 328.665262] mvneta f1070000.ethernet eth1: configuring for fixed/rgmii-id link mode
[ 328.673080] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
[ 328.679041] mvneta f1070000.ethernet eth1: Link is Up - 1Gbps/Full - flow control off
[ 328.690297] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
[ 328.804564] mvneta f1070000.ethernet eth1: Link is Down
[ 328.815771] mvneta f1070000.ethernet eth1: configuring for fixed/rgmii-id link mode
[ 328.823570] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
[ 328.829565] mvneta f1070000.ethernet eth1: Link is Up - 1Gbps/Full - flow control off
(plus /sbin/netifd running at ~20-50% cpu, which I don't really blame it...)
Of course, no address appears on wan.
After disabling ipv6 by commenting out the wan6 block in /etc/config/network and adding this to /etc/sysctl.conf:
net.ipv6.conf.default.forwarding=0
net.ipv6.conf.all.forwarding=0
I also tried moving to my own build of 18.06.2, which says OpenWrt 18.06.2, r7676-cddd7b4c77
at login, but the behavior seems no different to me.
Anyway, I now get a saner-looking dmesg, it's not spinning like crazy anymore.
After searching around, I also tried editing the clientid as suggested in one of the comments here:
https://dev.archive.openwrt.org/ticket/13581
But no joy.
My /etc/config/network looks like this:
root@OpenWrt:~# cat /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 globals 'globals'
option ula_prefix 'fd31:b646:6e96::/48'
config interface 'lan'
option type 'bridge'
option ifname 'eth0.1'
option proto 'static'
option ipaddr '192.168.1.1'
option netmask '255.255.255.0'
option ip6assign '60'
config interface 'wan'
option ifname 'eth1.2'
option proto 'dhcp'
option clientid '01:38:e0:bc:c0:f0'
#config interface 'wan6'
# option ifname 'eth1.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 '0 1 2 3 5t'
config switch_vlan
option device 'switch0'
option vlan '2'
option ports '4 6t'
One odd thing I notice is the wan interface says it's not up:
root@OpenWrt:/etc/config# ifstatus wan
{
"up": false,
"pending": true,
"available": true,
"autostart": true,
"dynamic": false,
"proto": "dhcp",
"device": "eth1.2",
"data": {
}
}
But even though ifstatus says it's down, ip addr seems to think the interface is up, just failing to learn an IP:
root@OpenWrt:~# ip addr show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 532
link/ether 60:38:e0:bc:c0:f0 brd ff:ff:ff:ff:ff:ff
inet6 fe80::6238:e0ff:febc:c0f0/64 scope link
valid_lft forever preferred_lft forever
3: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 532
link/ether 62:38:e0:bc:c0:f0 brd ff:ff:ff:ff:ff:ff
inet6 fe80::6038:e0ff:febc:c0f0/64 scope link
valid_lft forever preferred_lft forever
5: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
link/ether 60:38:e0:bc:c0:f2 brd ff:ff:ff:ff:ff:ff
6: wlan1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
link/ether 60:38:e0:bc:c0:f1 brd ff:ff:ff:ff:ff:ff
7: mlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
link/ether 60:38:e0:bc:c0:f3 brd ff:ff:ff:ff:ff:ff
11: br-lan: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP qlen 1000
link/ether 62:38:e0:bc:c0:f0 brd ff:ff:ff:ff:ff:ff
inet 192.168.1.1/24 brd 192.168.1.255 scope global br-lan
valid_lft forever preferred_lft forever
inet6 fd31:b646:6e96::1/60 scope global
valid_lft forever preferred_lft forever
inet6 fe80::6038:e0ff:febc:c0f0/64 scope link
valid_lft forever preferred_lft forever
12: eth0.1@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br-lan state UP qlen 1000
link/ether 62:38:e0:bc:c0:f0 brd ff:ff:ff:ff:ff:ff
13: eth1.2@eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP qlen 1000
link/ether 60:38:e0:bc:c0:f0 brd ff:ff:ff:ff:ff:ff
inet6 fe80::6238:e0ff:febc:c0f0/64 scope link
valid_lft forever preferred_lft forever
At this point, I figured I'm stuck enough to come beg for help.
Anyone have any ideas? I'm stumped for tonight.
Thanks.