What's new

WiFi as WAN with RT-AC68U

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

DerBinski

Occasional Visitor
I have a RT-AC68U running 376.45. Now I bought a Huawei - E5786 - Mobile WiFi - LTE Hotspot http://consumer.huawei.com/en/mobile-broadband/mobile-wifi/tech-specs/e5786s-32a-en.htm. The device has no LAN port.

Is it possible to use the Huaweis WiFi as WAN in my RT-AC68U?

I use a openVPN tunnel for all my internet traffic when I´m connected with ADSL as WAN. (openVPN Client)

Will it be possible to use the openVPN tunnel when WiFi as WAN is used?

What are my possibilities? The setting Options in the E5786 are very simple. So perhaps I need some kind of "RT-AC68U as Client" mode. The Huawai has a 2,4 or 5GHz WiFi.

Perhaps it would be possible to use the 5GHz band as some kind of Bridge and the 2,4GHz WiFi for Clients?

Any help would be greatly appreciated .

Regards Binski
 
Perhaps you could plug the E5786 into the router through the USB port. Then try Dual-WAN and USB 3G/4G mode.
 
Perhaps you could plug the E5786 into the router through the USB port. Then try Dual-WAN and USB 3G/4G mode.

I'm not sure that E5786 support IP over USB or detected as modem by RT-AC68U


Is it possible to use the Huaweis WiFi as WAN in my RT-AC68U?
yes

Will it be possible to use the openVPN tunnel when WiFi as WAN is used?

yes

What are my possibilities? The setting Options in the E5786 are very simple. So perhaps I need some kind of "RT-AC68U as Client" mode. The Huawai has a 2,4 or 5GHz WiFi.

Perhaps it would be possible to use the 5GHz band as some kind of Bridge and the 2,4GHz WiFi for Clients?

yes


but all of these by your hand!!! and start-up scripts.

1. by brctl
- remove eth2 (5GHz) from bridge br0 (be daefault br0 conatain vlan1(vlan0) eth1 eth2)
- create new bridge br1 and add to it wan(vlan1 or vlan2) and eth2

2. connect eth2 to your Huawei by use wl and wlconf command.
 
Last edited:
Perhaps you could plug the E5786 into the router through the USB port. Then try Dual-WAN and USB 3G/4G mode.

Thank you for your suggestion but the AC68U will not detect the E5786 and it is not on list of supported devices. http://www.asus.com/event/networks_3G4G_support/

AndreyPopov said:
1. by brctl
- remove eth2 (5GHz) from bridge br0 (be daefault br0 conatain vlan1(vlan0) eth1 eth2)
- create new bridge br1 and add to it wan(vlan1 or vlan2) and eth2

2. connect eth2 to your Huawei by use wl and wlconf command.

Thank you for your answer. I will try to build these startup scripts.

Perhaps you can go a little bit more in detail or point me to some howtos or threads where I can find more advise. I´m totaly new in scripting the router.

Regards Binski
 
That´s what I managed t odo so far:
Code:
#!/bin/sh
PATH="/sbin:/usr/sbin:/bin:/usr/bin:${PATH}"

# services-start script

# remove eth2 (5GHz) from bridge br0 (be daefault br0 conatain vlan1(vlan0) eth1 eth2)
brctl delif br0 eth2

# create new bridge br1 and add to it wan(vlan1 or vlan2) and eth2
brctl addbr br1
brctl addif br1 eth2

But now I´m not sure with the WAN interface. eth0 seems to be the physikal WAN interface. But what is vlan1?

#brctl show
Code:
admin@RT-AC68U-EAE8:/tmp/home/root# brctl show
bridge name     bridge id               STP enabled     interfaces
br0             8000.bcee7bddeae8       yes             vlan1
                                                        eth1
br1             8000.bcee7bddeaec       no              eth2

#ifconfig
Code:
br0        Link encap:Ethernet  HWaddr BC:EE:7B:DD:EA:E8
           inet addr:192.168.2.1  Bcast:192.168.2.255  Mask:255.255.255.0
           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
           RX packets:21324 errors:0 dropped:0 overruns:0 frame:0
           TX packets:13133 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:0
           RX bytes:2349920 (2.2 MiB)  TX bytes:2887918 (2.7 MiB)

