Skip to content

Instantly share code, notes, and snippets.

@xream
Created January 4, 2012 07:12
Show Gist options
  • Save xream/1558911 to your computer and use it in GitHub Desktop.
Save xream/1558911 to your computer and use it in GitHub Desktop.
restore routes
#!/bin/bash
oldgw=10.211.55.1
vpngw=10.100.0.1
poff
route del default gw $oldgw
route del default gw $vpngw
route add default gw $oldgw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment