
Eicon Connections for Linux User’s Guide
page 39
When you use the route command, entries are added directly to a host’s IP-routing table,
but will be lost when the system shuts down. If you are setting up a complex network, it is
recommended that you use the TCP/IP routing daemon, which is initialized with the entries
stored in the host’s /etc/gateways file. The routed daemon manages both static and dynamic
routes, updating all hosts and gateways in the network automatically.
Note: Although using TCP/IP routing is necessary in the case of LAN-to-LAN connections, it is
not required when data is being transmitted only between Eiconcard Routing Services
workstations.
Each Linux host on a broadcast network sends out its accessible routes (using a routing
protocol, such as RIP) and keeps track of what other hosts it can access. Each host has an
IP-routing table, and the routed daemon handles all exchanges of routing information.
Adding Routing Table Entries to the /etc/gateways File
The routed daemon references the /etc/gateways file to identify a system’s routes. Route
entries listed in this file are installed in the system’s IP-routing table in the kernel at startup.
The syntax for Eiconcard entries in /etc/gateways is as follows:
For example, if Sys-2 (IP address 192.1.100.2) is connected to a network (IP address
192.218.20.0), the /etc/gateways file for Sys-1 could include the following entry to identify
a connection to that LAN:
net 192.218.20.0 gateway 192.1.100.2 metric 1 active
Syntax [net|host] addr1 gateway addr2 metric n [passive|active]
Parameters Description
[net|host]addr1 If the IP route destination is a network, use net as the first
parameter, followed by the network’s address, addr1. If the
IP route is for a connection to a stand-alone host, use host
addr1. The network address must always be specified in full;
/etc/gateways does not accept abbreviated addresses. For
example, the 192.1.100 network address must be specified
as 192.1.100.0.
gateway addr2 Specifies the address of the first hop leading to the destination
network.
metric n Identifies the total number of gateways through which data
must pass to reach the final destination.
[passive|active] If you want routed to include the destination network or host
in its information broadcasts for the routing tables, specify
active. TCP/IP’s Routing Information Protocol (RIP) dictates
that hosts exchange information every 30 seconds and have
a 3-minute cache. This means that if a host has not heard
from another host for 3 minutes, it marks that host’s routing
table entry for deletion. After another 60 seconds, the table
entry is deleted.
With X.25-switched subnetworks, this information exchange
can be costly in terms of tariffs and the amount of bandwidth
used. If you want to include a circuit’s route in the Linux
systems but do not want its entry being constantly updated
or marked for deletion, specify passive. A connection can then
be made using the route, even though hosts in the system
are not notified of any changes in connection hosts’ status
(for example, if either the local host or the connection’s
destination host goes down).
Kommentare zu diesen Handbüchern