16.1 The gated.conf Configuration File

     

16.1 The gated.conf Configuration File

The default configuration file for gated is /etc/gated.conf . This file exists by default. The default configuration uses one of the oldest routing protocols: RIP (version 1). There is a man page ( man gated.conf ) that describes the format and its numerous options. We start by setting up some basic behavioral characteristics relating to how gated will log routing information as well as how to treat interfaces that don't do very much :

 

 root@hpeos003[]  vi /etc/gated.conf  # #       This is an initial /etc/gated.conf file. #       Note that this file should be modified according #       to the routing topology. Refer to the sample #       configuration files in the "/usr/examples/gated" directory. #       See gated-config(4) for details. # @(#)B.11.11_LR #   traceoption "/var/adm/gated.trc" size 10M files 2 route;     interface { all passive ; };   root@hpeos003[] root@hpeos003[]  gdc checkconf  configuration file /etc/gated.conf checks out okay root@hpeos003[] 

The most common problem with the format of statements is forgetting the semicolon at the end of the line! The gdc checkconf command is very useful. If the file syntax is wrong in any way, errors are appended to the /var/tmp/gated_parse file.

The first line in our configuration file is used to specify a name and size for our log file. We have specified that we want to maintain two files as well as stipulating we want to particularly trace routing information. The second line is useful where we have interfaces that may be acting as standby networks. Although there is no IP configuration on the interface currently, there may be one in the not-so- distant future. If gated does not receive routing information for an active interface, it can change its preference or even remove it from the routing table entirely. The passive option prevents this.

I won't activate this configuration yet because we haven't specified a particular routing protocol to use.



HP-UX CSE(c) Official Study Guide and Desk Reference
HP-UX CSE(c) Official Study Guide and Desk Reference
ISBN: N/A
EAN: N/A
Year: 2006
Pages: 434

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net