Trusted Solaris Installation and Configuration

How to Set Up Static Routing

Routing is required only if the security administrator has planned for an open network. There are three routing methods available: dynamic routing (the default), and static routing (using a defaultrouter or tsolgateways file).

For small networks, an /etc/defaultrouter file provides a simple routing method. If your workstation or site accesses a complex network of gateways, the /etc/tsolgateways file offers more control over static routing. See "Administering Trusted Networking" in Trusted Solaris Administration Overview and the tsolgateways(4) man page for more information.

To Set Up Simple Static Routing


Note -

For static routing, do either this procedure, or "To Set Up Complex Static Routing".


Graphic
  1. Double-click the Set Default Routes action in the System_Admin folder.

    See "To Open a File that has a Defined Action" if you are unfamiliar with using trusted actions.

    An empty /etc/defaultrouter file appears in the trusted editor.

  2. Enter the name or the IP address of the defaultrouter. If there is more than one, enter them all, one per line, and then save the file.

    For example, if the workstations trustworthy and forwardho are routers, enter them, one per line:


    trustworthy
    forwardho
    

  3. Return to the procedure and chapter you are working from.

To Set Up Complex Static Routing

  1. Double-click the Set TSOL Gateways action in the System_Admin folder.

    See "To Open a File that has a Defined Action" if you are unfamiliar with using trusted actions.

    An empty /etc/tsolgateways file appears in the trusted editor. See the tsolgateways(4) man page for examples of how to format the file.

  2. Enter the IP address of the net, the name of the gateway and its metric. Repeat for every gateway and save the file.

    For example, if the workstations trustworthy and forwardho are gateways:


    129.150.150.0 trustworthy 1
    129.150.8.0 forwardho 2
    


    Note -

    If the workstation has an /etc/defaultrouter file and an /etc/tsolgateways file, only the /etc/tsolgateways file is used for routing decisions.


  3. Return to the procedure and chapter you are working from.