TITLE
    Mac OS X Server: Ethernet Interface Can Have Multiple IP Addresses
Article ID:
Created:
Modified:
60301
4/21/99
5/29/00

TOPIC

    You may (as the Administrator, or root user) use the ifconfig command to add IP addresses to a single Ethernet interface. In this example, IP addresses other than the first IP address are added for the first Ethernet interface (en0).


DISCUSSION

    Type the following commands in a Terminal window:
      ifconfig en0 down

    This takes the interface down and is required before changing configurations.
      ifconfig en0 alias 123.456.789.101 netmask 255.255.255.0

    This adds additional IP address of 123.456.789.101 to this interface with netmask of 255.255.255.0
      ifconfig en0 up

    This brings the interface back up.

    Test the new IP address by ping or telnet.

    The ifconfig command may also be used to configure a port with a single IP address or change existing configurations. These steps are simpler to perform from Network Preferences (under the Apple menu).

    More information about ifconfig is available by typing man ifconfig at the command prompt.

    Note: Type the desired IP address in the place of 123.456.789.101 above.

Document Information
Product Area: Mac OS System Software
Category: Mac OS X Server
Sub Category: General Topics

Copyright © 2000 Apple Computer, Inc. All rights reserved.