Advertisement
teknoraver

grestack

Mar 19th, 2019
333
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.20 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. v=(lo tungre{1..30})
  4.  
  5. for i in {1..30} ; do
  6.     ip link add name ${v[i]} type gretap dev ${v[i-1]}
  7.     ip link set ${v[i]} up
  8.     ping -qb 255.255.255.255 -I ${v[i]} >/dev/null 2>&1 &
  9. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement