Create a gist now

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=10.241.9.10 centos

vethrb31af40 = container network interface obtained from ip route output.

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