How should i know throwgh which of my interface client is connected to?

AmitS89

Honorable
Dec 13, 2013
1
0
10,510
I am runing server which litsen on perticuler port with three intrefaces. Now when any client connected to me knows which server interface it is using. How should i know throwgh which of my interface client is connected to?
 
You are going to have to describe a little better how you have this configured.

There are a couple general ways. If you have different IP on the interfaces and the users are using those IP to connect say via tcp then you will know because there is a open session and you can see both the source and destination addresses.

Now if you have gotten tricky and are using a virtual address for the server and the network equipment knows this virtual address is reachable by any of the 3 network interfaces it gets tough. The IP session information no longer does any good because the server address is the same no matter which interface they used. You might be able to see the mac address of the network equipment that is connected to each interface. In theory the mac addresses should be different so you might be able to tell which interface but in real world sometime if the network equipment is a vlan or something you can get the same mac addresses.

This is generally why when you have a multinic machine and want to use multiple interfaces you use a layer 2 solution like port bonding to hide the worry about which interface.