Skip to content

Instantly share code, notes, and snippets.

@OnkelTem
Last active August 29, 2015 14:06
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 OnkelTem/7cdbd9345f6ea0366e6e to your computer and use it in GitHub Desktop.
Save OnkelTem/7cdbd9345f6ea0366e6e to your computer and use it in GitHub Desktop.
$ ip route get 192.168.1.1 from 192.168.1.108
>>
192.168.1.1 from 192.168.1.108 dev eth0
# ip rule add from 192.168.1.108 table 10000
# ip route add throw 192.168.1.108 table 10000
# ip route add default dev wlan0 via 192.168.1.1 table 10000
$ ip route get 192.168.1.1 from 192.168.1.108
>>
192.168.1.1 from 192.168.1.108 via 192.168.1.1 dev wlan0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment