How to know which network path my program is using ?
I have a program running on solaris, this machine has multiple network interfaces few connected to 1Gig and few 10 gig. Suppose my application with PID P is running. IS there any command which display which network interface my program is submitting packets
It's routing aplication specific. Not aplication specific.
Some times possible only one way check what interface used:
snoop for every network interface for specific port.
You application - is it server or client ?
In case server - you can configure aplication for listen only specific IP. So bind it to interface.
On an unbound endpoint, packet routing is destination based (unless you have some funky IP Filter rules) hence
it really depends on who you are sending packets to. You can bind an endpoint to a specific local address.