Automaticaly choosing right network connection

Asked by Lima May

Hi, i have UBUNTU 11.04 with two active connections: wired Intranet and wireless Internet. How can I configure firefox to take right connection for different nets like by router ip or by site address. My intranet is not connected to internet. For now i manualy switching adapters by disabling and enabling them.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu gnome-nettool Edit question
Assignee:
No assignee Edit question
Solved by:
Warren Hill
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

look into the route command. You can tell it to use different interfaces for different subnets or even individual hosts. They do not survive after reboot so will need to be added in a script and then add the script to /etc/rc.local so that they get added each bootup

Revision history for this message
Lima May (topholder) said :
#2

I'm not so experience unix user i'm just moving all my comps to linux from windows and i don't know what exactly should i do. Can U help me with this?

Revision history for this message
Best Warren Hill (warren-hill) said :
#3

The network interface settings are stored in a file called /etc/network/interfaces

You can edit that

for information on how to do this see

http://www.cyberciti.biz/faq/setting-up-an-network-interfaces-file/

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#4

http://www.cyberciti.biz/faq/linux-setup-default-gateway-with-route-command/

There are some example commands here to explain the syntax

Revision history for this message
Lima May (topholder) said :
#5

Thanks Warren Hill, that solved my question.