#18680: Unable to get WAN address
-----------------------+------------------------
Reporter: clauded1 | Owner: developers
Type: defect | Status: new
Priority: normal | Milestone:
Component: packages | Version: Trunk
Resolution: | Keywords:
-----------------------+------------------------
Comment (by shonjir):
I had this problem with stock OpenWrt Chaos Calmer r45686 on an Archer C7
v2, which continued after switching to my own custom build on r45711. On
a reboot, the WAN port would not acquire an address. Unplugging the
cablemodem immediately fixes the issue, but as @stupidicus notes, it's not
an acceptable solution.
On the default Archer C7 build, eth0 (port 6) is mapped to WAN (port 1)
and eth1 (port 0) is mapped to LAN (ports 2-5). On a hunch, I decided to
change them to a more conventional mapping using eth1 for WAN using the
config changes shown below. The vlan mappings remain the same - only
ports 0 and 6 are swapped.
Upon making this change, my router now reboots normally, and acquires a
WAN address on its own on reboot. This behavior has been consistent
following multiple reboots. It continued to work following upgrade to
r45741.
{{{
config switch_vlan
option device 'switch0'
option vlan '1'
option ports '2 3 4 5 6'
config switch_vlan
option device 'switch0'
option vlan '2'
option ports '0 1'
config interface 'lan'
option ifname 'eth0'
config interface 'wan'
option ifname 'eth1'
}}}
--
Ticket URL: <https://dev.openwrt.org/ticket/18680#comment:8>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets