Convert LAN port as WAN on TP-link WR841N v8?
Posted: Sun Jun 18, 2017 11:16 pm
Hi, I just want to convert my LAN port as WAN on my TP-link router because I think my WAN is broken after a storm. I tried to change the code in my etc/config/network using WinSCP but after doing that I cannot access my default gateway to enter Gargoyle anymore. What seems to be the problem? I'm thinking I put wrong code. Can someone help me with the right code.
The code of my 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 'fd15:981e:6c8a::/48'
config interface 'lan'
option ifname 'eth1'
option force_link '1'
option type 'bridge'
option proto 'static'
option netmask '255.255.255.0'
option ip6assign '60'
option ipaddr '192.168.2.1'
option dns '192.168.2.1'
config interface 'wan'
option ifname 'eth0'
option proto 'dhcp'
option ipv6 '0'
config interface 'wan6'
option ifname 'eth0'
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 4'
Thanks.
The code of my 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 'fd15:981e:6c8a::/48'
config interface 'lan'
option ifname 'eth1'
option force_link '1'
option type 'bridge'
option proto 'static'
option netmask '255.255.255.0'
option ip6assign '60'
option ipaddr '192.168.2.1'
option dns '192.168.2.1'
config interface 'wan'
option ifname 'eth0'
option proto 'dhcp'
option ipv6 '0'
config interface 'wan6'
option ifname 'eth0'
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 4'
Thanks.