
Most operating systems with TCP/IP have what is called a Default Route or Default Gateway. You can see this with "ipconfig" from a CMD shell window. You can also see this with "netstat -r" where it will be the first route and is recognized by being all zeros "0.0.0.0" netmask 0.0.0.0. Let's say for example that a client is a Laptop computer. This laptop gets settings from the DHCP Server and the OS writes the route 0.0.0.0 netmask 0.0.0.0 gateway 192.168.0.1. If you bring up another connection, for example the safcom modem, then the OS dutifully writes another "0.0.0.0" route now pointing to the Gateway given by the Safaricom GPRS network (via PPP).Now you've got two default routes (again shown by "netstat -r" ). The OS will chose the network to use based on the metric. If you want to force the OS to use one network by default, then you'll have employ permanent static routing.In ubuntu(or most linux distros) you can do: $ route add -net 10.10.10.0 netmask 255.255.255.0 gw 192.168.1.1 dev eth0 >> /etc/network/interfaces Hope that helps.... ./bernard On 7/12/10, Odhiambo Washington <odhiambo@gmail.com> wrote:
On Mon, Jul 12, 2010 at 2:46 PM, Mr. Lawi <mail2lawi@gmail.com> wrote:
Rookie question:
If I have wireless internet connection (via wifi), cabled internet connection and an internet connection via a, say, safcom modem, how do I tell which connection is being used by the system by default?
Assume there are no restrictions in the ie connection options.
I have my reasons for asking :)
You may be having a device where the connections are aggregated. I've never dealt with one that handles 3 outgoing circuits though, only two. In such type, it will depend on whether your option is load balance or failover. Check there:-)
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254733744121/+254722743223 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ "If you have nothing good to say about someone, just shut up!." -- Lucky Dube