LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   through which NIC card my packet is going out at that instance. (https://www.linuxquestions.org/questions/linux-newbie-8/through-which-nic-card-my-packet-is-going-out-at-that-instance-643222/)

chaitanya1982 05-19-2008 07:43 AM

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

Nathanael 05-19-2008 09:25 AM

it depends on your routing table, you could show us the output of route -n and we can give your more information.

chaitanya1982 05-20-2008 05:03 AM

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 (Post 3157932)
it depends on your routing table, you could show us the output of route -n and we can give your more information.


Nathanael 05-20-2008 05:49 AM

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!

chaitanya1982 05-20-2008 07:23 AM

Thanks for your information...it's really helpfull

Quote:

Originally Posted by Nathanael (Post 3158932)
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!



All times are GMT -5. The time now is 12:29 PM.