Facebook   Twitter    e-mail newsletter    YouTube    RSS Feed    Android App    iPhone and iPad App     BlackBerry App    


Page 6 of 6 FirstFirst ... 23456
Results 76 to 86 of 86

Thread: MikroTik RouterBoard and USB 3G Modems

  1. #76
    Super Grandmaster ginggs's Avatar
    Join Date
    Jun 2006
    Location
    Good-w00t! Cape Town
    Posts
    7,732

    Default

    Quote Originally Posted by piranha786 View Post
    the PC IP automatically go to a different range 169. .. .
    the laptop (which is wireless) gets an IP address in the correct region 192.168.x.x
    The default configuration of the RB751U-2HnD routers is for the 1st Ethernet port to be configured as a WAN port so make sure your PC, or switch, is plugged into port 2 - 5.

  2. #77

    Default

    Is there something I have to do to get the PPP menu item in winbox?

    I don't see it under the menu bar on the side of winbox
    The Piranha is known as the “Wolf of the Water” - No chance of escape for their prey

  3. #78
    Super Grandmaster ginggs's Avatar
    Join Date
    Jun 2006
    Location
    Good-w00t! Cape Town
    Posts
    7,732

    Default

    RB751U-2HnD, RouterOS 5.21

    Huawei E3276 modeswitched correctly:
    Code:
    [admin@MikroTik] > /system resource usb print
     # DEVICE VENDOR             NAME             SPEED            
     0 1:1                       RB400 EHCI       480 Mbps         
     1 1:3    HUAWEI Technology  HUAWEI Mobile    480 Mbps         
    [admin@MikroTik] > /port print               
    Flags: I - inactive 
     #   NAME                CHANNELS USED-BY             BAUD-RATE
     0   usb1                       2                     9600
    This modem does not appear as a serial modem, only as a network interface. Will need to figure out how to make a connection without using PPP.

    These are the only entries relating to LTE in the ROS 5.xx series changelogs:
    What's new in 5.12 (2012-Jan-19 14:31):
    *) added support for LTE modems (cdc ethernet type);

    What's new in 5.15 (2012-Apr-20 13:11):
    *) lte - support for modems which utilize sierra_net driver with product ID 0x68a3,
    serial interface is no longer accesable for those modems;
    I don't see anything in the ROS 6.xx beta series changelogs.

    I found a new (to me) LTE tab under Interfaces, but unfortunately mine is empty, unlike this screenshot from the MikroTik forum:


    Update: I've just received a reply from MikroTik support:
    we only support 2 LTE modems with LTE/network devices (Sierra MC7710 and Bandrich
    C501).
    For the rest of the modems we only support PPP style connections.
    Currently there are no dates when or if we will add more LTE modems as LTE/network
    devices.
    Last edited by ginggs; 21-01-2013 at 03:34 PM.

  4. #79

    Default Checking 3G prepaid balance, topping up airtime and other USSD commands on Mikrotik

    I am sure some of you will find this most helpful. I found the original perl script (to be run on a linux box that has ssh access to the Mikrotik in question) on the web somewhere and then modified it to ssh in to a mikrotik and use serial-terminal to issue the AT command to run USSD (Note: the AT command will differ with each modem, so you may have to research the AT command for your specific modem). This particular one is for a machine sitting up in Mozambique, where they dial *100# for a balance.

    Usage: ./check_prepaid 192.168.1.1 mypassword

    #!/usr/bin/perl
    # by Ian Redden (c) 2005 - Modified by kw3g in 2012 for fetching prepaid balance
    # Original Purpose: to get info off of a router for looking glass.
    #
    #-varibles
    use Expect;
    $ssh = "/usr/bin/ssh";
    $router = "$ARGV[0]";
    $pass = "$ARGV[1]";

    $usernm="admin";

    $command = "$ssh -l $usernm $router";

    #-connect to router.
    $ssh = Expect->spawn("$command");
    $ssh->log_stdout(1);

    #-check to see if dsa authenticity question appears
    if ($ssh->expect(2, "yes/no")) {
    print $ssh "yes\r";
    }

    #-send password.
    if ($ssh->expect(undef, "password:")) {
    print $ssh "$pass\r";
    }


    if ($ssh->expect(undef, "admin")) {
    print $ssh "/system serial-terminal usb4 channel=2\r";
    }

    if ($ssh->expect(undef, "prefix")) {
    print $ssh "\r";
    sleep(1);
    print $ssh "AT";
    sleep(1);
    print $ssh "+CUS";
    sleep(1);
    print $ssh "D=1,";
    sleep(1);
    print $ssh "\"*100#\"";
    sleep(1);
    print $ssh ",15";
    sleep(1);
    print $ssh "\r";
    }

    if ($ssh->expect(5, "USD")) {
    }

    if ($ssh->expect(5, "USD")) {
    }

    print $ssh "/quit\r";

  5. #80
    Senior Member
    Join Date
    Aug 2011
    Location
    Orbiting a distant star
    Posts
    441
    Blog Entries
    1

    Default

    A small no-ip.org ddns script tested on RouterOS v6.0rc14, which may be useful.

    Uses dyndns.org to check your current IP address.

    Code:
    #Dynamic DNS Update Script for No-IP DNS behind nat
    # Set needed variables
    :local username "your no-ip user login"
    :local password "your no-ip password"
    :local host "your no-ip host name"
    
    :global previousIP
    
    # print some debug info
    :log info ("Update No-IP DNS: username = $username")
    :log info ("Update No-IP DNS: hostname = $host")
    :log info ("Update No-IP DNS: previousIP = $previousIP")
    
    #
    # behind nat - get the public address using dyndns url http://checkip.dyndns.org
    
    /tool fetch mode=http address="checkip.dyndns.org" src-path="/" dst-path="/dyndns.checkip.html"
    :delay 2
    :local result [/file get dyndns.checkip.html contents]
    :log info "dyndns result = $result"
    
    # parse the current IP result
    :local resultLen [:len $result]
    :local startLoc [:find $result ": " -1]
    :set startLoc ($startLoc + 2)
    :local endLoc [:find $result "</body>" -1]
    :local currentIP [pick $result $startLoc $endLoc]
    :log info "No-IP DNS: currentIP = $currentIP"
    
    :if ($currentIP != $previousIP) do={
    :log info "No-IP: Current IP $currentIP is not equal to previous IP, update needed"
    :set previousIP $currentIP
    :local url "http://dynupdate.no-ip.com/nic/update/?myip=$currentIP&hostname=$host"
    :log info "No-IP DNS: Sending update for $host"
    /tool fetch url=$url user=$username password=$password mode=http dst-path=("no-ip_ddns_update.txt")
    :log info "No-IP DNS: Host $host updated on No-IP with IP $currentIP"
    :delay 2
    :local result [/file get "no-ip_ddns_update.txt" contents]
    :log info "Update Result = $result"
    } else={
    :log info "No-IP: update not needed "
    }
    # end

  6. #81

    Default

    Hi Guys
    Thanks to this thread and another on this forum relating to issues I have with my TP Link TL MR 3420 Router and it dropping the 3G connection (which is the only connection option available where I live) I am now the proud owner of a RB951G which I hope to set up tonight. I have started working through the manuals and I am very impressed. Which is better to use for the setup. Winbox or Webfig? It seems as if you guys prefer Winbox? Thanks

  7. #82
    Super Grandmaster ginggs's Avatar
    Join Date
    Jun 2006
    Location
    Good-w00t! Cape Town
    Posts
    7,732

    Default

    I prefer Winbox to Webfig simply because I'm more familiar with Winbox, I don't think Webfig even existed when I started.
    I think in the most recent versions of RouterOS you can do almost everything in Webfig anyway, so use whichever you find most convenient.

  8. #83

    Default

    Great thanks

  9. #84

    Default

    Ok so here is my first issue. I am using an E220 and connected it. It is flicker dark blue i.e. it can see the 8ta network but it is not connecting. How do I instruct it to connect? Dial on demand is unselected. I tried to add the modem to the DHCP Client settings to get address etc at SP but could not find the interface? Is this required?

  10. #85
    Active Member
    Join Date
    Mar 2010
    Location
    Brackenfell, CT
    Posts
    89

    Default

    You need to setup a PPP connection for internet access. Select the usb port and set the data / info channels for the modem. You need to change the values until you get a connection. You also need to add a default route and add a masquerade rule in your firewall.

  11. #86

    Default

    Quote Originally Posted by krieg View Post
    You need to setup a PPP connection for internet access. Select the usb port and set the data / info channels for the modem. You need to change the values until you get a connection. You also need to add a default route and add a masquerade rule in your firewall.
    Thanks for the info. I think I am going to start a new thread not to hijack this one.

Page 6 of 6 FirstFirst ... 23456

Tags for this Thread

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •