Technical data

Gateway Routing Daemon (GATED) Configuration Reference
A.10 Interface Statements
A.10.1 Interface Lists
An interface list is a list of references to interfaces or groups of interfaces. The
following four methods, from most general to most specific, are available for
referring to interfaces:
ALL Refers to all available interfaces.
Interface name wildcard Refers to all the interfaces of the same type. Interfaces consist
of the device driver name and a unit number, for example, LE0.
References to the name contain only alphabetic characters and
match any interfaces that have the same alphabetic part.
Interface name Refers to a specific interface, usually one physical interface.
These are specified as an alphabetic part followed by a numeric
part. This will match one specific interface. But be aware
that on many systems, there can be more than one protocol
(for example, IP) address on a given physical interface. For
example, EF1 matches an interface named EF1, but not an
interface named EF10.
Interface address Matches one specific interface. The reference can be by protocol
address (for example, 10.0.0.51) or by symbolic host name (for
example,
nic.ddn.mil
). Note that a symbolic host name
reference is only valid when it resolves to only one address.
Use of symbolic host names is not recommended.
If many interface lists are present in the TCPIP$GATED.CONF file with more
than one parameter, these parameters are collected at run time to create the
specific parameter list for a given interface. If the same parameter is specified on
more than one list, the parameters with the most specific interface are used.
For example, the following interface list is for a system with three interfaces,
LE0, LE1, and DU0:
rip yes {
interface all noripin noripout ;
interface le ripin ;
interface le1 ripout ;
};
In this example, RIP packets are accepted from interfaces LE0 and LE1, but nor
from DU0. RIP packets are sent only on interface LE1.
A.10.1.1 Example of Current Define Statements for GATED
interfaces {
define 192.168.12.5 broadcast 192.168.12.255 netmask 255.255.255.0 ;
define 192.168.13.129 netmask 255.255.255.252 broadcast 192.168.13.131;
# pointtopoint - is local side, 1st address is remote
define 192.168.13.116 pointtopoint 192.168.13.114 multicast;
};
The first define statement has an Ethernet where you need to define the
broadcast address as a /24.
The second define statement shows how a /30 may be implemented in the
define statement. The define tells GATED to treat the interface with a local
address of 192.168.13.129, a netmask of 255.255.255.252, and a broadcast
address of 192.168.13.131.
The third define statement shows how a point-to-point interface is defined.
The remote side of the point-to-point interface is specified first, and the local
side (the one on this machine) is specified second.
Gateway Routing Daemon (GATED) Configuration Reference A–13