Wprowadziłem takie ustawienia. Czy teraz należy zrobić jakiś restart, czy może coś innego ?
root@Gargoyle:~# 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 interface 'lan'
option ifname 'eth0'
option type 'bridge'
option proto 'static'
option ipaddr '192.168.12.1'
option netmask '255.255.255.0'
option dns '192.168.12.1'
config interface 'wan'
option auto '0'
option ifname 'wwan0'
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'
cat /etc/rc.local
# Put your custom commands here that should be executed once
# the system init finished. By default this file does nothing.
#!/bin/sh
PORT=/dev/ttyUSB0
sleep 30
MODE="AT^NDISDUP=1,1,\internet\"" gcom -d $PORT -s /etc/gcom/setmode.gcom
sleep 3
ifup wan &
exit 0
ifconfig
br-lan Link encap:Ethernet HWaddr 90:F6:52:81:F7:AD
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4396 errors:0 dropped:290 overruns:0 frame:0
TX packets:1591 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:378704 (369.8 KiB) TX bytes:484872 (473.5 KiB)
eth0 Link encap:Ethernet HWaddr 90:F6:52:81:F7:AD
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:7841 errors:0 dropped:74 overruns:0 frame:0
TX packets:2781 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1075406 (1.0 MiB) TX bytes:947528 (925.3 KiB)
Interrupt:5
eth1 Link encap:Ethernet HWaddr 90:F6:52:81:F7:AF
inet addr:192.168.0.14 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1036 errors:0 dropped:0 overruns:0 frame:0
TX packets:1727 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:430946 (420.8 KiB) TX bytes:155108 (151.4 KiB)
Interrupt:4
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:1288 errors:0 dropped:0 overruns:0 frame:0
TX packets:1288 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:91500 (89.3 KiB) TX bytes:91500 (89.3 KiB)