Need help with non AP network configuration
Hi:
I am trying to configure my 3020 as a client only. I do not want to use it to provide internet to other machines.
There are some instructions in the web, but that refers to machines with both wan and lan ethernet ports, and as you know, in 3020 there are only a ethernet port. Situation is similar like in unifi ubiquity, and I have read the instructions for that device, but it was no help form me.
I would like my machine to get internet from the wifi interface, and to be able to access other machines in the same wifi net, and be accesed from the other machines.
I would like also to be able to adminsitrate my 3020 both from the wifi interface, or connecting a machine to the ethernet port.
I should be able to adminsitrate my 3020 (from the eth port), both when wifi connection is stablished and when it is not. I should be able to conect by ssh to my 3020 from the eth port, and then ssh from the 3020 to other machines in the wifi net.
the machine I connect through the eth port should get dhcp from the wifi connection. In any case the 3020 should provide dhcp.
This is my configuration:
/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 wwan'
option tnype 'bridge'
option proto 'static'
option netmask '255.255.255.0'
option ipaddr '192.168.1.10'
config interface 'wwan'
option proto 'dhcp'
option hostname 'OpenWrt'
option peerdns '0'
option dns '8.8.8.8 8.8.4.4'
/etc/config/wireless
config wifi-device 'radio0'
option type 'mac80211'
option macaddr 'XX:f3:c1:55:XX:XX'
option hwmode '11ng'
option htmode 'HT20'
list ht_capab 'SHORT-GI-20'
list ht_capab 'SHORT-GI-40'
list ht_capab 'RX-STBC1'
list ht_capab 'DSSS_CCK-40'
option disabled '0'
option channel '8'
option txpower '20'
option country 'US'
config wifi-iface
option network 'wwan'
option ssid 'XXXXXX'
option encryption 'psk'
option device 'radio0'
option mode 'sta'
option bssid 'XX:23:F8:D9:XX:XX'
option key 'XxXxXxXxXxX'
Firewall is disabled. With this configuration, I can get internet from the wifi connection, and I can administer my 3020 from other machines in the wifi net. So this is ok. But eth0 has dissapeared, and then i can not connect a machine to my 3020 with eth0.
My eth port dissapears when I bridge eth0 and wwan.
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:176 errors:0 dropped:0 overruns:0 frame:0
TX packets:176 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:12816 (12.5 KiB) TX bytes:12816 (12.5 KiB)
wlan0 Link encap:Ethernet HWaddr XX:F3:C1:55:XX:XX
inet addr:192.168.1.36 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1232 errors:0 dropped:0 overruns:0 frame:0
TX packets:1642 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:32
RX bytes:138644 (135.3 KiB) TX bytes:214151 (209.1 KiB)
¿can anyone explain me what am I doing wrong? ¿why my eth port gets deactivated?.
bye, ricardo