LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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, 08: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, 10:25 AM   #2
Nathanael
Member
 
Registered: May 2004
Location: Karlsruhe, Germany
Distribution: debian, gentoo, os x (darwin), ubuntu
Posts: 940

Rep: Reputation: 32
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, 06: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, 06:49 AM   #4
Nathanael
Member
 
Registered: May 2004
Location: Karlsruhe, Germany
Distribution: debian, gentoo, os x (darwin), ubuntu
Posts: 940

Rep: Reputation: 32
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, 08: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


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


All times are GMT -5. The time now is 02:58 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration