TL-WR841N problem z internetem

A więc coś takiego uzyskałem:

root@OpenWrt:~# cat /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 'fd0d:3e5d:dec7::/48'
config interface 'lan'
        option ifname 'eth0'
        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 'eth1'
        option _orig_ifname 'eth1'
        option _orig_bridge 'false'
        option proto 'static'
        option ipaddr '81.21.197.205'
        option netmask '255.255.255.192'
        option gateway '81.21.197.193'
        option dns '81.21.192.130 81.21.201.2 8.8.8.8'
        option macaddr 'BC:EE:7B:19:CC:B5'
config interface 'wan6'
        option ifname 'eth1'
        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'
root@OpenWrt:~# root@OpenWrt:~# cat /etc/config/network
-ash: root@OpenWrt:~#: not found
root@OpenWrt:~#
root@OpenWrt:~# config interface 'loopback'
-ash: config: not found
root@OpenWrt:~#         option ifname 'lo'
-ash: option: not found
root@OpenWrt:~#         option proto 'static'
-ash: option: not found
root@OpenWrt:~#         option ipaddr '127.0.0.1'
-ash: option: not found
root@OpenWrt:~#         option netmask '255.0.0.0'
-ash: option: not found
root@OpenWrt:~#
root@OpenWrt:~# config globals 'globals'
-ash: config: not found
root@OpenWrt:~#         option ula_prefix 'fd0d:3e5d:dec7::/48'
-ash: option: not found
root@OpenWrt:~#
root@OpenWrt:~# config interface 'lan'
-ash: config: not found
root@OpenWrt:~#         option ifname 'eth0'
-ash: option: not found
root@OpenWrt:~#         option force_link '1'
        option type 'bridge'
        option proto 'static'
-ash        option ipaddr '192.168.1.1'
        option netmask '255.255.255.0'
:         option ip6assign '60'
optionconfig interface 'wan'
        option ifname 'eth1'
:         option _orig_ifname 'eth1'
        option _orig_bridge 'false'
not found        option proto 'static'
        option ipaddr '81.21.197.205'
        option netmask '255.255.255.192'
        option gateway '81.21.197.193'
root@OpenWrt:~#         option type 'bridge'
-ash: option: not found
root@OpenWrt:~#         option proto 'static'
-ash: option: not found
root@OpenWrt:~#         option ipaddr '192.168.1.1'
-ash: option: not found
root@OpenWrt:~#         option netmask '255.255.255.0'
-ash: option: not found
root@OpenWrt:~#         option ip6assign '60'
-ash: option: not found
root@OpenWrt:~#
root@OpenWrt:~# config interface 'wan'
-ash: config: not found
root@OpenWrt:~#         option ifname 'eth1'
-ash: option: not found
root@OpenWrt:~#         option _orig_ifname 'eth1'
-ash: option: not found
root@OpenWrt:~#         option _orig_bridge 'false'
-ash: option: not found
root@OpenWrt:~#         option proto 'static'
-ash: option: not found
root@OpenWrt:~#         option ipaddr '81.21.197.205'
-ash: option: not found
root@OpenWrt:~#         option netmask '255.255.255.192'
-ash: option: not found
root@OpenWrt:~#         option gateway '81.21.197.193'
-ash: option: not found
root@OpenWrt:~#         option dns '81.21.192.130 81.21.201.2 8.8.8.8'
-ash: option: not found
root@OpenWrt:~#         option macaddr 'BC:EE:7B:19:CC:B5'
-ash: option: not found
root@OpenWrt:~#
root@OpenWrt:~# config interface 'wan6'
-ash: config: not found
root@OpenWrt:~#         option ifname 'eth1'
-ash: option: not found
root@OpenWrt:~#         option proto 'dhcpv6'
-ash: option: not found
root@OpenWrt:~#
root@OpenWrt:~# config switch
-ash: config: not found
root@OpenWrt:~#         option name 'switch0'
-ash: option: not found
root@OpenWrt:~#         option reset '1'
-ash: option: not found
root@OpenWrt:~#         option enable_vlan '1'
-ash: option: not found
root@OpenWrt:~#
root@OpenWrt:~# config switch_vlan
-ash: config: not found
root@OpenWrt:~#         option device 'switch0'
-ash: option: not found
root@OpenWrt:~#         option vlan '1'
-ash: option: not found
root@OpenWrt:~#         option ports '0 1 2 3 4'
-ash: option: not found
root@OpenWrt:~#
root@OpenWrt:~# root@OpenWrt:~#
-ash: root@OpenWrt:~#: not found
root@OpenWrt:~#

Z tego:

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 'fd0d:3e5d:dec7::/48'
config interface 'lan'
        option ifname 'eth0'
        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 'eth1'
        option _orig_ifname 'eth1'
        option _orig_bridge 'false'
        option proto 'static'
        option ipaddr '81.21.197.205'
        option netmask '255.255.255.192'
        option gateway '81.21.197.193'
        option dns '81.21.192.130 81.21.201.2 8.8.8.8'
        option macaddr 'BC:EE:7B:19:CC:B5'
config interface 'wan6'
        option ifname 'eth1'
        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'

Musisz wyedytować na to:

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 'fd0d:3e5d:dec7::/48'
config interface 'lan'
        option ifname '[b]eth0.1[/b]'
        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 '[b]eth0.2[/b]'
        option _orig_ifname '[b]eth0.2[/b]'
        option _orig_bridge 'false'
        option proto 'static'
        option ipaddr '81.21.197.205'
        option netmask '255.255.255.192'
        option gateway '81.21.197.193'
        option dns '81.21.192.130 81.21.201.2 8.8.8.8'
        option macaddr 'BC:EE:7B:19:CC:B5'
config interface 'wan6'
        option ifname '[b]eth0.2[/b]'
        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 '[b]0t 1 2 3[/b]'
[b]config switch_vlan
        option device 'switch0'
        option vlan '2'
        option ports '0t 4'[/b]

To co pogrubiłem to trzeba zmienić/dopisać
możesz to zrobić za pomocą wbudowanego edytora vi lub wyklikać te opcje w luci tylko pisania jest bardzo dużo.
Szybki poradnik do obsługi vi: http://eko.one.pl/?p=vi
Jeśli nie dasz sobie z tym rady to daj znać. Postaram się opisać co i jak używając LuCI.