Skip to content

Instantly share code, notes, and snippets.

@ejhayes
Created April 3, 2015 21:30
Show Gist options
  • Save ejhayes/166b8db1cbd06970b2b0 to your computer and use it in GitHub Desktop.
Save ejhayes/166b8db1cbd06970b2b0 to your computer and use it in GitHub Desktop.
Fix Boot2Docker network timeout issue (sometimes VPN might affect this)
# fix boot2docker network timeouts (check boot2docker network interface name, mine is vboxnet0, yours may vary)
sudo route -nv add -net 192.168.59 -interface vboxnet0
#u: inet 192.168.59.0; u: link vboxnet0:a.0.27.0.0.0; RTM_ADD: Add Route: len 140, pid: 0, seq 1, errno 0, flags:<UP,STATIC>
#locks: inits:
#sockaddrs: <DST,GATEWAY,NETMASK>
# 192.168.59.0 vboxnet0:a.0.27.0.0.0 (0) 0 ffff ff
# add net 192.168.59: gateway vboxnet0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment