Showing posts with label Mikrotik. Show all posts
Showing posts with label Mikrotik. Show all posts

Friday, August 20, 2010

Setting Inter VLAN on Mikrotik Router

VLANs based on the definition of independent logical networks within a physical network, as illustrated more easily may be similar but not equal to the distribution of the partition on the HDD.

Some advantages of VLANs, excerpted from http://en.wikipedia.org/wiki/VLAN;

* Increase the number of domain broadcast but reduces the size of each, which automatically reduces network traffic and improve safety.
* Reduce the need to create a subnetwork.
* Reducing the need for hardware, networks can be separated logically, not necessarily physically.
* Adding the control of various types trafiic.
* Create multiple logical does even in a logical switch.


Implementation is done by separating traffic on the wireless client connected using a Virtual Access Point in Access Point AP Mikrotik Router OS-based bridge. Access Router on my network also uses Mikrotik Router OS that then perform shaping and firewall.

Here's a summary of topology;


topologi-mikrotik-vlan1.jpg
Wireless Client connected to each virtual AP with different SSID on an Access Point, which is used in this case is the RB-112 with Mikrotik Router OS v.2.9.35. Wireless Client A (Duren Sawit) also use the RB-112 with Station-WDS configuration, while the Wireless Client B (Cipinang) using Smart radio bridge (SB-2100) with the Infrastructure Client configuration.

In Access Point, create a virtual AP, vap1 and vap2 with the master interface wlan1, which each have a different SSID, but running on a single frequency.

vap1dan2.jpg

Set WDS configuration as usual on the virtual APs using WDS, and then create a VLAN interface on the ethernet interface with a different ID, in this case is VLAN0200DURSAW ID 200 and ID 201 VLAN201CIPINANG

interfacevlan.jpg

Then create two different bridge (br-br-Cipinang and dursaw), each of which contains the interface bridge each VLAN and Virtual AP

interfacebridge.jpg

Give the IP Address and Routing on the VLAN interface to be in governance

ipaddress.jpg

On the Access Router for VLAN interface in accordance with the ID of each and put the gateway IP address on that interface.

ipaddressrouter.jpg

Wednesday, August 18, 2010

Install the Mikrotik OS using a CD


To install the RouterOS using a CD you will need a CD-writer and a blank CD. Burn the CD-image (an .iso file) to a CD. The archive with image can be downloaded here.

Follow the instructions to install RouterOS using CD-Install:

  1. After downloading the CD image from www.mikrotik.com you will have an ISO file on your computer:

    MT ISO image

  2. Open a CD Writing software, like Ahead NERO as in this example:

    Nero Burning ROM

  3. In the program, choose Burn Image entry from the Recorder menu (there should be similary named option in all major CD burning programs):

    BurnImage option

  4. Select the recently extracted ISO file and click Open:

    Open image

  5. Finally, click Burn button:

    Press Burn button

  6. Set the first boot device to CDROM in router's BIOS.
  7. After booting from CD you will see a menu where to choose packages to install:

                    Welcome to MikroTik Router Software installation

    Move around menu using 'p' and 'n' or arrow keys,
  8. select with 'spacebar'.
    Select all with 'a', minimum with 'm'. Press 'i' to install locally
  9. or 'r' toinstall remote router or 'q' to cancel and reboot.

    [X] system [ ] isdn [ ] synchronous
    [X] ppp [ ] lcd [ ] telephony
    [X] dhcp [ ] ntp [ ] ups
    [X] advanced-tools [ ] radiolan [ ] web-proxy
    [ ] arlan [ ] routerboard [ ] wireless
    [ ] gps [X] routing
    [ ] hotspot [X] security
  10. Follow the instructions, select needed packages, and press 'i' to install the software.

  11. You will be asked for 2 questions:

    Warning: all data on the disk will be erased!

    Continue? [y/n]

    Press [Y] to continue or [N] to abort the installation.

    Do you want to keep old configuration? [y/n]:

    You should choose whether you want to keep old configuration (press [Y]) or to erase the configuration permanently (press [N]) and continue without saving it. For a fresh installation, press [N].

    Creating partition...
    Formatting disk...

    The system will install selected packages. After that you will be prompted to press 'Enter'. Before doing that, remove the CD from your CD-Drive:

    Software installed.
    Press ENTER to reboot

Wednesday, July 14, 2010

Inistall Sierra MC8775 3G 3G card on Rb411 U Mikrotik




The RB411U is a versatile yet very small device. It includes all - a miniPCI slot, a USB 2.0 port and a miniPCI-E slot for connecting a 3G card. A SIM card slot for 3G is also present on

the RB411U.

RB411U includes RouterOS - the operating system, which can be a router, firewall, bandwidth manager, a mobile 3G router, and more - all at the same time.

You can use the USB port to attach a secondary storage device, or a USB 3G modem. The RB411U mounting holes are in the same location as other RB411 models, so you can easily mount it into any supported outdoor case/antenna.

RouterBOARD 411U with Atheros 300Mhz CPU, 32MB RAM, one LAN, one MiniPCI, one miniPCI express (for 3G), one USB port, one SIM slot, NAND Storage with RouterOS Level 4 (AP support)

Connect to router board

