Setting up subnets and routing

Configuring gated on a router

The behavior of the gated routing daemon is configured using the file /etc/inet/gated.conf. To create this file, you will need the following information:

Examine the information provided for each protocol that you wish to support from the sample protocol configuration files provided with your TCP/IP software distribution. The four protocols and their related sample configuration files are:

Protocol Filename
EGP /etc/inet/gated.egp
BGP /etc/inet/gated.bgp
RIP /etc/inet/gated.rip
OSPF /etc/inet/gated.ospf

 -----------------------------------------------------------------------
| Protocol  |  Filename                                                |
|-----------|----------------------------------------------------------|
| EGP       |  /etc/inet/gated.egp                                     |
|-----------|----------------------------------------------------------|
| BGP       |  /etc/inet/gated.bgp                                     |
|-----------|----------------------------------------------------------|
| RIP       |  /etc/inet/gated.rip                                     |
|-----------|----------------------------------------------------------|
| OSPF      |  /etc/inet/gated.ospf                                    |
|-----------|----------------------------------------------------------|
Read the gated.conf(4tcp) manual page carefully while examining these files. Using the provided files as a model, copy the appropriate statements into the gated.conf file and tailor them to your site requirements. Note that comments in the configuration file begin with a number sign (#) and statements are terminated with a semicolon (;). Also, the options, interface, definition, protocol, route, and control statements must be specified in the order just listed.


NOTE: If the /etc/inet/gated.conf file does not exist, routed is started as the gateway daemon instead of gated the next time your host reboots.

When first enabling gated, you should execute it with the -n option to ensure that it does not modify the kernel routing table. To do this:

  1. Amend the entry that starts gated in /etc/inet/config to read:
    sort-key:/usr/sbin/in.gated::y:/etc/inet/gated.conf:-n:
    

  2. Shut down and reboot the system.
When you have finished testing the gateway and are satisfied that it is working correctly, you can run gated without the -n option. To do this:

  1. Amend the entry that starts gated in /etc/inet/config to read:
    sort-key:/usr/sbin/in.gated::y:/etc/inet/gated.conf::
    

  2. Shut down and reboot the system.
If you subsequently change the /etc/inet/gated.conf file, and gated is already running, enter the command gdc reconfig to have gated re-read the file without shutting down either the daemon or the system.
© 1999 The Santa Cruz Operation, Inc. All rights reserved.
UnixWare 7 Release 7.1.1 - 5 November 1999