Eicon Networks S52 Podręcznik Użytkownika Strona 42

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
Przeglądanie stron 41
Using Eiconcard Routing Services
page 40
In this case, Sys-2 functions as a gateway to the 192.218.20 network.
Make sure each routing table entry you add to a host’s /etc/gateways file is correct before
adding another entry. You may want to test the route connection, as routed will not inform
you of any errors in /etc/gateways, such as an incorrectly specified IP address.
Note: If changes are made to the /etc/gateways file, the routed daemon must be restarted
with the -s option.
Displaying IP-routing Entries
You can use the netstat command to display information related to the IP routing tables. The
-i option displays information concerning the interfaces for entries in your system’s IP-routing
table, and the -r option presents the static and currently active routing entries.
You can also use the -n option to specify the use of dot notation. Addresses displayed by
netstat are then numeric values, rather than the symbolic names assigned by the /etc/hosts
file. (If an address does not have an assigned name in /etc/hosts, the netstat command
displays the numeric value.)
For example, the following commands show the entries you would see after adding the sample
entry to Sys-1’s /etc/gateways file, assuming the routed daemon had been reinitialized and
the route connection had been used to send and transmit data:
netstat -r -n
netstat -i
The interface name eic0 identifies the Eiconcard Routing Services interface used by Dialogic.
The interface name lo0 is the default IP interface that enables the host to send or transmit
data to itself.
Note: Refer to the Linux system administrator documentation for more information on IP
routing if necessary.
Testing Your Installation
If you have at least two Linux systems that have an Eiconcard and Eiconcard Routing Services
installed, consider setting up a simple test system as suggested here. This will help you over
some of the initial hurdles inherent in dealing with internetworks and routers. Only two Linux
systems are used in this test system. You may add additional systems to test more complex
configurations.
Routing tables
Destination Gateway Flags Refcnt Use Interface
127.0.0.1 127.0.0.1 UH 1 0 lo0
192.1.100 192.1.100.2 U 2 392 eic0
192.218.20 192.1.100.2 UG 2 392 eic0
Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Collis
lo0 2048 loopback localhost 24 0 24 0 0
eic0 1500 192.1.100 192.1.100.2 4 0 410 0 0
Przeglądanie stron 41
1 2 ... 37 38 39 40 41 42 43 44 45 46 47 ... 90 91

Komentarze do niniejszej Instrukcji

Brak uwag