Instantly share code, notes, and snippets.

What would you like to do?
Network troubleshooting commnads.

Check a route path:

Start a container in --net=routed mode:

sudo docker run --rm -it --net=routed --ip-address= centos

vethrb31af40 = container network interface obtained from ip route output.

[jtaylor@ip-10-240-0-77 ~]$ ip route get from iif vethrb31af40 from via dev eth0
    cache  iif *
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment