|
|
 |  |
Re: OS X & Multiple ip addressesFrom: .j a m e s =?ISO-8859-1?B?sLc=?=. Date: Monday, June 25, 2001
Time: 6:14:40 pmon 6/25/01 1:04 PM, mylists@picketfence.com at mylists@picketfence.com
wrote:
> Can QuickDNS for Mac OS X serve on multiple ip addresses?
>
> Multiple ip addresses can be setup in Mac OS X via the Advanced tab of
> Network Services.
>
> I'm making some changes to my dns servers with InterNIC and
actually you're "supposed" to be able to set up multiple IP's according to
osX server manuals... it doesn't work and apple knows about this:
currently i have this working with one additional IP address and am working
on multiple ip's... please share your results.
here's text from some emails i've saved concerning this issue:
---------------------------=-=-=--=-=-=-=-=-=-=-=-=-------------------------
> Does anyone know if you can set up macos x server with multiple ip
> addresses that I could setup with the webserver and etc.?
I made a startup script that you can modify and extend to meet your
needs. You can grab it on my iDisc:
http://homepage.mac.com/joar
The files are called "AdditionalInterfaces"
Regards,
j o a r
---------------------------=-=-=--=-=-=-=-=-=-=-=-=-------------------------
I Have the Tech info Library Number 60301 This will tell you about how
to setup Muli IP with your built-in ethernet port. info As Follows:
ifconfig en0 down
ifconfig en0 alias 107.232.565.23 netmask 255.255.255.0
ifconfig en0 up
test with a ping. This will work
The example by the Apple Care Rep never told us that you MUST bring down
ethernet to install the new IP address. you must enter your own ip
information in place of the example
---------------------------=-=-=--=-=-=-=-=-=-=-=-=-------------------------
IP aliases that are on the same subnet need to have an "all ones" subnet
mask: 255.255.255.255. Here's the command I use on my server: (here with a
fake IP address)
ifconfig en0 10.42.56.251 netmask 255.255.255.255 broadcast 10.42.56.255
alias
Some BSD FAQ somewhere told me that adding the broadcast is important too,
so I did.
I added this line to /system/library/startupitems/apache/apache, right
before apache itself is started. It's worked like a charm!
Here's the man page entry for ifconfig, which talks about the necessary
255.255.255.255, and that a routing table entry is not created for you
without it:
Establish an additional network address for this inter- face. This is
sometimes useful when changing network numbers, and one wishes to accept
packets addressed to the old interface. A netmask should be used with this
parameter. If the new ( alias ) address is on the same subnet as an existing
address assigned to this interface, the netmask must be "255.255.255.255".
If a netmask is not supplied, the command will use the one implied by the
address itself (e.g, Class A). If the 'all ones' netmask is used, the system
will handle route installation. If another netmask is used, a route to that
address must be installed by hand, e.g., "route add -host XX.XX.XX.XX
-interface 127.0.0.1", where "XX.XX.XX.XX" is the new alias (c.f. route
(8)). In either case, the administra- tor may have to remove a route by hand
when the alias is removed ( -alias or delete )
- Peter
|

Return to Digital Point Solutions' Home Page |