Skip to content

Instantly share code, notes, and snippets.

@jaytaylor
Created August 1, 2017 19:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jaytaylor/f98c24389a8fc5418aa55356272365f5 to your computer and use it in GitHub Desktop.
Save jaytaylor/f98c24389a8fc5418aa55356272365f5 to your computer and use it in GitHub Desktop.
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