siamak@ubuntubox:~$ telnet 10.1.1.209
Trying 10.1.1.209...
Connected to 10.1.1.209.
Escape character is '^]'.

MikroTik v3.25
Login: admin
Password:


MMM MMM KKK TTTTTTTTTTT KKK
MMMM MMMM KKK TTTTTTTTTTT KKK
MMM MMMM MMM III KKK KKK RRRRRR OOOOOO TTT III KKK KKK
MMM MM MMM III KKKKK RRR RRR OOO OOO TTT III KKKKK
MMM MMM III KKK KKK RRRRRR OOO OOO TTT III KKK KKK
MMM MMM III KKK KKK RRR RRR OOOOOO TTT III KKK KKK

MikroTik RouterOS 3.25 (c) 1999-2009 http://www.mikrotik.com/


[admin@MikroTik] >


secret: admin/

Making ppp Profile:

[admin@MikroTik] > ppp profile print
Flags: * - default
0 * name="default" use-compression=default use-vj-compression=default
use-encryption=default only-one=default change-tcp-mss=yes

1 name="maxis3g" use-compression=no use-vj-compression=no use-encryption=no only-one=default change-tcp-mss=default

2 * name="default-encryption" use-compression=default
use-vj-compression=default use-encryption=yes only-one=default
change-tcp-mss=yes
[admin@MikroTik] >



Configure the ppp connection

[admin@MikroTik] > interface ppp-client print
Flags: X - disabled, R - running
0 R name="maxis3g" max-mtu=1500 max-mru=1500 mrru=disabled port=usb2
command-channel=0 data-channel=0 info-channel=0 user="maxis"
password="wap" profile=maxis3g phone="*99***1#" dial-command="ATDT"
modem-init="AT+CGDCONT=1,"IP","net"" null-modem=no dial-on-demand=no
add-default-route=yes use-peer-dns=yes allow=pap,chap,mschap1,mschap2
[admin@MikroTik] >


Set the baud rate to 9600 for communicating with the modem, in case it's not done already:

[admin@MikroTik] > port set usb2 baud-rate=9600

Enable and Disable the Interface


[admin@MikroTik] > interface ppp-client enable maxis3g



[admin@MikroTik] > interface ppp-client disable maxis3g


Check the available resource

[admin@MikroTik] > system resource usb print
# DEVICE VENDOR NAME SPEED
0 2:1 RB400 EHCI 480 Mbps
1 1:1 RB400 OHCI 12 Mbps
2 1:4 HP HP hs2300 HSDPA Broadband Wireless Module 12 Mbps
[admin@MikroTik] >


[admin@MikroTik] > port print
Flags: I - inactive
# NAME CHANNELS USED-BY BAUD-RATE
0 serial0 1 Serial Console auto
1 usb2 3 PPP 9600
[admin@MikroTik] >

check connection status:

[admin@MikroTik] > interface ppp-client monitor maxis3g
status: "connected"
uptime: 49m30s
idle-time: 0s
mtu: 1500
mru: 1500
-- [Q quit|D dump|C-z pause]

check ip:

[admin@MikroTik] > ip address print
Flags: X - disabled, I - invalid, D - dynamic
# ADDRESS NETWORK BROADCAST INTERFACE
0 D 10.1.1.209/24 10.1.1.0 10.1.1.255 ether1
1 D 121.120.136.74/32 10.112.112.119 0.0.0.0 maxis3g
[admin@MikroTik] >

check routing:

[admin@MikroTik] > ip route print
Flags: X - disabled, A - active, D - dynamic,
C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme,
B - blackhole, U - unreachable, P - prohibit
# DST-ADDRESS PREF-SRC G GATEWAY DISTANCE INTERFACE
0 ADS 0.0.0.0/0 r 10.1.1.3 0 ether1
1 DS 0.0.0.0/0 r 10.112.112.119 1 maxis3g
2 ADC 10.1.1.0/24 10.1.1.209 0 ether1
3 ADC 10.112.112.119/32 121.120.136.74 0 maxis3g
[admin@MikroTik] >


References


Friday, July 9, 2010

MikrotiK RB1100


RouterBOARD 1100

The top of the line core router.
The heart of this device is a new state of the art PowerPC networking processor which places this device right on top of our product line.
It has thirteen individual gigabit ethernet ports, two 5-port switch groups, and includes ethernet bypass capability.
RB1100 also has a SODIMM RAM slot for upgradable memory, two microSD card slots, a beeper and a serial port.
The RB1100 comes in a 1U aluminium rackmount case.
Power is now more affordable than ever.

CPU - PowerPC MPC8544 network processor
• Memory - SODIMM DDR slot, 512MB installed (supports up to 1.5GB)
• Ethernet - Thirteen 10/100/1000 Mbit/s Gigabit Ethernet with Auto-MDI/X
• Ethernet - Includes switch to enable ethernet bypass in two ports
• MiniPCI - none
• Storage - Two microSD slots
• Serial port - One DB9 RS232C asynchronous serial port
• Extras - Reset switch, Beeper
• Power Optioins - IEC C14 standard connector 110/220V
• Fan- Dual fan with failover support mounted at case back
• Dimensions- 1U case: 45 x 75 x 440 mm, 1185g. Board only: 375g
• Operating System - MikroTik RouterOS v4, Level 6 license