Translations:WRTnode2R开箱指南/4/en

From WRTnode Wiki
Jump to: navigation, search

No internet no happiness

Now we will connect WRTnode2R to the internet. of course, you must have a 2.4G Wi-Fi ap or router with has connected on the internet.

root@OpenWrt:~# aps

'aps' is the command of WRTnode2R to scan the Wi-Fi available, the output of 'aps' looks like this:

WRTnode AP scaner.
Begin scaning APs, pls wait...
Finished.
APs available are...
ra0       get_site_survey:
Ch  SSID                             BSSID               Security               Siganl(%)W-Mode  ExtCH  NT WPS DPID
1   Tenda                            xx:xx:xx:xx:xx:xx   NONE                   70       11b/g/n ABOVE  In YES
1   hshn                             xx:xx:xx:xx:xx:xx   WPA2PSK/AES            96       11b/g/n NONE   In YES
6   TP-LINK                          xx:xx:xx:xx:xx:xx   NONE                   55       11b/g   NONE   In  NO
6   BY01                             xx:xx:xx:xx:xx:xx   NONE                   100      11b/g/n NONE   In YES
6   Tenda_xxxxxx                     xx:xx:xx:xx:xx:xx   WPAPSK/AES             50       11b/g/n ABOVE  In  NO
11  CU_wpFS                          xx:xx:xx:xx:xx:xx   WPAPSK/TKIPAES         70       11b/g/n NONE   In YES

ok,we will connect one:

root@OpenWrt:~# setwifi SSID_you_connetctin the_password

be careful, there's a space between the SSID and the password
Such as:

root@OpenWrt:~# setwifi TP_linkAB33CD my_password

Press Enter and wait 5 seconds, or sometimes we need to reconnect our computer to the WRTnode2R's SSID, so let's see if we have got the IP address from uppter router:

root@OpenWrt:~# ia

we'll see

root@OpenWrt:~# ia
apcli0    Link encap:Ethernet  HWaddr xx:xx:xx:xx:xx:xx
          inet addr:192.168.1.103  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: xxxx::xxxx:xxxx:xxxx:xxxx/xx Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          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)

sometimes getting the IP address will lasts more than 5 seconds, so be patient. Once we got the IP address, let's see if the board have access the internet:

root@OpenWrt:~# ping baidu.com
PING baidu.com (220.181.111.85): 56 data bytes
64 bytes from 220.181.111.85: seq=0 ttl=54 time=6.071 ms

See, thus we connected our computer to the WRTnode2R, and we connected the WRTnode2R to the internet.