OpenWrt Forum Archive

Topic: [Help] TP-LINK TL-WR941ND: I need to change Lan port to Wan....

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

Hello.  The WAN port of my TL-WR941ND is diying... (WAN port is unplugged! message error every few seconds).

I just installed openwrt-ar71xx-generic-tl-wr941nd-v3-squashfs-factory.bin firmware on it.  I want to change Lan1 (or Lan4) to WAN.

My actual /etc/config/network file is:

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 'fd3d:3b06:fafe::/48'

config interface 'eth'
        option ifname 'eth0'
        option proto 'none'

config interface 'lan'
        option ifname 'lan1 lan2 lan3 lan4'
        option force_link '1'
        option type 'bridge'
        option proto 'static'
        option ipaddr '192.168.1.1'
        option netmask '255.255.255.0'
        option ip6assign '60'

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

config interface 'wan6'
        option ifname '@wan'
        option proto 'dhcpv6'

What should I edit in this file to use the LAN1 port as a WAN?

swconfig is installed, but, I dont see any "switch" item in LuCI Network menu (LuCI Trunk (0.12+svn-r10530). Why?

Thanks in advance...

--
wichito

I'm not 100% but I think that first model that has support for vlans is wr1043 and that your router has only one port connected to switch.

You can use swconfig to check out if your device has multiple ports that you can use or it is just one port connected to switch.

Read this: http://wiki.openwrt.org/doc/techref/swconfig

You will probably need to buy new router sad

(Last edited by valentt on 26 Apr 2015, 23:29)

Thanks for answering.

I found this in http://wiki.openwrt.org/toh/tp-link/tl- … lan_config:

VLAN Config

Setting up VLANs is a bit different from other devices:

First, You Have to edit /etc/rc.local (sample config for VLAN 100 and 200 on trunk port lan4):
# Put your custom commands here eleven That Should be Executed
# The system init finished. By default this file does nothing.
vconfig add lan4 100
vconfig add lan4 200
lan4.100 ifconfig up
lan4.200 ifconfig up
exit 0

Then, You Have to edit / etc / config / network and reboot the device (that is Executed /etc/rc.local):
config interface VLAN100
         ifname option "lan1 lan2 lan3 lan4.100"
         # [...]
config interface vlan200
         ifname option "lan4.200"

This means that this model does support vlans?
If so, how do I configure the Lan1 port as a WAN port?

Thanks...

By reading documentation on the wiki smile
http://wiki.openwrt.org/doc/uci/network/switch

Once you set it up, pay it back by editing wr941nd wiki with additional information.

(Last edited by valentt on 27 Apr 2015, 08:43)

The discussion might have continued from here.