System Administration Guide: IP Services

How to Configure a Machine as a Router

  1. Become superuser on the machine to be configured as a router.

  2. Create an /etc/hostname.interface file for each network interface that is installed.

    For example, create hostname.ie0 and hostname.ie1. See /etc/hostname.interface File for more information. If you are using IPv6, see IPv6 Network Interface Configuration File.

  3. In each file, type the host name you have selected for that interface.

    For example, you could type the name timbuktu in the file hostname.ie0, then type the name timbuktu-201 in the file hostname.ie1. Both interfaces would be located on the same machine.

  4. Type the host name and IP address of each interface into /etc/inet/hosts.

    For example:     timbuktu       #interface for network 192.9.200     timbuktu-201   #interface for network 192.9.201      gobi     mojave    saltlake     chilean

    The interfaces timbuktu and timbuktu-201 are on the same machine. Notice that the network address for timbuktu-201 is different from that of timbuktu. The difference exists because the medium for network 192.9.201 is connected to the timbuktu-201 network interface while the media for network 192.9.200 is connected to the timbuktu interface. If you are using IPv6, see /etc/inet/ipnodes File.

  5. If the router is connected to any subnetted network, edit /etc/inet/netmasks and type the local network number (, for example) and associated netmask number (, for example).

The startup script determines whether to start up a routing protocol (RIP or RDISC) on the machine or use static routing.