OpenWrt Forum Archive

Topic: [TL-WR841n] Help needed with network configuration

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

Hello!

I bought an TL-841N and got v7.2. Luci won't come up after flashing OpenWRT. Wiki told this might happen with Version v7 and there is a opkg update HowTo- OK. Because missing internet there is a link to network configuration also. But I don't unterstand how to set up /etc/config/network, properly.

WLAN-DSL-Router: 192.168.1.1
TP-Link: 192.168.1.13

/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 ifname 'eth0'
        option type 'bridge'
        option proto 'static'
        option ipaddr '192.168.1.13'
        option netmask '255.255.255.0'
        option gateway '192.168.1.1'

config interface 'wan'
        option ifname 'eth1'
        option proto 'dhcp'

config switch
        option name 'eth0'
        option reset '1'
        option enable_vlan '1'

config switch_vlan
        option device 'eth0'
        option vlan '1'
        option ports '0 1 2 3 4'

~
---

I thought just changing ipadr and adding a gateway for lan would be enough. But it isn't. What do I have to change?

Got it myself. Missing dns option for lan.
THX & close

The discussion might have continued from here.