Ubuntu 11.04 1 NIC to LAN 1 NIC to a 3g router. How to make the internet work?

AstroTurf

Lucky Shot
Joined
May 13, 2010
Messages
30,534
Hi,

I am currently trying to test connection speeds in my area between Vodacom, CellC and 8ta to see which is faster and more stable.
Only problem is I have no idea how to set up Ubuntu to use the 3g router as the internet connection.
I am also trying to keep it as close to our proxy server's settings as possible so that once it is set up I can go test it there with each sim.

How do I go about setting this up?

I have tried the following (ip's are changed from what I am using) but when I connect the router it prevents me from connecting to the LAN and I still can't get onto the internet.
The router is already configured to run on vodacom and 3g is active and working.

Router IP

LAN (NIC 0)
IPv4> 111.111.0.11
Subnet> 255.255.255.0
Gateway> 111.111.1.1
DNS> My DNS servers IP Addresses (eg 111.111.0.3 111.111.0.6)
Search Domains> Windowsdomainname.local

3g Router (NIC 1)
IPv4> 111.111.1.11
Subnet> 255.255.255.0
Gateway> 111.111.1.1
DNS>
Search Domains>
Routes> Use this connection only for resources on its network is ticked (no actual routes specified).

How do I get this to work?

Thank you in advance
 

stricken

Expert Member
Joined
Sep 5, 2010
Messages
2,265
NIC0 is on a different subnet than the gateway and NIC1

you need to route between them..

something like (off the top of my head): route add net 111.111.0.0 netmask 255.255.255.0 gw 111.111.1.1 dev eth0 (or whatever device NIC0 is)
 

AstroTurf

Lucky Shot
Joined
May 13, 2010
Messages
30,534
Actually managed to get both working at the same time without causing hassles, still trying to get internet to go through the 3g router though.
 

AstroTurf

Lucky Shot
Joined
May 13, 2010
Messages
30,534
NIC0 is on a different subnet than the gateway and NIC1

you need to route between them..

something like (off the top of my head): route add net 111.111.0.0 netmask 255.255.255.0 gw 111.111.1.1 dev eth0 (or whatever device NIC0 is)

Tried that in terminal and it did not like the command (1.1 dev eth0
net: Unknown host)

Tried adding it via the edic connections button, NIC0>Routes as follows:
Address 111.111.0.0
Netmask 255.255.255.0
gateway 111.111.1.1 But this made no difference.
Both Networks are running but no internet.
 
Last edited:
Top