System Administration Guide: IP Services

Creating a Multihomed Host

By default, TCP/IP considers any machine with multiple network interfaces to be a router. However, you can change a router into a multihomed host—a machine with more than one network interface that does not run routing protocols or forward IP packets. You typically configure the following types of machines as multihomed hosts:

Because TCP/IP considers any machine with multiple network interfaces to be a router, you need to perform a few operations to turn the machine into a multihomed host.

How to Create a Multihomed Host

  1. Become superuser on the prospective multihomed host.

  2. Create an /etc/hostname.interface file for each additional network interface that is installed in the machine.

  3. Type the following:

    % touch /etc/notrouter

    This command creates an empty file that is called /etc/notrouter.

  4. Reboot the machine.

When the machine reboots, the startup script checks for the presence of the /etc/notrouter file. If the file exists, the startup script does not run in.routed -s or in.rdisc -r. The file also does not turn on IP forwarding on all interfaces that are configured “up” by ifconfig. This process happens regardless of whether an /etc/gateways file exists. Thus the machine is now a multihomed host.