github.com/cloudfoundry-attic/garden-linux@v0.333.2-candidate/scripts/add-route (about)

     1  #!/bin/bash
     2  
     3  echo "Adding the following route entry to your local route table to enable direct container access. Your sudo password may be required."
     4  echo "  - net 10.254.0.0/19 via 192.168.50.5"
     5  if [ `uname` = "Darwin" ]; then
     6   sudo route delete -net 10.254.0.0/19 192.168.50.5 > /dev/null 2>&1
     7   sudo route add -net 10.254.0.0/19 192.168.50.5
     8  elif [ `uname` = "Linux" ]; then
     9   sudo route add -net 10.254.0.0/19 gw 192.168.50.5
    10  fi