ASSUMPTION:
Consider, two docker containers c1, c2 created.
c1
c2
Each of them having ethernet interfaces attached to net