Skip to content

Instantly share code, notes, and snippets.

@thejohnny
Created April 20, 2022 14:43
Show Gist options
  • Save thejohnny/9fe363d1fb80fea75e49246a4936bed7 to your computer and use it in GitHub Desktop.
Save thejohnny/9fe363d1fb80fea75e49246a4936bed7 to your computer and use it in GitHub Desktop.
Add network addresses to loopback interface
#!/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