Guest User

Untitled

a guest
Nov 20th, 2018
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. IFS='.' read -ra IPARR <<< "$IP"
  2. Gateway="${IPARR[0]}.${IPARR[1]}.${IPARR[2]}.14"
  3. ssh blah@$IP '/sbin/route -v del default gw $Gateway;'
  4. #ssh blah@$IP '/sbin/ip route delete $Gateway dev rndis0;'
  5. #ssh blah@$IP '/sbin/route -n'
  6.  
  7. ssh blah@$IP "/sbin/route -v del default gw $Gateway;"
Add Comment
Please, Sign In to add comment