LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   routing tables, multiple NICs... (https://www.linuxquestions.org/questions/linux-newbie-8/routing-tables-multiple-nics-922328/)

linux_kung_fu 01-05-2012 11:42 PM

routing tables, multiple NICs...
 
Need help determining what NIC has default traffic coming in/going out. Example, looking at a machine that has a public IP on eth0 and a private IP on eth1, by looking at the routing table I need to know what traffic arrives/departs on what NIC.

Any suggestions on where to look would be greatly appreciated.

askandstudy 01-06-2012 12:03 AM

[root@RHEL6A ~]# netstat -r
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
192.168.15.0 * 255.255.255.0 U 0 0 0 eth0
197.150.222.0 * 255.255.255.0 U 0 0 0 eth1
192.168.122.0 * 255.255.255.0 U 0 0 0 virbr0
link-local * 255.255.0.0 U 0 0 0 eth0
link-local * 255.255.0.0 U 0 0 0 eth1
default 192.168.15.2 0.0.0.0 UG 0 0 0 eth0
[root@RHEL6A ~]#


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