Skip to content

Instantly share code, notes, and snippets.

@knalli
Created May 1, 2012 13:26
Show Gist options
  • Save knalli/2567890 to your computer and use it in GitHub Desktop.
Save knalli/2567890 to your computer and use it in GitHub Desktop.
Adding an additional route via a gateay
#!/bin/bash
# Routing the 192.168.1.0/24 net via the gateway at 192.168.0.101
sudo route -n add 192.168.1.0 192.168.0.101 255.255.255.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment