NAzT
9/18/2014 - 5:27 PM

network.works

network.works

br-lan    Link encap:Ethernet  HWaddr E8:94:F6:05:A4:15
          inet addr:192.168.60.1  Bcast:192.168.60.255  Mask:255.255.255.0
          inet6 addr: fe80::ea94:f6ff:fe05:a415/64 Scope:Link
          inet6 addr: fd86:543c:67e5::1/60 Scope:Global
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:11848 errors:0 dropped:0 overruns:0 frame:0
          TX packets:12543 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:1431956 (1.3 MiB)  TX bytes:5629877 (5.3 MiB)

eth0      Link encap:Ethernet  HWaddr E8:94:F6:05:A4:16
          inet addr:192.168.42.21  Bcast:192.168.42.255  Mask:255.255.255.0
          inet6 addr: fe80::ea94:f6ff:fe05:a416/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:41020 errors:0 dropped:0 overruns:0 frame:0
          TX packets:43577 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:18687972 (17.8 MiB)  TX bytes:4172023 (3.9 MiB)
          Interrupt:4

eth1      Link encap:Ethernet  HWaddr E8:94:F6:05:A4:15
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:9788 errors:0 dropped:0 overruns:0 frame:0
          TX packets:10799 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1454968 (1.3 MiB)  TX bytes:2757911 (2.6 MiB)
          Interrupt:5

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:87 errors:0 dropped:0 overruns:0 frame:0
          TX packets:87 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:6060 (5.9 KiB)  TX bytes:6060 (5.9 KiB)

wlan0     Link encap:Ethernet  HWaddr E8:94:F6:05:A4:16
          inet6 addr: fe80::ea94:f6ff:fe05:a416/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:23128 errors:0 dropped:0 overruns:0 frame:0
          TX packets:25064 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:2888348 (2.7 MiB)  TX bytes:17581515 (16.7 MiB)

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 'fd86:543c:67e5::/48'

config interface 'lan'
	option force_link '1'
	option type 'bridge'
	option proto 'static'
	option netmask '255.255.255.0'
	option ip6assign '60'
	option _orig_ifname 'eth1 wlan0'
	option _orig_bridge 'true'
	option ifname 'eth1'
	option dns '8.8.8.8'
	option ipaddr '192.168.60.1'

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

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

config interface '3g'
	option ifname '3g'
	option proto '3g'
	option device '/dev/ttyUSB0'
	option service 'umts'
	option apn 'internet'
	option username 'true'
	option password 'true'