SHARE
TWEET

Untitled

a guest Nov 14th, 2017 46 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. add_v6 () {
  2.   ip addr add 2604:4300:a:260:$1/64 dev eth1
  3. }
  4. v6_range () {
  5.   for ((i=$2;i<=$3;i++)); do
  6.     add_v6 $1$i
  7.   done
  8. }
  9.  
  10. add_v4 () {
  11.   ip addr add $1/29 dev eth1
  12. }
  13. v4_range () {
  14.   for ((i=$2;i<=$3;i++)); do
  15.     add_v4 $1$i
  16.   done
  17. }
  18. v6_range dead:dad:666: 1 4
  19. v6_range b00b:: 1 2
  20. v6_range bad:c0de:420: 1 6
  21. add_v6 :dead:beef
  22. add_v6 bad:babe::
  23. v4_range 69.197.161. 203 206
RAW Paste Data
Pastebin PRO Autumn Special!
Get 40% OFF on Pastebin PRO accounts!
Top