D-Link DFL-260E User Manual for DFL-260E - Page 184
Policy-based Routing, Example 4.4. Creating a Routing Table, Example 4.5. Adding Routes
View all D-Link DFL-260E manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 184 highlights
4.3. Policy-based Routing Chapter 4. Routing NetDefendOS, as standard, has one default routing table called main. In addition to the main table, it is possible to define one or more, additional routing tables for policy-based routing. (these will sometimes be referred to as alternate rouitng tables). Alternate routing tables contain the same information for describing routes as main, except that there is an extra property defined for each of them which is called ordering. The ordering property decides how route lookup is done using alternate tables in conjunction with the main table. This is described further below. Example 4.4. Creating a Routing Table In this example, a new routing table called MyPBRTable is created with the Ordering property set to First. Command-Line Interface To see the configured routing table: gw-world:/> add RoutingTable MyPBRTable Ordering=Only Web Interface 1. Go to: Routing > Routing Tables > Add > RoutingTable 2. Now enter: • Name: MyPBRTable • 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 (in other words the all-nets route), 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.5. Adding Routes After defining the routing table MyPBRTable, routes can be added to the table. Assume that the route to a network my_network is to be defined for the lan interface. Command-Line Interface Change the context to the routing table: gw-world:/> cc RoutingTable MyPBRTable Add a route gw-world:/main> add Route Interface=lan Network=my_network Web Interface 184