|
|
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 autonomous_system ;which 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).
The syntax for the routerid definition statement is:
routerid host ;which 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.
The syntax for the martians definition statement is:
martians {
host host [ allow ] ;
network [ allow ] ;
network mask mask [ allow ] ;
network masklen number [ allow ] ;
} ;
This definition statement 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
``gated 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.
Following are some sample definition statements:
autonomoussystem 249 ;
martians {
0.0.0.26
};
The statements in the sample perform the following functions: