cappuccinoのコンピタブログ

cappmac.exblog.jp
ブログトップ

IPAliases

/System/Library/StartupItems/IPAliases/IPAliases (555)

#!/bin/sh

. /etc/rc.common

if [ "${IPALIASES:=-NO-}" = "-YES-" ]; then

ConsoleMessage "Adding IP Aliases"

/sbin/ifconfig en0 alias 192.168.24.55 netmask 255.255.255.0
/sbin/ifconfig en0 alias 172.18.255.250 netmask 255.255.0.0

fi


/System/Library/StartupItems/IPAliases/StartupParameters.plist (444)

{
Description = "IP aliasing startup";
Provides = ("IPAliases");
Requires = ("Network");
OrderPreference = "None";
Messages =
{
start = "Starting IP aliasing";
stop = "Stopping IP aliasing";
};
}


/System/Library/StartupItems/Apache/StartupParameters.plist

{
Description = "Apache web server";
Provides = ("Web Server");
Uses = ("Disks", "NFS");
Requires = ("Disks","Resolver","IPAliases");
}


/etc/hostconfig

#add
IPALIASES=-YES-

[PR]
by cappuccino_mac | 2006-03-18 21:56 | 設定覚え書き