Skip to content

Instantly share code, notes, and snippets.

@akarzim
Last active April 12, 2019 14:14
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 akarzim/f1d2779376dbac738a2880fb2a4965ac to your computer and use it in GitHub Desktop.
Save akarzim/f1d2779376dbac738a2880fb2a4965ac to your computer and use it in GitHub Desktop.
function brip {
sudo /sbin/route -n add -net 192.168.0.0/16 -gateway $(docker-machine ip)
sudo /sbin/route -n add -net 172.19.0.0/12 -gateway $(docker-machine ip)
interface=$(ifconfig bridge100 | grep member | cut -d ' ' -f 2)
sudo ifconfig bridge100 -hostfilter "$interface"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment