Solaris Trusted Extensions Installation and Configuration for Solaris 10 11/06 and Solaris 10 8/07 Releases

ProcedureConfigure the Network Interfaces in Trusted Extensions

Note –

If you are configuring your system to use DHCP or to prevent networks from contacting the global zone, refer to the laptop instructions in the Trusted Extensions section of OpenSolaris Community: Security web page.

In this task, you configure the networking in the global zone. You must create exactly one all-zones interface. An all-zones interface is shared by the labeled zones and the global zone. The shared interface is used to route traffic between the labeled zones and the global zone. To configure this interface, do one of the following:

To add zone-specific network interfaces, finish and verify zone creation before adding the interfaces. For the procedure, see Add a Network Interface to an Existing Labeled Zone.

Before You Begin

You are superuser in the global zone.

The Labeled Zone Manager is displayed. To open this GUI, see Run the txzonemgr Script.

  1. In the Labeled Zone Manager, select Manage Network Interfaces and click OK.

    A list of interfaces is displayed.

    Note –

    In this example, the physical interface was assigned a host name and an IP address during installation.

  2. Select the physical interface.

    A system with one interface displays a menu similar to the following. The annotation is added for assistance:

    vni0                        DownVirtual Network Interface
    eri0 global cipso Up Physical Interface
    1. Select the eri0 interface.

    2. Click OK

  3. Select the appropriate task for this network interface.

    You are offered three options:

    View Template Assign a label to the interface
    Share Enable the global zone and labeled zones to use this interface
    Create Logical Interface Create an interface to use for sharing
    • If your system has one IP address, go to Step 4.

    • If your system has two IP addresses, go to Step 6.

  4. On a system with one IP address, share the physical interface.

    In this configuration, the host's IP address applies to all zones. Therefore, the host's address is the all-zones address. This host cannot be used as a multilevel server. For example, users cannot share files from this system. The system cannot be an LDAP proxy server, an NFS home directory server, or a print server.

    1. Select Share and click OK.

    2. At the prompt, accept the host name.

    3. Dismiss the dialog box that displays the netmask.

      eri0  all-zones  cipso  Up
  5. Skip the next step.

    You are successful when the physical interface is an all-zones interface.

  6. On a system with two IP addresses, create a logical interface.

    Then, share the physical interface.

    This is the simplest Trusted Extensions network configuration. In this configuration, the main IP address can be used by other systems to reach any zone on this system, and the logical interface is zone-specific to the global zone. The global zone can be used as a multilevel server.

    1. Select Create Logical Interface and click OK.

      Dismiss the dialog box that confirms the creation of a new logical interface.

    2. Select Set IP address and click OK.

    3. At the prompt, specify the host name for the logical interface and click OK.

      For example, specify machine1-services as the host name for the logical interface. The name indicates that this host offers multilevel services.

    4. At the prompt, specify the IP address for the logical interface and click OK.

      For example, specify as the IP address for the logical interface.

    5. Select the logical interface again and click OK.

    6. Select Bring Up and click OK.

      The interface is displayed as Up.

      eri0    global   cipso   Up
      eri0:1  global   cipso   Up
    7. Share the physical interface.

      1. Select the physical interface and click OK.

      2. Select Share and click OK.

        eri0    all-zones   cipso   Up
        eri0:1  global   cipso   Up

    You are successful when at least one interface is an all-zones interface.

Example 4–2 Viewing the /etc/hosts File on a System With a Shared Logical Interface

On a system where the global zone has a unique interface and labeled zones share a second interface with the global zone, the /etc/hosts file appears similar to the following:

# cat /etc/hosts
...  localhost machine1 loghost machine1-services 

In the default configuration, the tnrhdb file appears similar to the following:

# cat /etc/security/tsol/tnrhdb

If the all-zones interface is not in the tnrhdb file, the interface defaults to cipso.

Example 4–3 Displaying the Shared Interface on a Trusted Extensions System With One IP Address

In this example, the administrator is not planning to use the system as a multilevel server. To conserve IP addresses, the global zone is configured to share its IP address with every labeled zone.

The administrator selects Share for the hme0 interface on the system. The software configures all zones to have logical NICs. These logical NICs share a single physical NIC in the global zone.

The administrator runs the ifconfig -a command to verify that the physical interface hme0 on network interface is shared. The value all-zones is displayed:

 lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
         inet netmask ff000000
 hme0: flags=1000843<BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
         inet netmask fffffe00 broadcast

The administrator also examines the contents of the /etc/hostname.hme0 file: all-zones