I am running a docker server container attached to the server_router network (bridge network driver) and a docker client container attached to the client_router network (bridge network driver). Router container is connected to both server_router and client_router network.
I need this network topology where server and client belong to different docker networks and router is able to connect the server and client containers (actual router which can route server and client traffic). This is needed for network simulation where i am running the simulation on docker containers instead of actual computers. (network simulator being used is TCP Experiment Automation Controlled Using Python (TEACUP) ).
commands used to create the setup:
docker network create server_router
docker network create client_router
docker run -itd --net client_router --name client ubuntu:14.04
docker run -itd --net server_router --name server ubuntu:14.04
docker run -itd --net server_router --name router ubuntu:14.04
docker network connect client_router router
docker network inspect client_router
docker network inspect server_router
representation of the network topology
I am able to ping client container from router container and vice versa, also I am able to ping server container from router container and vice versa (as they belong to the same network). But I am not able to ping server container from client container and vice versa.
ping command does not show any result.
Any suggestions will be of great help.