Created
April 20, 2022 14:43
-
-
Save thejohnny/9fe363d1fb80fea75e49246a4936bed7 to your computer and use it in GitHub Desktop.
Add network addresses to loopback interface
This file contains 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
#!/bin/sh | |
for x in 10 20 30 | |
do | |
for y in {1..5} | |
do | |
sudo ifconfig lo0 alias 127.0.${x}.${y} | |
done | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment