LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-20-2006, 09:36 AM   #1
dansawyer
Member
 
Registered: Mar 2005
Posts: 124

Rep: Reputation: 15
how to configure one card for two networks?


All,

The system is a Thinkpad laptop running Fedora Core 5. I would like to configure one pcmcia rf card to work on two networks. One of the networks has security configured and requires a key and the other network does not have security configured.

How can one card be configured to optionally support two networks? I would simply like to ifup eth0 to work on the first network and ifup eth1 to work on the second.

Attempts to do this with the configuration tools seem to result in conflicting configurations. The dynamic network alius is confused with the device name. When the card is inserted it is automatically set to device eth0. There does not appear to be a way to configure it to network script eth1.

Alternatly there does not appear to be a way to optionally force configure, insert, etc. a card to a specific device on insertion.

Thanks in advance. - Dan
 
Old 08-20-2006, 02:30 PM   #2
Draciron
Member
 
Registered: Jul 2006
Posts: 44

Rep: Reputation: 16
You can replace your ifcfg-eth0 with a script that presents a menu and asks you which configuration you wish to use at this moment. Would require that you be on one network or the other. Then just call the eth0 configuration you need for which network you want to log into.

You can also assign two IPs to the nic card and use virtual networking. Never tried this myself, I'd post a URL I found with info but don't think I have enough points yet to post URLs. No way to tell. Googling Linux virtual networking brought up several promising topics. This would allow you to be on both networks at the same time. I am certain there are lots of pains involved in the configuration of it Who couldn't use more charactor eh?
 
Old 08-20-2006, 02:35 PM   #3
zatriz
Member
 
Registered: Aug 2003
Location: Seattle, Wa
Distribution: Fedora,Trustix,Debian
Posts: 290

Rep: Reputation: 30
There's a good little tutorial on ip alias here: http://www.cyberciti.biz/faqs/2006/0...ew-network.php

You cant use eth1 for a virtual device but you can alias your current nic to an alias with a different ip, Im not sure if it will let you have ip's in different subnets but its worth a try.

your device would be refered to something like eth0:0 eth0:1 etc
ifconfig will return a complete list.
 
Old 08-20-2006, 09:29 PM   #4
Snowbat
Member
 
Registered: Jun 2005
Location: q3dm7
Distribution: Mandriva 2010.0 x86_64
Posts: 338

Rep: Reputation: 31
WiFi Radar at http://gnomefiles.org/app.php?soft_id=332 was suggested as a Gnome alternative to KDE's kwifimanager at ubuntuforums.org

Quote:
About WiFi Radar
WiFi Radar is a utility for managing, scanning, and auto-connecting to WiFi profiles.

It enables you to scan for available networks and create profiles for your preferred networks. At boot time, running WiFi Radar will automatically scan for an available preferred network and connect to it.

You can drag and drop your preferred networks to arrange the profile priority.
 
Old 08-21-2006, 08:29 AM   #5
dansawyer
Member
 
Registered: Mar 2005
Posts: 124

Original Poster
Rep: Reputation: 15
Thank you, very interesting.

I installed wifi-radar. It loops on 'eth2', a non existant device.

Where does wifi-radar find devices?

How can wifi-radar be configured to not search this device?

Hopefully then it will report correctly on the nets found.

Thanks, Dan
 
Old 08-21-2006, 05:30 PM   #6
Snowbat
Member
 
Registered: Jun 2005
Location: q3dm7
Distribution: Mandriva 2010.0 x86_64
Posts: 338

Rep: Reputation: 31
I can't help you much with wifi-radar I'm afraid. I use kwifimanager in KDE.

Do you have a configuration file for an eth2 at /etc/sysconfig/network-scripts/ifcfg-eth2 perhaps? Else find out where wifi-radar stores settings and see if there is a reference to an eth2 there.
 
Old 08-21-2006, 10:10 PM   #7
dansawyer
Member
 
Registered: Mar 2005
Posts: 124

Original Poster
Rep: Reputation: 15
I had thought of that, no files in etc with eth2 in the name.

- Dan
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Atheros dlink pcmcia card, kismet does not detect any networks. jimdaworm Linux - Hardware 2 03-28-2006 12:51 PM
Is there a guide teaching me how to configure /etc/networks/interface? hkl8324 Debian 2 10-22-2005 04:00 PM
Configure Two Networks RatonCrispiN Linux - Networking 3 08-24-2005 12:37 PM
how to configure Private & Public Networks naresh Linux - Hardware 0 11-18-2004 12:49 AM
Setting up to connect to two networks with one card LinuxBlackBox Linux - Networking 1 11-20-2003 03:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration