LinuxQuestions.org
Visit Jeremy's Blog.
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 04-05-2005, 11:54 PM   #1
lothario
Member
 
Registered: Apr 2004
Posts: 340

Rep: Reputation: 30
2 NICs working fine, which one is being used?


On this PC there are 2 network cards X and Y.
Each is connected to a different network as a dhcp client.

X and Y have cables plugged into them.
Cables have beeen tested and work fine.

X has ip address 192.168.2.10, gateway 192.168.2.1, dhcp server 192.168.2.1, dns server 192.168.2.1

Y has ip address 192.168.4.19, gateway 192.168.4.1, dhcp server 192.168.4.1, dns server 192.168.4.1

When I am using my web browser, which network card(s) is the traffic flowing thru?
How is that determined?

The browser is not configured to use any proxies, etc.
By looking at the LEDs on the NIC, you can tell that it is X.
But I don't understand how X is chosen instead of Y.
 
Old 04-06-2005, 12:06 AM   #2
kencaz
Senior Member
 
Registered: Mar 2005
Location: Las Vegas, NV
Distribution: Mandriva Slackware FreeBSD
Posts: 1,468

Rep: Reputation: 48
In root Try:

ifconfig

see which one is on eth0. Your browser is proablably just using what is first in line.

KC
 
Old 04-06-2005, 12:28 AM   #3
lothario
Member
 
Registered: Apr 2004
Posts: 340

Original Poster
Rep: Reputation: 30
KC,

You are correct.
X = eth0.
It is being used.

And Y = eth1.

Without making network changes, can I make the web browser use eth1 ?
Can I specify this within Firefox?

(I need to keep eth0 as is because Apache config is tied to it.)
 
Old 04-06-2005, 12:53 AM   #4
kencaz
Senior Member
 
Registered: Mar 2005
Location: Las Vegas, NV
Distribution: Mandriva Slackware FreeBSD
Posts: 1,468

Rep: Reputation: 48
Hmm, that's a tough one.

Don't know the software solution but,
Since eth0 and eth1 are tied to the NIC's, maybe just switch the cables.

KC
 
Old 04-06-2005, 01:53 AM   #5
abhijeetudas
Member
 
Registered: Sep 2004
Distribution: Redhat / Fedora
Posts: 114

Rep: Reputation: 15
What you can do is

run mii-tool -w
mii-tool in watch mode..
It will show you the current link status..
on both the ethernet cards, like


11:21:05 eth0: negotiated 100baseTx-FD, link ok
11:21:05 eth1: negotiated 100baseTx-FD, link ok
11:21:05 eth2: negotiated 100baseTx-FD, link ok


[ i have 3 ethernet cards on my machine hence the eth2 ]

pull out one of the cables & you should see a change in the output of watch,
indicating eth1 / eth0 lost link
that way you should identify which is which
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
3 NICS and Not One Working! Christopher Slackware 14 08-15-2004 05:48 PM
can't get nics working, on gateway evilchild Slackware 3 03-28-2004 08:18 PM
Can't get 2 NICs working facefullofsnow Linux - Networking 5 12-01-2003 04:18 AM
FA310TX NICs not working with RH8.0 cougar Linux - Newbie 12 07-19-2003 09:32 PM
squid working fine but..... saavik Linux - Software 0 01-10-2002 12:57 PM


All times are GMT -5. The time now is 07:35 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration