RouterBoard411U / 411UHR Quick Start Guide M2M Connectivity Pty. Ltd ABN 14 102 703 319, 1 Barrett Street, Kensington VIC 3031, AUSTRALIA. Phone: +61 3 9696 3011 Fax: +61 3 9372 1588 Web: www.m2mconnectivity.com.au M2M Connectivity Quick Start Guide Page 1 of 25 RouterBoard411U / 411UHR Contents 1. QUICK START GUIDE INTRODUCTION ............................................................................................. 3 2. ROUTERBOARD 411U OVERVIEW ....................................................................................................... 4 3. ROUTERBOARD CONFIGURATION..................................................................................................... 5 3.1 DOWNLOAD WINBOX CONFIGURATION TOOL ............................................................................................ 5 3.2 INSERTING SIM CARD .............................................................................................................................. 5 3.3 PHYSICAL CONNECTION........................................................................................................................... 6 3.4 COMPUTER PREPARATION ........................................................................................................................ 7 3.5 LOGIN TO WINBOX .................................................................................................................................. 9 3.6 CONFIGURING DHCP SERVER ................................................................................................................ 10 3.7 CONFIGURING PPP-CLIENT .................................................................................................................... 12 3.8 CONFIGURING NAT ............................................................................................................................... 14 3.9 ENABLE PPP-CLIENT ............................................................................................................................. 16 3.10 CONFIGURING DYNAMIC DNS ............................................................................................................. 17 3.11 PORT FORWARDING ............................................................................................................................. 19 3.12 CONFIGURING PPTP T UNNEL ............................................................................................................... 20 PPTP Server Configurations................................................................................................................... 21 PPTP Client configurations .................................................................................................................... 22 4.0 APPENDIX ............................................................................................................................................. 24 4.1 DYNAMIC DNS TOOL............................................................................................................................. 24 Revisions Date Version Author Update details 11/06/2010 Document Creation AZ Initial Documentation 08/07/2010 Release 1.0 AD First version Release 14/07/2010 Release 2.0 AZ Port Forwarding and DynDNS Added 23/08/2010 Release 3.0 AZ PPTP Added M2M Connectivity Quick Start Guide Page 2 of 25 RouterBoard411U / 411UHR 1. QUICK START GUIDE INTRODUCTION Thank you for choosing the RouterBoard 411u from M2M Connectivity. This user guide will provide a series of step by step instructions to ensure the configurations of Router goes as smooth as possible. M2M Connectivity recommends the following accessories for use with the RB411U and RB411UHR routers. Order # 18PSU18 P OWER S UPPLY Product Name Power Adapter AMP DCA8417 Serial Cable WS P ENTA RA SMA Penta-band right-angle antenna Description 18V 1000mA capacity provides 18Watts making this an ideal choice for Mikrotik Devices such as RB411U and RB411 UAHR. A serial cable required to configure the Router with configuration tools other than Winbox and Webbox. Penta-band right-angle antenna with SMA connector for GSM/GPRS and 3G/HSPA connectivity [1] R52N R52N Wireless miniPCI card The dual band RouterBOARD 802.11a/b/g/n R52N is a wireless miniPCI card with MIMO support. It supports 2.3-2.5Ghz frequency. [2] [1]- For router RB411U with MC87xx, two antennas are required for Rx Diversity support. [2]- For router RB411UHR with integrated WiFi, then the R52N is not required. M2M Connectivity Quick Start Guide Page 3 of 25 RouterBoard411U / 411UHR 2. ROUTERBOARD 411U OVERVIEW Power Jack LED (LD302) Power LED RESET Ethernet Port RS232 Serial Port USB Port P OWER J ACK - Plug in the power supply (10-28V DC) here. P OWER LED - Power LED is on when the Router is powered. E THERNET P ORT - Window computer is connected to the Router with Ethernet cable through this port. RS232 S ERIAL P ORT - Router can be connected to the Window computer if someone wants to configure it by using tool other than winbox and webbox. USB P ORT - USB 2.0 port is used to connect an external device such as memory stick or a USB 3G modem. RESET - It is used to give the router a full reboot. LED (LD302) - Indicates status of modem. OFF - Not powered. ON - Powered, associated, and authenticated but not transmitting and Receiving. Slow Blink - Powered but not associated or authenticated. Intermittent Blink - Transmitting and receiving data. M2M Connectivity Quick Start Guide Page 4 of 25 RouterBoard411U / 411UHR 3. ROUTERBOARD CONFIGURATION This Router can be configured by using different tools. Following are some tools which are supported by RouterOS for configurations: Winbox GUI over IP and MAC CLI with Telnet, SSH, Local console and Serial console API for programming your own tools Web interface In this Quick Start Guide, Winbox is used to configure the router to support different features. 3.1 DOWNLOAD WINBOX CONFIGURATION TOOL Winbox can be downloaded from the following website: http://www.mikrotik.com/download.html 3.2 INSERTING SIM CARD The SIM card needs to be inserted correctly. Following diagram represents how to insert the SIM card. M2M Connectivity Quick Start Guide Page 5 of 25 RouterBoard411U / 411UHR 3.3 PHYSICAL CONNECTION Connect antennas to the MC8790/MC8790V/MC8795V modems Main UFL and/or AUX UFL antenna connecting points shown below in diagram. UFL Antenna connecting points Connect the Router to your computer with Ethernet cable. Power up the Router by connecting input of the power adopter to the mains and its output to the Power Jack slot of Router. Please do not power on the router before the antennas cables are connected. M2M Connectivity Quick Start Guide Page 6 of 25 RouterBoard411U / 411UHR 3.4 COMPUTER PREPARATION In order for your PC to get an IP address automatically from a DHCP server on your router, you need to change some network setting of your PC. Following procedure can be used by Windows XP users to change the network setting of their computers. Follow the path start -> Control Panel -> Network Connections on your computer. Right click Local Area Connection and select Properties to open the configurations dialog box. 1 2 M2M Connectivity Quick Start Guide Page 7 of 25 RouterBoard411U / 411UHR Click Internet Protocol (TCP/IP) and then a pop up window will appear. Make changes as given below in the diagram and then press OK button to close this pop up window. 1 2 M2M Connectivity Quick Start Guide Page 8 of 25 RouterBoard411U / 411UHR 3.5 LOGIN TO WINBOX Click Winbox icon on PC connected to Ethernet port of Router through cable and click the button labeled “--- “situated to the left of the connect button. 2 1 Select IP address 192.168.88.1 or MAC address appeared and then click connect button. The default access credentials are username admin and a blank password. After you logged in, following window will pop up: M2M Connectivity Quick Start Guide Page 9 of 25 RouterBoard411U / 411UHR 3.6 CONFIGURING DHCP SERVER In order to get an IP address automatically, you need to configure DHCP server on your Router. DHCP server can be configured by following the steps by step instructions given below: Note: In the following configuration example, a DHCP server is configured that will assign an address range 192.168.88.2 - 192.168.88.254. Follow the path IP->DHCP server on Winbox and run DHCP server wizard. 1 M2M Connectivity Quick Start Guide 2 Page 10 of 25 RouterBoard411U / 411UHR Step 1. DHCP Server Interface Step 2. DHCP Server address Step 3. Addresses to give out Step 4. Gateway for DHCP Network Step 5. DNS Servers. Note: In this example we use Telstra’s Primary DNS M2M Connectivity Quick Start Guide Page 11 of 25 RouterBoard411U / 411UHR As the above wizard finishes, following window will pop up verifying your successful configuration of DHCP server. 3.7 CONFIGURING PPP-CLIENT Now you are required to create a PPP-client profile in order to connect to an ISP. Following procedure can be used to create a PPP-client profile for a particular ISP: Run the command at+cgdcond? to see which APN profiles are already configured in the modem. Following is an example where three APNs are already configured. In the following configuration example of PPPclient, an APN telstra.internet and Phone *99***3# will be entered according to the above entry in the modem. M2M Connectivity Quick Start Guide Page 12 of 25 RouterBoard411U / 411UHR In the following configuration example a PPP-client is configured for APN telstra.internet with dialed number as *99***3# M2M Connectivity Quick Start Guide Page 13 of 25 RouterBoard411U / 411UHR Now if you want to configure another APN in the modem, you will be required to issue command at+cgdcont=<context ID>“IP”,”<APN>”. Following is an example where APN internet.au is configured in modem. 3.8 CONFIGURING NAT Follow the path IP->Firewall->NAT. M2M Connectivity Quick Start Guide Page 14 of 25 RouterBoard411U / 411UHR Click on General tab and set Chain option to srcnat and Out. Interface to the ppp-client interface that has been configured in the previous step. Click Action tab and select masquerade as an action. M2M Connectivity Quick Start Guide Page 15 of 25 RouterBoard411U / 411UHR 3.9 ENABLE PPP-CLIENT After configuring NAT you are required to enable PPP-client that is configured in step---. You can configure it as described in following diagram. 2 1 After enable you should get following result. R sign representing that PPP-client is enabled and working. M2M Connectivity Quick Start Guide Page 16 of 25 RouterBoard411U / 411UHR Now you should be able to browse internet through PPP connection to MC8790/V or MC8795v modem. You can check modem status, signal strength and network in use by clicking the info button on PPPclient configuration page. 3.10 CONFIGURING DYNAMIC DNS Dynamic DNS can be configured by writing a script or you can refer to Appendix 4.1 for this script. You can configure Dynamic DNS on RouterBoard by uploading this script (from Appendix 4.1) and then follow the steps described below: Follow the path system->scripts. Click on (+) to add a script. M2M Connectivity Quick Start Guide Page 17 of 25 RouterBoard411U / 411UHR Write/upload the script and then click OK. Note: If you download the Dynamic DNS script from our website, then the name of the script should be “dynDNS”. M2M Connectivity Quick Start Guide Page 18 of 25 RouterBoard411U / 411UHR Add a scheduler to run the script after specific intervals. It can be done by running the following command /system scheduler add name=dynDNS policy=read,test interval=1m on-event=dynDNS In the above configuration command, a scheduler is set to run the script dynDNS after every 2 minutes. 3.11 PORT FORWARDING Port forwarding can be done as described in the following snapshots: Follow the path IP->Firewall. M2M Connectivity Quick Start Guide Note: In this example, a TCP port 134 is forwarded from external IP a.b.c.d to TCP port 134 of an internal IP 192.168.88.254. Page 19 of 25 RouterBoard411U / 411UHR 3.12 CONFIGURING PPTP TUNNEL M2M Connectivity Quick Start Guide Page 20 of 25 RouterBoard411U / 411UHR PPTP SERVER CONFIGURATIONS Follow the path PPP -> Secret on the winbox to create a user on the server. Now create and enable a PPTP Server by following the procedure explained in the following diagram. M2M Connectivity Quick Start Guide Page 21 of 25 RouterBoard411U / 411UHR PPTP Client configurations Follow the path Interface -> (+) ->PPTP-Client on the winbox to create a client and here necessary credentials will be entered to connect to the server . Static Routes on both Client & Server Add static routes to the network attached to the routers as described in the following snapshots. Follow the path IP->Routes-> (+) on the client to create a static route to the network 192.168.90.0/24 with 10.0.0.1 (local/server end address of the PPTP tunnel) as a default gateway. M2M Connectivity Quick Start Guide Page 22 of 25 RouterBoard411U / 411UHR Follow the path IP->Routes-> (+) on the Server to create a static route to the network 192.168.88.0/24 with 10.0.0.2 ( Remote/Client end address of the PPTP tunnel) as a default gateway. Now you should be able to PING the Client network from server side and vise-versa. M2M Connectivity Quick Start Guide Page 23 of 25 RouterBoard411U / 411UHR 4.0 APPENDIX 4.1 DYNAMIC DNS TOOL #Dynamic DNS Script # set only these three variables :global username "username" :global password "password" :global hostname "complete_hostname" :global dyndnsForce :global previousIP # print some debug info :log info ("dyndns-update: username = $username") :log info ("dyndns-update: password = $password") :log info ("dyndns-update: hostname = $hostname") :log info ("dyndns-update: previousIP = $previousIP") # get the current IP address from the internet (in case of double-nat) /tool fetch mode=http address="checkip.dyndns.org" src-path="/" dst-path="/dyndns.checkip.html" :global result [/file get dyndns.checkip.html contents] # parse the current IP result :global resultLen [:len $result] :global startLoc [:find $result ": " -1] :set startLoc ($startLoc + 2) :global endLoc [:find $result "</body>" -1] :global currentIP [:pick $result $startLoc $endLoc] :log info "dyndns-update: currentIP = $currentIP" M2M Connectivity Quick Start Guide Page 24 of 25 RouterBoard411U / 411UHR # Determine if dyndns update is needed # more dyndns updater request http://www.dyndns.com/developers/specs/syntax.html details available at :if (($currentIP != $previousIP) || ($dyndnsForce = true)) do={ :set dyndnsForce false :set previousIP $currentIP /tool fetch user=$username password=$password mode=http address="members.dyndns.org" srcpath="/nic/update\?hostname=$hostname&myip=$currentIP&wildcard=NOCHG&mx=NOCHG&back mx=NOCHG" dst-path="/dyndns.txt" :global result [/file get dyndns.txt contents] :log info ("dyndns-update: Dyndns update needed") :log info ("dyndns-update: Dyndns Update Result: ".$result) :put ("Dyndns Update Result: ".$result) } else={ :log info ("dyndns-update: No dyndns update needed") } M2M Connectivity Quick Start Guide Page 25 of 25