OpenWrt Forum Archive

Topic: Newbie assistance please - using my 3G connection on the wifi

The content of this topic has been archived on 29 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi there

I have a tp-link 703n that I have managed to install openwrt and luci. I eventually got my 3G USB dongle to connect. However, when I connect my laptop to the wifi of the router, it does not have internet connection - even though the 3G connection is up and running.

I know it must be a network configuration issue but for the life of me Im unsure how to do it.

I currently have two network interfaces set up
WAN
- this is my 3G connection
LAN
here the ethernet port and the wifi is bridged
It is set up as a static IP 192.168.1.1

Im not sure what I am missing.... help appreciated.

Execute "uci export network ; uci export wireless".

fyi wrote:

Execute "uci export network ; uci export wireless".

Here it is

package '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 'type' 'bridge'
    option '_orig_ifname' 'eth0 wlan0'
    option '_orig_bridge' 'true'
    option 'proto' 'static'
    option 'ipaddr' '192.168.1.1'
    option 'netmask' '255.255.255.0'
    option 'ifname' 'eth0'

config 'interface' 'WAN'
    option 'ifname' 'ppp0'
    option 'proto' '3g'
    option 'service' 'umts'
    option 'apn' 'internet'
    option 'pincode' '8812'
    option 'type' 'bridge'
    option 'device' '/dev/ttyUSB0'

package 'wireless'

config 'wifi-device' 'radio0'
    option 'type' 'mac80211'
    option 'channel' '11'
    option 'macaddr' '14:e6:e4:e7:41:00'
    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 'txpower' '27'
    option 'country' 'US'

config 'wifi-iface'
    option 'device' 'radio0'
    option 'mode' 'ap'
    option 'encryption' 'none'
    option 'ssid' 'JJM_TP'
    option 'network' 'lan'

I ticked something in Luci and now it is working smile

My config files now look like this:

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 'type' 'bridge'
    option '_orig_ifname' 'eth0 wlan0'
    option '_orig_bridge' 'true'
    option 'proto' 'static'
    option 'ipaddr' '192.168.1.1'
    option 'netmask' '255.255.255.0'
    option 'ifname' 'eth0'

config 'interface' 'wan'
    option 'proto' '3g'
    option 'service' 'umts'
    option 'apn' 'internet'
    option 'pincode' '8812'
    option 'type' 'bridge'
    option 'device' '/dev/ttyUSB0'

package 'wireless'

config 'wifi-device' 'radio0'
    option 'type' 'mac80211'
    option 'channel' '11'
    option 'macaddr' '14:e6:e4:e7:41:00'
    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 'txpower' '27'
    option 'country' 'US'

config 'wifi-iface'
    option 'device' 'radio0'
    option 'mode' 'ap'
    option 'encryption' 'none'
    option 'ssid' 'JJM_TP'
    option 'network' 'lan'

I wonder, is it possible to seperate the lan from the wifi (IE disconnect the bridge).

I want to do this so that I can plug the router into a thernet cable at work and broadcast it via wifi to connect my phone onto the work network?

However I would like to do this without the need to change settings etc - is it possible?

3g -> virtual ap with ssid1
eth0 -> virtual ap with ssid2

You have to modify network, wireless, firewall and dhcp under /etc/config.

Thanks, I'll backup the current setup just in case

The discussion might have continued from here.