Last active
August 30, 2022 23:36
-
-
Save froop/19f51a004a60ac7b1ec6140cd90dba12 to your computer and use it in GitHub Desktop.
[Linux] 大量のIPアドレスを追加
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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