LinuxQuestions.org
Visit Jeremy's Blog.
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 10-22-2009, 01:50 AM   #1
sfohelp
LQ Newbie
 
Registered: Oct 2009
Posts: 4

Rep: Reputation: 0
how to setup 2 separate net cards


I am building a network monitor/analyser in a linux box (Ubuntu server 8). It basically logs ip traffic.

I have installed two network cards, and they are identified by the system
as eth0 and eth2. My problem is I want them to be completely independent of each other - each with its own ip, etcetera. When I
try to do this, it looks like it should work, but the physical cards
respond to each others ip address. This is confusing. I want one
card to be my regular LAN connection, the other to be dedicated
to data collection (promiscuous mode).

Any ideas on why this might be happening, and where I should look to
fix it? Thanks for your attention.

Last edited by sfohelp; 10-22-2009 at 01:53 AM.
 
Old 10-22-2009, 03:59 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,296

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Let me clarify: your problem is that

1. the shortest route between your 2 cards is along the pci bus, and the pc has noticed that.
or
2. card a responds to the ip for card b?
Suggestions
1. Maybe a virtual box for eth2? Maybe another box for eth2?
2. Have you ethernet bridging set up? Are they both logged into the same server? What does your routing table show?
 
  


Reply

Tags
config, hardware, network



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
How do you have separate wallpapers on GNOME w/ multimonitor setup? Thaidog Linux - Desktop 11 11-25-2011 08:51 PM
Two Separate Hostnames and IP Addresses on two NIC cards kaplan71 SUSE / openSUSE 3 04-21-2006 05:24 PM
RH Hosting on two separate NIC cards mikerock Red Hat 2 05-09-2005 08:57 PM
Two screens on separate graphic-cards. Possible on linux? Ac1db0rN Linux - Software 2 03-13-2005 09:16 AM
I have two net cards but only shows eth0 dexter_modem Slackware 3 07-04-2003 12:10 AM

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

All times are GMT -5. The time now is 10:21 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