System Administration Guide, Volume 3

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 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:


    192.9.200.20     timbuktu       #interface for network 192.9.200
    192.9.201.20     timbuktu-201   #interface for network 192.9.201
    192.9.200.9      gobi
    192.9.200.10     mojave
    192.9.200.110    saltlake
    192.9.200.12     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. That is 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 (129.9.0.0, for example) and associated netmask number (255.255.255.0, for example).

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