Creates an alias on the loopback interface (lo0) with the IP 200.0.0.1 on Mac OS X.
- Install the plist to:
/Library/LaunchDaemons/com.runlevel1.lo0.200.0.0.1.plist
- Set mode:
chmod 0644 /Library/LaunchDaemons/com.runlevel1.lo0.200.0.0.1.plist
- Set owner:
sudo chown root:wheel /Library/LaunchDaemons/com.runlevel1.lo0.200.0.0.1.plist
- Load:
sudo launchctl load /Library/LaunchDaemons/com.runlevel1.lo0.200.0.0.1.plist
The alias will automatically be created at startup from then on.
You can confirm the alias was created with ifconfig
:
$ ifconfig lo0
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
options=1203<RXCSUM,TXCSUM,TXSTATUS,SW_TIMESTAMP>
inet 127.0.0.1 netmask 0xff000000
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
inet 200.0.0.1 netmask 0xffffff00
nd6 options=201<PERFORMNUD,DAD>