3G/GPRS and fixed line internet routing

How to configure Meshlium or use the Manager System
Post Reply
Posts: 7
Joined: Mon Jul 08, 2013 8:57 am

3G/GPRS and fixed line internet routing

Post by dirkbac » Mon Aug 05, 2013 2:04 pm

Dear libelium

We are using a meshlium with 3G connection.
Sometimes we want to use 3G as backup, in case of fixed internet is available.
Do you have a example how to setup the network in the meshlium to make it possible to switch over automatically to the PPP0 connection in case of problems with eth0 interface? (and back)
A second problem is that now the 3G connection is always the default gateway, so by default the meshlium is sending the data though 3G after bootup, but if eth0 is up we want to use eth0 . How do you change that?


Dirk Bac

Posts: 27967
Joined: Mon Sep 28, 2009 1:06 pm

Re: 3G/GPRS and fixed line internet routing

Post by libelium-dev » Mon Aug 12, 2013 10:23 am

Hello dirkbac,

You can change the Meshlium route table by entering via ssh to Meshlium.
If you type route you will see the IP routes:

Code: Select all

meshlium:~# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface     *        U     0      0        0 eth0      *        U     0      0        0 ath0
default         UG    0      0        0 eth0
In this case, the default route to Internet would be with eth0 interface.
To change the default gateways, type

Code: Select all

$ route add default gw desired_IP desired_Interface
$ route del default gw eth0
More info: http://linux.die.net/man/8/route


Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest