JB's Homepage

One man on one island.

Aliasing Ethernet addresses

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

Viewing 16 Comments

 
close Reblog this comment
blog comments powered by Disqus