It is sometimes necessary to have another loopback interface, for example to test https protocol on Mac. Read how to create it.

Share This Post

Create file /Library/LaunchDaemons/yourname.plist with the following content:
<plist version="1.0">
    <dict>
        <key>Label</key>
            <string>Your Label</string>
        <key>ProgramArguments</key>
            <array>
                <string>/sbin/ifconfig</string>
                <string>lo0</string>
                <string>alias</string>
                <string>127.0.0.2</string>
                <string>netmask</string>
                <string>255.255.255.0</string>
            </array>
        <key>RunAtLoad</key>
            <true/>
    </dict>
</plist>
and reboot the machine.
Follow me:
Latest posts by saki (see all)

Want to collaborate on an upcoming project?