Multihomed Hosts


 

Overview

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:

  1. Web and Application servers

  2. NFS servers, particularly large data centers, can be attached to more than one network in order to share files among a large pool of users. These servers don't need to maintain routing tables.

  3. Database servers can have multiple network interfaces for the same reason as NFS servers-to provide resources to a large pool of users.

  4. Firewall gateways are machines that provide the connection between a company's network and public networks such as the Internet. Administrators set up firewalls as a security measure. When configured as a firewall, the host will not pass packets between the networks attached to it. On the other hand, it can still provide standard TCP/IP services, such as ftp or rlogin, to authorized users.

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

 

How to Create a Multihomed Host

  1. Login as user "root"

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

  3. Create a notrouter file:

    % touch /etc/notrouter

  4. Reboot the machine.

When the machine reboots, the startup script looks 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, and does not turn on IP forwarding on all interfaces configured "up" by ifconfig. This happens regardless of whether an /etc/gateways file exists. Thus the machine is now a multihomed host.


 

Home