eth0       Link encap:Ethernet  HWaddr BC:EE:7B:DD:EA:E8
           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
           RX packets:129483 errors:0 dropped:0 overruns:0 frame:0
           TX packets:115189 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:1000
           RX bytes:79314554 (75.6 MiB)  TX bytes:68456891 (65.2 MiB)
           Interrupt:179 Base address:0x4000

eth1       Link encap:Ethernet  HWaddr BC:EE:7B:DD:EA:E8
           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
           RX packets:75941 errors:0 dropped:0 overruns:0 frame:1319
           TX packets:87825 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:1000
           RX bytes:54010821 (51.5 MiB)  TX bytes:66213416 (63.1 MiB)
           Interrupt:163

eth2       Link encap:Ethernet  HWaddr BC:EE:7B:DD:EA:EC
           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
           RX packets:0 errors:0 dropped:0 overruns:0 frame:1
           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:1000
           RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
           Interrupt:169

lo         Link encap:Local Loopback
           inet addr:127.0.0.1  Mask:255.0.0.0
           UP LOOPBACK RUNNING MULTICAST  MTU:16436  Metric:1
           RX packets:112 errors:0 dropped:0 overruns:0 frame:0
           TX packets:112 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:0
           RX bytes:22618 (22.0 KiB)  TX bytes:22618 (22.0 KiB)

ppp0       Link encap:Point-to-Point Protocol
           inet addr:84.140.24.242  P-t-P:217.0.116.104  Mask:255.255.255.255
           UP POINTOPOINT RUNNING MULTICAST  MTU:1492  Metric:1
           RX packets:31699 errors:0 dropped:0 overruns:0 frame:0
           TX packets:40377 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:3
           RX bytes:11568719 (11.0 MiB)  TX bytes:32792888 (31.2 MiB)

vlan1      Link encap:Ethernet  HWaddr BC:EE:7B:DD:EA:E8
           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
           RX packets:20494 errors:0 dropped:0 overruns:0 frame:0
           TX packets:14082 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:0
           RX bytes:2853223 (2.7 MiB)  TX bytes:2947596 (2.8 MiB)

I don´t know how to add "WAN" to br1. Any help appreciated.

Regards Binski
 
eth0 - is network 5port switch
eth1 - 2G wifi
eth2 - 5G wifi

try robocfg show to see what vlanX is WAN and what vlanY is LAN (vlan1 is LAN) then WAN is vlan0 or vlan2

IMHO: use init-start script
 
try robocfg show

IMHO: use init-start script

Thank you very mutch for your help again.


Code:
admin@RT-AC68U-EAE8:/tmp/home/root# robocfg show
Switch: enabled
Port 0:  100FD enabled stp: none vlan: 2 jumbo: off mac: 00:90:1a:41:8e:71
Port 1: 1000FD enabled stp: none vlan: 1 jumbo: off mac: 00:90:f5:f5:01:50
Port 2:   DOWN enabled stp: none vlan: 1 jumbo: off mac: 00:00:00:00:00:00
Port 3:   DOWN enabled stp: none vlan: 1 jumbo: off mac: 00:00:00:00:00:00
Port 4:   DOWN enabled stp: none vlan: 1 jumbo: off mac: 00:00:00:00:00:00
Port 8:   DOWN enabled stp: none vlan: 2 jumbo: off mac: 00:00:00:00:00:00
VLANs: BCM5301x enabled mac_check mac_hash
   1: vlan1: 1 2 3 4 5t
   2: vlan2: 0 5
  56: vlan56: 0t 2t 4 7t
  57: vlan57: 0t 1t 2t 4t 7 8u
  58: vlan58: 0 2 3t 5t 8u
  59: vlan59: 0t 2 7
  60: vlan60: 0 5
  61: vlan61: 5t
  62: vlan62: 1t 7t

So I think WAN must be vlan2 right? If I get you right I have to add it to br1 now.
Code:
brctl addif br1 eth2

Code:
admin@RT-AC68U-EAE8:/tmp/home/root# brctl show
bridge name     bridge id               STP enabled     interfaces
br0             8000.bcee7bddeae8       yes             vlan1
                                                        eth1
br1             8000.bcee7bddeae8       no              eth2
                                                        vlan2

Is this correct?

I was not able to find good information on how to connect eth2 to the Huawei using wl and wlconf. Perhaps there are a few threads that I missed.

Regards Binski
 
wl -a eth2 join <ssid> key xxxxx amode wpapsk

will not work. Allways get the error wl: Unsupported

Code:
admin@RT-AC68U-EAE8:/tmp/home/root# wl -a eth2 join JARU-Net-LTE-Gateway key xxxMY_PSKxxx amode wpapsk
wl: Unsupported

Site Survey in gui will show me the Huawei

Code:
JARU-Net-LTE-Gateway	36 (ac)	WPA2-Personal (TKIP+AES)	5GHz

Any help appreciated

rgds Binski
 
will not work. Allways get the error wl: Unsupported

Code:
admin@RT-AC68U-EAE8:/tmp/home/root# wl -a eth2 join JARU-Net-LTE-Gateway key xxxMY_PSKxxx amode wpapsk
wl: Unsupported

Site Survey in gui will show me the Huawei

Code:
JARU-Net-LTE-Gateway	36 (ac)	WPA2-Personal (TKIP+AES)	5GHz

Any help appreciated

rgds Binski



try add imode ibss to command
 
try use quoted ssid and key by "

and set you Huawei WPA2-PSK AES (only)

There are three options in the Huawei 1. "WPA/WPA2-PSK" (set by default) 2."WPA2-PSK" and 3."WEP". AES option is missing. I used 2."WPA2-PSK"

Code:
 wl -a eth2 join "JARU-Net-LTE-Gateway" key "xxxxxxxx" imode ibss amode wpapsk
wl: Unsupported

same result
 
I get stuck here. I´m not able to connect to the Huawei using the "wl" command in any variation. I searched in different forums but I can´t find code snippets to connect as a client to another WiFi.

When I Switch the router to "Repeater Mode" in the gui it will connect to Huawei without any problems.

Any hints, howtos or other options?


regards Binski
 
Hey Binski.

I'm nearly in the same situations as you - Merlin firmware on an Asus router (RT-N66U on my side) with a huawei hotspot and, as my main wan provider (numericable / france) is really unreliable, i would like to wire the huawei hotspot in dual wan mode.

Did you managed in the meanwhile to achieve this configuration on your side ? Seems not so easy at first glance.
 
Hi all, I have the same situation.
I have Asus ac68u with Merlin on board, open wifi network with online authentication (I mean through web-page, where you have to type login/pass).
What I expect is to have an internet connection through this open wifi network and share the internet to all of my users (on my local network).
So what I need is to connect to open wifi network with using one of my wifi adapters (2.4Ghz, eth1) and use it as WAN on Asus AC68U.
I was trying to do all the steps which is described here (with small modification):
  1. remove eth1 (2.4Ghz adapter) from br0
    Code:
    brctl delif br0 eth1
  2. create new Bridge - br1
    Code:
    brctl addbr br1
  3. add eth1 and vlan2 (WAN) to new bridge br1
    Code:
    brctl addif br1 eth1
    brctl addif br1 vlan2
  4. change the mode of eth1 to wifi station
    Code:
    wl -a eth1 ap 0
  5. connect to open wifi network with using eth1
    Code:
    wl -a eth1 join "WIfi-SSID" imode ibss amode open
And it seems connected to open wifi network:
Code:
admin@EA6900:/jffs/scripts# wl status
SSID: "BTWifi-with-FON"
Mode: Ad Hoc    RSSI: 0 dBm     SNR: 0 dB       noise: -89 dBm  Channel: 8
BSSID: A6:CD:9A:78:F0:C2        Capability: IBSS WEP ShortSlot
Supported Rates: [ 1(b) 2(b) 5.5(b) 6 9 11(b) 12 18 24 36 48 54 ]
VHT Capable:
        Chanspec: 2.4GHz channel 8 20MHz (0x1008)
        Primary channel: 8
        HT Capabilities:
        Supported MCS : [ 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 ]
        VHT Capabilities:
        Supported VHT (tx) Rates:
        Supported VHT (rx) Rates:
But there is no internet, no login prompt on any of the client in my local network, neither ping nor traceroute works,
what I'm doing wrong and what needs to be changed in my config?
 

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top