Definition statements are general configuration statements that relate to all of GateD or at least to more than one protocol. The three definition statements are autonomoussystem, routeridand martians. If used, autonomoussystem, routerid and martians must appear before any other type of configuration statement in gated.conf file.
autonomoussystem autonomous_system [ loops number ] ;
Sets the autonomous system number of this router to be autonomous system. This option is required if BGP or EGP is in use. The AS number is assigned by the Network Information Center (NIC).
Loops is only for protocols supporting AS paths, such as BGP. It controls the number of times this autonomous system may appear in an AS path and defaults to 1 (one).
routerid host ;
Sets the router identifier for use by the BGP and OSPF protocols. The default is the address of the first interface encountered by GateD. The address of a non-point-to-point interface is preferred over the local address of a point-to-point interface and an address on a loopback interface that is not the loopback address (127.0.0.1) is most preferred.
martians { host host [ allow ] ; network [ allow ] ; network mask mask [ allow ] ; network masklen number [ allow ] ; default [ allow ] ; } ;
Defines a list of martian addresses about which all routing information is ignored. Sometimes a misconfigured system sends out obviously invalid destination addresses. These invalid addresses, called martians, are rejected by the routing software. This command allows additions to the list of martian addresses. See the section on Route Filtering for more information on specifying ranges. Also, the allow parameter may be specified to explicitly allow a subset of a range that was disallowed.
options gendefault ; autonomoussystem 249 ; interface 128.66.12.2 passive ; martians { 0.0.0.26 };
The statements in the sample perform the following functions:
Last updated April 26, 1997
gated@gated.merit.edu