LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-19-2008, 07:43 AM   #1
chaitanya1982
LQ Newbie
 
Registered: Apr 2008
Posts: 23

Rep: Reputation: 15
through which NIC card my packet is going out at that instance.


Hi
I am having 2 NIC cards in my linux box...and both are configured to communicate with internet.Both are configured with diff DNS & Gateway and every thing now I want to know through which NIC card my packet is going out at that instance.Is there any file to track the information or is there any tool. Please provide me the information
 
Old 05-19-2008, 09:25 AM   #2
Nathanael
Member
 
Registered: May 2004
Location: Karlsruhe, Germany
Distribution: debian, gentoo, os x (darwin), ubuntu
Posts: 940

Rep: Reputation: 33
it depends on your routing table, you could show us the output of route -n and we can give your more information.
 
Old 05-20-2008, 05:03 AM   #3
chaitanya1982
LQ Newbie
 
Registered: Apr 2008
Posts: 23

Original Poster
Rep: Reputation: 15
hai

Thanks for your reply. This is not real scenario. I got a doubt that's it. I could not give you the out put of route -n . And I want know with out according to that scenario..how the packet will decide through which NIC it will go out when both NIC are free. And can we set the priority like that thing. I want to know through which NIC that packet went outside. where can I find that. I have done following

tcpdump -i etho > log1
tcpdump -i eth1 > log2

and 'ethereal'

But that information is not clear.

Thanks & regards
Chaitanya

Quote:
Originally Posted by Nathanael View Post
it depends on your routing table, you could show us the output of route -n and we can give your more information.
 
Old 05-20-2008, 05:49 AM   #4
Nathanael
Member
 
Registered: May 2004
Location: Karlsruhe, Germany
Distribution: debian, gentoo, os x (darwin), ubuntu
Posts: 940

Rep: Reputation: 33
how packets leave a computer is defined in the routing table!

if you want to watch realtime you could take a look at iptraf, yet having a look at the routing table will let you know the route of the packets without needing to watch!
 
Old 05-20-2008, 07:23 AM   #5
chaitanya1982
LQ Newbie
 
Registered: Apr 2008
Posts: 23

Original Poster
Rep: Reputation: 15
Thanks for your information...it's really helpfull

Quote:
Originally Posted by Nathanael View Post
how packets leave a computer is defined in the routing table!

if you want to watch realtime you could take a look at iptraf, yet having a look at the routing table will let you know the route of the packets without needing to watch!
 
  


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
eth0 NIC Card Not Working! 3com 3c501 NIC. Mustard010 Linux - Networking 16 08-15-2007 02:22 AM
same old problem of nic card and sound card detection in 10.2 brgurung Slackware 8 03-29-2007 03:40 AM
packet cloning and routing with single NIC gianman Linux - Networking 0 11-10-2006 10:33 AM
NIC Of NIC/Graphics Card Combo Not Detected username132 Linux - Hardware 2 04-04-2006 10:16 PM
Help with video card / packet installing... Y3k Linux - Newbie 3 06-04-2004 07:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:11 PM.

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