Importing Routes From An Ospf As Into The Main Routing Table; Exporting The Default Route Into An Ospf As - D-Link NetDefend DFL-210 User Manual

Network security firewall ver 2.26.01
Hide thumbs Also See for NetDefend DFL-210:
Table of Contents

Advertisement

4.5.3. Dynamic Routing Policy
Example 4.7. Importing Routes from an OSPF AS into the Main Routing Table
In this example, the routes received using OSPF will be added into the main routing table. First of all a Dynamic
Routing Policy filter needs to be created. The filter needs to have a name, in this example ImportOSPFRoutes is
used, as it explains what the filter does.
The filter must also specify from what OSPF AS the routes should be imported. In this example, a pre-configured
OSPF AS named as0 is used.
Depending on how your routing topology looks like you might want to just import certain routes using the
Destination Interface/Destination Network filters, but in this scenario all routes that are within the all-nets network
(which is the same as specifying the IP address 0.0.0.0/0) are allowed.
Command-Line Interface
gw-world:/> add DynamicRoutingRule OSPFProcess=as0
Web Interface
1.
Go to Routing > Dynamic Routing Rules > Add > Dynamic routing policy rule
2.
Specify a suitable name for the filter. For example, ImportOSPFRoutes.
3.
In the Select OSPF Process, select as0
4.
Choose all-nets in the Exactly Matches dropdown control
5.
Click OK
The next step is to create a Dynamic Routing Action that will do the actual importing of the routes into a routing
table. Specify the destination routing table that the routes should be added to, in this case main.
Command-Line Interface
gw-world:/> cc DynamicRoutingRule ImportOSPFRoutes
gw-world:/ImportOSPFRoutes> add DynamicRoutingRuleAddRoute
Web Interface
1.
Go to Routing > Dynamic Routing Rules
2.
Click on the recently created ImportOSPFRoutes
3.
Go to OSPF Routing Action > Add > DynamicRountingRuleAddRoute
4.
In Destination, add the main routing table to the Selected list
5.
Click OK
Example 4.8. Exporting the Default Route into an OSPF AS
In this example, the default route from the main routing table will be exported into an OSPF AS named as0. First,
add a dynamic routing policy filter that matches the main routing table and the default route:
Command-Line Interface
gw-world:/> add DynamicRoutingRule OSPFProcess=as0
Name=ImportOSPFRoutes
DestinationNetworkExactly=all-nets
Destination=MainRoutingTable
name=ExportDefRoute
RoutingTable=MainRoutingTable
163
Chapter 4. Routing

Advertisement

Table of Contents
loading

Table of Contents