System Administration Guide: IP Services

ProcedureHow to Add a Physical Interface After Installation in Solaris 10 3/05 ONLY

Before You Begin

Determine the IPv4 addresses that you want to use for the additional interfaces.

The physical interface to be configured must be present on the system. For information on installing separately purchased NIC hardware, refer to the manufacturers instructions that accompany the NIC.

The next procedure assumes that you have performed a reconfiguration boot after physically installing a new interface.

Note –

The next procedure contains applies to users of the Solaris 10 3/05 OS only. If you are using an update to Oracle Solaris 10, refer to How to Configure a Physical Interface After System Installation.

  1. On the system with the interfaces to be configured, assume the Primary Administrator role or become superuser.

    The Primary Administrator role includes the Primary Administrator profile. To create the role and assign the role to a user, see Chapter 2, Working With the Solaris Management Console (Tasks), in System Administration Guide: Basic Administration.

  2. Configure and plumb each interface.

    # ifconfig interface plumb up

    For example, for qfe0 you would type:

    # ifconfig qfe0 plumb up

    Note –

    Interfaces that are explicitly configured with the ifconfig command do not persist across a reboot.

  3. Assign an IPv4 address and netmask to the interface.

    # ifconfig interface IPv4-address netmask+netmask

    For example, for qfe0 you would type:

    # ifconfig qfe0 netmask +
  4. Verify that the newly configured interfaces are plumbed and configured, or “UP.”

    # ifconfig -a

    Check the status line for each interface that is displayed. Ensure that the output contains an UP flag on the status line, for example:

    qfe0: flags=1000843 <UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
  5. (Optional) To make the interface configuration persist across reboots, perform the following steps:

    1. Create an /etc/hostname.interface file for each interface to be configured.

      For example, to add a qfe0 interface, you would create the following file:

      # vi /etc/hostname.qfe0
    2. Edit the /etc/hostname.interface file.

      At a minimum, add the IPv4 address of the interface to the file. You can also add a netmask and other configuration information to the file.

      Note –

      To add an IPv6 address to an interface, refer to Modifying an IPv6 Interface Configuration for Hosts and Servers

    3. Add entries for the new interfaces into the /etc/inet/hosts file.

    4. Perform a reconfiguration boot.

      # reboot -- -r
    5. Verify that the interface you created in the /etc/hostname.interface file has been configured.

      # ifconfig -a

Example 5–10 Configuring an Interface After System Installation

The following example shows how to add two interfaces, qfe0 and qfe1. These interfaces are attached to the same network as the primary network interface, hme0. Note that this interface configuration exists until you reboot the system. For an example that shows how to make interface configurations persist across reboots, see Example 6–2. However, the dladm command that is used in that example is only available starting with the Solaris 10 1/06 OS.

# ifconfig qfe0 plumb up
# ifconfig qfe1 plumb up
# ifconfig qfe0 netmask
# ifconfig qfe1 netmask

# ifconfig -a
lo0: flags=1000849 <UP,LOOPBACK,RUNNING,MULTICAST,IPv4> mtu 8232 index 1
        inet netmask ff000000 
hme0: flags=1000843 <UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
        inet netmask ff000000 broadcast
        ether 8:0:20:c1:8b:c3 
qfe0: flags=1000843 <UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 3
        inet netmask ff000000 broadcast
        ether 8:0:20:c8:f4:1d 
qfe1: flags=1000843 <UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 4
        inet netmask ff000000 broadcast
        ether 8:0:20:c8:f4:1e 

See Also