Displaying the routing table – D-Link DFL-2500 User Manual

Page 92

Advertising
background image

Persistent Routes:
None

The corresponding routing table in NetDefendOS is similar to this:

Flags Network

Iface

Gateway

Local IP

Metric

----- ------------------ -------- -------------- --------- ------

192.168.0.0/24

lan

20

10.0.0.0/8

wan

1

0.0.0.0/0

wan

192.168.0.1

20

The NetDefendOS way of describing the routes is easier to read and understand. Another advantage
with this form of notation is that you can specify a gateway for a particular route without having a
route that covers the gateways's IP address or despite the fact that the route covers the gateway's IP
address is normally routed via another interface.

It is also worth mentioning that NetDefendOS allows you to specify routes for destinations that are
not aligned with traditional subnet masks. In other words, it is perfectly legal to specify one route
for the destination address range 192.168.0.5-192.168.0.17 and another route for addresses
192.168.0.18-192.168.0.254. This is a feature that makes NetDefendOS highly suitable for routing
in highly complex network topologies.

Displaying the Routing Table

It is important to distinguish between the routing table that is active in the system, and the routing
table that you configure. The routing table that you configure contains only the routes that you have
added manually (in other words, the static routes). The content of the active routing table, however,
will vary depending on several factors. For instance, if dynamic routing has been enabled, the
routing table will be populated with routes learned by communicating with other routers in the
network. Also, features such as route fail-over will cause the active routing table to look different
from time to time.

Example 4.1. Displaying the Routing Table

This example illustrates how to display the contents of the configured routing table as well as the active routing
table.

CLI

To see the configured routing table:

gw-world:/> cc RoutingTable main

gw-world:/main> show

Route

#

Interface

Network

Gateway

Local IP

-

---------

--------

-------------

--------

1

wan

all-nets

213.124.165.1

(none)

2

lan

lannet

(none)

(none)

3

wan

wannet

(none)

(none)

To see the active routing table enter:

gw-world:/> routes

Flags Network

Iface

Gateway

Local IP

Metric

----- ------------------ -------------- --------------- --------------- ------

192.168.0.0/24

lan

0

4.2.2. Static Routing

Chapter 4. Routing

92

Advertising