JB's Blog

/au/SysAdmin

Aliasing Ethernet addresses

with 19 comments

Was hunting in the Network section in Mac OS X for a way to add a second IP address. Failing to find anything helpful I used trusty ifconfig!

sudo ifconfig en0 alias 10.0.0.5 netmask 255.255.255.0

Won’t work on reboots, but a nice little hack. Thank you Apple for using BSD!

Written by JB Hewitt

June 22nd, 2004 at 10:34 am

Posted in Mac OS X