RB411U User Guide V3

25
RouterBoard411U / 411UHR M2M Connectivity Quick Start Guide Page 1 of 25 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

description

RB411U user guide

Transcript of RB411U User Guide V3

Page 1: RB411U User Guide V3

RouterBoard411U / 411UHR

M2M Connectivity Quick Start Guide

Page 1 of 25

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

Page 2: RB411U User Guide V3

RouterBoard411U / 411UHR

M2M Connectivity Quick Start Guide

Page 2 of 25

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 TUNNEL ............................................................................................................... 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

Page 3: RB411U User Guide V3

RouterBoard411U / 411UHR

M2M Connectivity Quick Start Guide

Page 3 of 25

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 # Product Name Description

18PSU18 POWER

SUPPLY

Power Adapter

18V 1000mA capacity

provides 18Watts making

this an ideal choice for

Mikrotik Devices such as

RB411U and RB411 UAHR.

AMP DCA8417

Serial Cable

A serial cable required to

configure the Router with

configuration tools other

than Winbox and Web-

box.

WS PENTA RA SMA

Penta-band right-angle

antenna

Penta-band right-angle

antenna with SMA con-

nector for GSM/GPRS and

3G/HSPA connectivity

[1]

R52N

R52N Wireless miniP-

CI card

The dual band Router-

BOARD 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.

Page 4: RB411U User Guide V3

RouterBoard411U / 411UHR

M2M Connectivity Quick Start Guide

Page 4 of 25

2. ROUTERBOARD 411U OVERVIEW

POWER JACK- Plug in the power supply (10-28V DC) here.

POWER LED - Power LED is on when the Router is powered.

ETHERNET PORT - Window computer is connected to the Router with Ethernet cable through this

port.

RS232 SERIAL PORT - Router can be connected to the Window computer if someone wants to confi-

gure it by using tool other than winbox and webbox.

USB PORT - 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.

Power Jack

Power LED

Ethernet Port

RS232 Serial Port

RESET

LED

(LD302)

USB Port

Page 5: RB411U User Guide V3

RouterBoard411U / 411UHR

M2M Connectivity Quick Start Guide

Page 5 of 25

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.

Page 6: RB411U User Guide V3

RouterBoard411U / 411UHR

M2M Connectivity Quick Start Guide

Page 6 of 25

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.

� 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.

UFL Antenna con-

necting points

Page 7: RB411U User Guide V3

RouterBoard411U / 411UHR

M2M Connectivity Quick Start Guide

Page 7 of 25

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 com-

puters.

� 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

Page 8: RB411U User Guide V3

RouterBoard411U / 411UHR

M2M Connectivity Quick Start Guide

Page 8 of 25

� Click Internet Protocol (TCP/IP) and then a pop up window will appear. Make changes as giv-

en below in the diagram and then press OK button to close this pop up window.

1

2

Page 9: RB411U User Guide V3

RouterBoard411U / 411UHR

M2M Connectivity Quick Start Guide

Page 9 of 25

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.

� 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:

1

2

Page 10: RB411U User Guide V3

RouterBoard411U / 411UHR

M2M Connectivity Quick Start Guide

Page 10 of 25

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:

Follow the path IP->DHCP server on Winbox and run DHCP server wizard.

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.

1 2

Page 11: RB411U User Guide V3

RouterBoard411U / 411UHR

M2M Connectivity Quick Start Guide

Page 11 of 25

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

Page 12: RB411U User Guide V3

RouterBoard411U / 411UHR

M2M Connectivity Quick Start Guide

Page 12 of 25

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 proce-

dure 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. Fol-

lowing is an example where three APNs are already configured.

In the following configuration example of PPP-

client, an APN telstra.internet and Phone *99***3#

will be entered according to the above entry in the

modem.

Page 13: RB411U User Guide V3

RouterBoard411U / 411UHR

M2M Connectivity Quick Start Guide

Page 13 of 25

In the following configuration example a PPP-client is configured for APN telstra.internet with dialed

number as *99***3#

Page 14: RB411U User Guide V3

RouterBoard411U / 411UHR

M2M Connectivity Quick Start Guide

Page 14 of 25

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.

Page 15: RB411U User Guide V3

RouterBoard411U / 411UHR

M2M Connectivity Quick Start Guide

Page 15 of 25

� Click on General tab and set Chain option to srcnat and Out. Interface to the ppp-client inter-

face that has been configured in the previous step.

� Click Action tab and select masquerade as an action.

Page 16: RB411U User Guide V3

RouterBoard411U / 411UHR

M2M Connectivity Quick Start Guide

Page 16 of 25

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.

After enable you should get following result.

R sign representing that PPP-client is

enabled and working.

1 2

Page 17: RB411U User Guide V3

RouterBoard411U / 411UHR

M2M Connectivity Quick Start Guide

Page 17 of 25

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 PPP-

client 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.

Page 18: RB411U User Guide V3

RouterBoard411U / 411UHR

M2M Connectivity Quick Start Guide

Page 18 of 25

� 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”.

Page 19: RB411U User Guide V3

RouterBoard411U / 411UHR

M2M Connectivity Quick Start Guide

Page 19 of 25

� Add a scheduler to run the script after specific intervals. It can be done by running the fol-

lowing 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 mi-

nutes.

3.11 PORT FORWARDING

Port forwarding can be done as described in the following snapshots:

� Follow the path IP->Firewall.

Note: In this example, a TCP port 134 is forwarded

from external IP a.b.c.d to TCP port 134 of an inter-

nal IP 192.168.88.254.

Page 20: RB411U User Guide V3

RouterBoard411U / 411UHR

M2M Connectivity Quick Start Guide

Page 20 of 25

3.12 CONFIGURING PPTP TUNNEL

Page 21: RB411U User Guide V3

RouterBoard411U / 411UHR

M2M Connectivity Quick Start Guide

Page 21 of 25

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.

Page 22: RB411U User Guide V3

RouterBoard411U / 411UHR

M2M Connectivity Quick Start Guide

Page 22 of 25

PPTP Client configurations

� Follow the path Interface -> (+) ->PPTP-Client on the winbox to create a client and here ne-

cessary 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 ga-

teway.

Page 23: RB411U User Guide V3

RouterBoard411U / 411UHR

M2M Connectivity Quick Start Guide

Page 23 of 25

� 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.

Page 24: RB411U User Guide V3

RouterBoard411U / 411UHR

M2M Connectivity Quick Start Guide

Page 24 of 25

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"

Page 25: RB411U User Guide V3

RouterBoard411U / 411UHR

M2M Connectivity Quick Start Guide

Page 25 of 25

# Determine if dyndns update is needed

# more dyndns updater request details available at

http://www.dyndns.com/developers/specs/syntax.html

:if (($currentIP != $previousIP) || ($dyndnsForce = true)) do={

:set dyndnsForce false

:set previousIP $currentIP

/tool fetch user=$username password=$password mode=http address="members.dyndns.org"

src-

path="/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")

}