Skip to content

Instantly share code, notes, and snippets.

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 bviews/0381ad0a9494bf3175e2a37c54d0cb4e to your computer and use it in GitHub Desktop.
Save bviews/0381ad0a9494bf3175e2a37c54d0cb4e to your computer and use it in GitHub Desktop.
ifconfig alias loopback on macOS startup
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.foobar.ifconfiglo</string>
<key>ProgramArguments</key>
<array>
<string>/sbin/ifconfig</string>
<string>lo0</string>
<string>alias</string>
<string>10.1.1.1/24</string>
</array>
<key>StandardOutPath</key>
<string>/tmp/ifconfiglo.log</string>
<key>StandardErrorPath</key>
<string>/tmp/ifconfiglo-error.log</string>
<key>Debug</key>
<true />
<key>KeepAlive</key>
<true/>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment