I have a project that requires me to send traffic out a specific Port on a Server the server has 7 Ethernet Ports . I have created the IP rules to send data from a certain host to a certain port. I can happily view my rules via "ip rule show"
However when I create a route to say "Use this Gateway for this Host" I do not see a HOST SPECIFIC ROUTE with Netstat.
ip route add 172.16.2.65 via 172.16.1.1 dev eth3 table eth3
I expect to a route specific for this host when I do netstat -rn. Is this correct? I do not see this Host Specific Route. Is Netstat -rn the proper command. Any thoughts. Thanks.
[18:29:20] shock:/home/debug # netstat -rn
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
172.16.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
172.16.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth1
172.16.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth2
172.16.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth3
172.16.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth4
172.16.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth5
172.16.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth6
0.0.0.0 172.16.1.1 0.0.0.0 UG 0 0 0 eth0