LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Configuring Multiple Interfaces with Separate Parameters (https://www.linuxquestions.org/questions/linux-networking-3/configuring-multiple-interfaces-with-separate-parameters-658241/)

fossks 07-25-2008 11:45 AM

Configuring Multiple Interfaces with Separate Parameters
 
Hi,
I'm new to this forum but I've been using it as a resource for years.

I've just finished putting together a very small PC based on an Alix 3c3 system board. I'm using a miniPCI wifi card and the board has a built in ethernet port.

Now as I'm building up this PC towards a usable form, I am bringing the PC to work and back every day. I have a DSL line at work and no wireless, so I want to use the ethernet port to connect to the internet. At home I have wireless.

I am using iMediaLinux as it really is the only distro that completely supports the Alix system board. The distro has some issues with getting DHCP addresses, so I need to provide static details for the interfaces.

Since both routers use different IP addresses (10.0.0.x and 192.168.0.x) I need to provide separate static IPs, gateways and dns details. Can anyone provide some ideas on how to configure the network so that if the PC is connected with ethernet it uses one config and wifi another config?

Kevin

estabroo 07-26-2008 06:18 PM

I don't know how iMediaLinux does its networking, but I do know that Ubuntu hardy heron runs fine on those alix boards. I have several of them running with it, but I'm not using wifi, only the ethernet.

My suggestions is to setup up both networks in the configuration and then have a script that gets run at boot that does a ping for the ethernet gateway and if it doesn't find it it takes down the ethernet, if it does it takes down the wifi and then sets the dns to the appropriate one.


All times are GMT -5. The time now is 10:40 AM.