I guess I'm not able to write the network config file properly so that wan works straight on boot. Here's /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' 'wan'
option 'ifname' 'eth0'
# option 'type' 'bridge'
option 'proto' 'static'
option 'netmask' '255.255.255.0'
option 'dns' '128.176.0.12'
option 'gateway' '192.168.1.1'
option 'ipaddr' '192.168.1.3'
option 'macaddr' ''
option 'ip6addr' ''
option 'ip6gw' ''
config 'interface' 'lan'
option 'proto' 'static'
option 'type' 'bridge'
option 'macaddr' ''
option 'ip6addr' ''
option 'netmask' '255.255.255.0'
option 'gateway' ''
option 'ip6gw' ''
option 'dns' ''
option 'ifname' 'ath0'
option 'ipaddr' '192.168.27.10'
With this, after boot everything looks as it should (ifconfig, route, lan works), except the connections on eth0 (wan) just time out ("ping 192.168.1.1" times out, although leds on the openwrt box and the router blink as they should). Now when I edit the above file and remove the comment before the 'type bridge' and restart the network, suddenly all works as it should (now the main interface is br-wan with the correct ip, etc...)
The interesting thing is that when I leave it like this and reboot, the same trouble happens - connections just time out. After I edit the config/network file and comment out the bridge line again, and restart the network, everything works as it should again.
Where could be the problem? Thanks!