Skip to content

Instantly share code, notes, and snippets.

@froop
Last active August 30, 2022 23:36
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 froop/19f51a004a60ac7b1ec6140cd90dba12 to your computer and use it in GitHub Desktop.
Save froop/19f51a004a60ac7b1ec6140cd90dba12 to your computer and use it in GitHub Desktop.
[Linux] 大量のIPアドレスを追加
#!/usr/bin/env bash
for addr3 in $(seq 0 4); do
for addr4 in $(seq 1 255); do
ip addr add 172.32.${addr3}.${addr4}/16 dev eth0
done
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment