Creating a policy-based routing table, Creating the route – D-Link DFL-2500 User Manual

Page 100

Advertising
background image

interfaces.

The first two options can be regarded as combining the alternate table with the main table and
assigning one route if there is a match in both tables.

Important - Ensuring all-nets appears in the main table.

A common mistake with Policy-based routing is the absence of the default route with a
destination interface of all-nets in the default main routing table. If there is no route
that is an exact match then the absence a default all-nets route will mean that the
connection will be dropped.

Example 4.3. Creating a Policy-Based Routing table

In this example we create a Policy-based Routing table named "TestPBRTable".

Web Interface

1.

Go to Routing > Routing Tables > Add > RoutingTable

2.

Now enter:

Name: TestPBRTable

For Ordering select one of:

First - the named routing table is consulted first of all. If this lookup fails, the lookup will continue in the
main routing table.

Default - the main routing table will be consulted first. If the only match is the default route (all-nets),
the named routing table will be consulted. If the lookup in the named routing table fails, the lookup as a
whole is considered to have failed.

Only - the named routing table is the only one consulted. If this lookup fails, the lookup will not
continue in the main routing table.

3.

If Remove Interface IP Routes is enabled, the default interface routes are removed, that is to say routes to
the core interface (which are routes to NetDefendOS itself).

4.

Click OK

Example 4.4. Creating the Route

After defining the routing table "TestPBRTable", we add routes into the table.

Web Interface

1.

Go to Routing > Routing Tables > TestPBRTable > Add > Route

2.

Now enter:

Interface: The interface to be routed

Network: The network to route

Gateway: The gateway to send routed packets to

Local IP Address: The IP address specified here will be automatically published on the corresponding
interface. This address will also be used as the sender address in ARP queries. If no address is specified,
the firewall's interface IP address will be used.

Metric: Specifies the metric for this route. (Mostly used in route fail-over scenarios)

3.

Click OK

4.3.5. The Ordering parameter

Chapter 4. Routing

100

Advertising