1 exporting all interface & static routes to ospf, Mpls configuration – Riverstone Networks WICT1-12 User Manual

Page 231

Advertising
background image

Riverstone Networks RS Switch Router User Guide Release 8.0 14-15

OSPF Configuration Guide

OSPF Configuration Examples

14.11.1

Exporting All Interface & Static Routes to OSPF

Router R1 has several static routes. We will export these static routes as type-2 OSPF routes. The interface routes will
be redistributed as type-1 OSPF routes.

1.

Create a nOSPF export destination for type-1 routes to redistribute certain routes into OSPF as type
1 OSPF-ASE routes.

2.

Create an OSPF export destination for type-2 routes to redistribute certain routes into OSPF as type
2 OSPF-ASE routes.

3.

Create a Static export source to export static routes.

4.

Create a Direct export source to export interface/direct routes.

5.

Create the Export-Policy for redistributing all interface routes and static routes into OSPF.

14.11.2

Exporting All RIP, Interface & Static Routes to OSPF

We will also export interface, static, RIP, OSPF, and OSPF-ASE routes into RIP.

In the configuration shown in

Figure 14-1

, RIP Version 2 is configured on the interfaces of routers R1 and R2, which

are attached to the sub-network 120.190.0.0/16.

We will redistribute these RIP routes as OSPF type-2 routes and associate the tag 100 with them. Router R1 will also
redistribute its static routes as type 2 OSPF routes. The interface routes will be redistributed as type 1 OSPF routes.

Router R1 will redistribute its OSPF, OSPF-ASE, RIP, Static and Interface/Direct routes into RIP.

1.

Enable RIP on interface 120.190.1.1/16.

2.

Create an OSPF export destination for type-1 routes.

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

rip add interface 120.190.1.1

rip set interface 120.190.1.1 version 2 type multicast

ip-router policy create ospf-export-destination ospfExpDstType1 type

1 metric 1

Advertising