User Manual

Enterasys X-Pedition User Reference Manual 191
OSPF Configuration Examples
Exporting all Interfaces and Static Routes to OSPF
Router R1 has several static routes. We would export these static routes as type-2 OSPF routes. The
interface routes would be redistributed as type-1 OSPF routes. You may accomplish this using
either of the following examples.
Example 1
1. Create a OSPF export destination for type-1 routes since we would like to redistribute certain
routes into OSPF as type 1 OSPF-ASE routes.
2. Create a OSPF export destination for type-2 routes since we would like to redistribute certain
routes into OSPF as type 2 OSPF-ASE routes.
3. Create a Static export source since we would like to export static routes.
4. Create a Direct export source since we would like to export interface/direct routes.
5. Create the Export-Policy for redistributing all interface routes and static routes into OSPF.
Example 2
Rather than create two multiple exports and another command to use them (as in the previous
example), the following commands will produce the same result:
ospf add interface 140.1.2.1 to-area 140.1.0.0
ospf add interface 140.1.3.1 to-area 140.1.0.0
ospf add interface 130.1.1.1 to-area backbone
ip-router policy create ospf-export-destination ospfExpDstType1 type 1 metric 1
ip-router policy create ospf-export-destination ospfExpDstType2 type 2 metric 4
ip-router policy create static-export-source statExpSrc
ip-router policy create direct-export-source directExpSrc
ip-router policy export destination ospfExpDstType1 source directExpSrc network all
ip-router policy export destination ospfExpDstType2 source statExpSrc network all
ip-router policy redistribute from-proto direct to-proto ospf ase-type 1 metric 1 network all
ip-router policy redistribute from-proto static to-proto ospf ase-type 2 metric 4 network all