Summarizing the configuration of routers

    image

    Many of you have heard of Yota and WiMAX.

    In this article, I want to summarize the information on setting up Neiotovsky routers so that they distribute WiMAX via WiFi and Ethernet.
    I will also consider similar solutions for this.


    Introduction


    If you already know what Yota is, skip this part. If not, I will tell you briefly.

    WiMAX is a technology that provides high speed Internet access - up to 10 Mbit / s, anytime, anywhere in the coverage area and supports connection even on the move, at speeds up to 120 km / h.
    Yota is Russia's first mobile WiMAX network. It is deployed in Moscow, St. Petersburg and Ufa, in the regions where more than 20 million people live. The network operates according to the IEEE 802.16e-2005 standard in the frequency range of 2.5-2.7 GHz. ( see coverage map )

    Several different devices are used to access the network. We will focus on the Samsung U200 modem. Actually, to connect to the Internet you just need to plug this modem into the computer’s USB port. (more onyota.ru )

    But what if you need to connect not one computer to the Internet, but several? You can buy a modem for every computer, but it's expensive. Or you can buy a special router that will "distribute" the Internet to any number of computers, both over Wi-Fi and over an ordinary network.

    I suggest you make such a router.


    0. Shopping trip


    To configure you need:
    1) Router
    - ASUS WL-500G Premium V1 & V2 (in St. Petersburg I know where it costs 3148 rubles)
    - DLINK DIR-320 (1800 rubles. For the addresses - in PM)

    The difference between them in the class. Asus is a more reliable router (in terms of hardware; they are identical in software).

    2) Yota modem
    There is no choice, we need
    a Samsung U200 modem (1990 rubles in any CCC)

    3) Desire and ability to do everything according to the instructions

    1.A) Configuring the Wl-500Gp router



    1) Update the router on the firmware from Oleg (http://oleg.wl500g.info/1.9.2.7-10/)
    2) Connect the router to the wired Internet, as if for normal work. Connect the modem to the USB port.
    3) Go to telnet 192.168.1.1; login password: default admin-admin
    4) Run the following commands: The

    commands are here , since the hub does not allow them to be placed correctly.

    5) Everything should work - the light on the modem should turn blue when it is connected to the network.

    1.B) Configuring the DLINK-320 router



    Original instructions: seculab.ru/dlink-320

    The basis is the instruction for installing the firmware from the wl500g.info forum described here, as well as the madwimax driver settings described here.

    The following were added to the wl500g firmware:
    - to the / usr / sbin directory the madwimax file with the driver for the modem from Yota Samsung SWC-U200.
    - to the / lib directory the files libusb-1.0.so.0 and librt.so.0
    - to the / usr / sbin directory the madwimax-scripts.tgz archive with scripts from madwimax. Honestly, I didn’t figure out where to put them in the firmware, so as not to download from the Internet.

    The madwimax driver was recompiled in order to:
    - use the library /lib/ld-uClibs.so.0 already in the firmware instead of the one installed in /opt/usr/lib/ld-uClibc.so.0
    - hard-register the path to the script "events.sh" /opt/etc/madwimax/events.sh (the default path is relative to madwimax)

    Download the archive with firmware dlink-320-madwimax-yota.rar . The firmware is based on:
    - Firmware from Oleg, ily, theMiron: wl500g-1.9.2.7-d-r285
    - WiMax driver: madwimax-0.1.0-r160

    Connect the network cable to the dlink dir-320 and the computer. We set the IP address 192.168.0.2, the mask 255.255.255.0 and the gateway 192.168.0.1 on the computer. Do not enable auto-retrieval of the address, as then the computer just doesn’t have time to catch the moment of bootloader working out in dlink and upload the firmware.

    Unpack the archive, run flashing.cmd and connect the router to power. If you are lucky, then you will be at the moment when the bootloader is "waiting" for the team. If you are unlucky, reconnect the power to dlink. In the case of a successful run, ping will stop running and something like this will be written:

    *** Start Flashing ***
    Успешная передача: 3592480 байт за 11 cs, 281134 байт/с


    After the status indicator lights up (~ 1-2 minutes), we will reset the router to default settings. To do this, turn off the power of the router, press the reset button and without releasing it, turn on the power. After 5 seconds, release the button. After that, you can change the IP address of the computer’s network card to obtain the address automatically via DHCP.

    We stick the modem into the router.

    We go telnet 192.168.1.1 to the router (the default username and password are admin) and enter the following commands:

    # Создаем директорию, куда будем все ставить
    mkdir /tmp/local/opt
    mount /tmp/local/opt /opt

    # Создаем директорию var, чтобы в логах не ругалось на ее отсутствие
    mkdir /opt/var
    mkdir /opt/var/run

    # Копируем в /tmp и распаковываем архив с madwimax'овыми скриптами
    cp /usr/sbin/madwimax-scripts.tgz /tmp/madwimax-scripts.tgz
    cd /
    tar -xzf /tmp/madwimax-scripts.tgz
    rm /tmp/madwimax-scripts.tgz

    # Создаем директорию для пользовательских скриптов
    mkdir /usr/local/sbin

    # Создаем в ней файл post-boot и прописываем нужные нам параметры
    echo "#!/bin/sh" > /usr/local/sbin/post-boot
    echo "mount /tmp/local/opt /opt" >> /usr/local/sbin/post-boot
    echo "insmod tun.o" >> /usr/local/sbin/post-boot
    echo "(while true; do /usr/sbin/madwimax -qof ; sleep 10; done )&" >> /usr/local/sbin/post-boot

    # Делаем скрипты исполняемыми
    chmod +x /usr/local/sbin/*

    # Говорим роутеру что мы хотим сохранять во флэш наши скрипты
    echo "/usr/local/sbin/post-boot" > /usr/local/.files

    # Сохраняем все и выходим
    flashfs save
    flashfs commit
    flashfs enable
    reboot

    * This source code was highlighted with Source Code Highlighter.


    All. If successful, the modem should light up in blue (small lightbulb)

    1.B) Recommendation


    I recommend putting the modem on a USB cable:
    - The WiMAX and WiFi frequencies do not interfere with each other. (There were times when the speed was 4 times less without an extension cord)
    - you can quickly take it with you (pull out the modem after disconnecting the router from the network).

    2) Similar solutions


    Let's consider similar solutions
    - An official router from Yota (costs 10,000 rubles, subscription fee 2700, only for legal entities; has two RJ-11 outputs for sip) - more on yota.ru
    - You can plug the modem into a computer and configure it ( computer) as a proxy server. Cons - keep the computer working at all times; ...
    - Draytek has announced a new firmware for the Draytek 2910 VG router (about 7,000 rubles). The uniqueness of the router is the ability to work with two WANs. When using their official firmware, the modem “occupies” the WAN port, and you can connect another one and use Yota as backup use (or vice versa) More - draytek.livejournal.com
    - as I understand it, it is possible to configure any router from Asus with USB. How do I know what and how - wait for instructions.
    - buy the same routers, but already configured for almost a double price in wi ........... re.ru (for the link - in PM)

    3) Ready-made solutions


    - for the Internet in the office (cheaper)
    - for the Internet at home (if you move, immediately connect to the network by simply plugging in a 220 router. It’s the same with the office)
    - to the owners of cafes and restaurants (services for visitors. I recommend that you study it before selling agreement with Yota)
    - backup channel
    - mobile office (install it in the car and use wi-fi. It is also suitable, for example, for a taxi or cars for official delivery. like this )

    Thank you for your attention. Have a good setup and work!

    PS The post was published on July 21, 2009. If you read it later, and you have questions - write me an email:
    image

    Also popular now: