Multihoming IP Aliasing in OSX

evildan

Super Moderator
I have a 4D Webstar Webserver running in osx. The DNS server has the 12 websites that I am hosting on it pointed to multiple ip addresses.

I realize this is a waste of real-world-ips but, how do I set up multihoming in osx?

I've looked in some of the posted descussions and I found this information

------------
#!/bin/sh

. /etc/rc.common

##
# Assign secondary IP addresses
##

ConsoleMessage "Adding secondary IP addresses"

ifconfig en0 down
ifconfig en0 alias 192.168.123.2
ifconfig en0 alias 192.168.123.3 netmask 0xFFFFFFFF
ifconfig en0 alias 192.168.124.1
ifconfig en0 up
------------------

The instructions say to put the appropriate ip addresses in the lines above.

My only question is does the code above add one ip address? Where do I add the second ip address? Should one of those be the ip address to my webserver? Should one of those be my subnetmask?

I have about 12 ip's to add... where would I insert the rest of the ip aliases?
 
Back
Top