Fri Sep 22, 2017 4:16 pm
This is not what I would call a "Beginner Basics" question.
The only thing I can think of off hand is the LACP layer 2 hash algorithm, but I think the best you can do is XOR between the last bit of the IP address and port number. Not perfectly random, but it works pretty good in the layer 2 link aggregation world.