Last active
April 12, 2019 14:14
-
-
Save akarzim/f1d2779376dbac738a2880fb2a4965ac to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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