Alcatel Carrier Internetworking Solutions 060187-10 REV D manual Creating a Redistribution Policy

Page 37

Configuring OSPF

Configuring OSPF

 

 

 

 

Creating A Redistribution Policy

Once a router is set as an ASBR and redistribution is enabled, a redistribution policy can be created. This is done using the ip ospf redist command. When setting up a redistribution policy, choose the type of route or protocol that will be redistributed as an OSPF route in the OSPF network. For example, to redis- tribute RIP routes, enter the following:

-> ip ospf redist rip

To redistribute static routes, enter the following:

-> ip ospf redist static

A cost metric can be added to the redistributed route, either as a set number or by specifying a route type (route types have preassigned metrics and other rule that control how they are redistributed). For example, to add a cost metric of 50 to RIP routes, enter the following:

-> ip ospf redist rip metric 50

To set RIP route redistribution as type 1 routes, enter the following:

-> ip ospf redist rip metric-type type1

For more information on route types, see the ip ospf redist command in the OmniSwitch CLI Reference Guide.

To display the redistribution policies on a router, enter the show ip ospf redist command at the CLI prompt.

To delete a redistribution policy, enter the ip ospf redist command with the route or protocol type, and the no keyword, as shown:

-> no ip ospf redist rip

Creating a Redistribution Filter

Redistribution filters are used by routers to control which routes are advertised to the rest of the network. Filters can be created on any OSPF router that has redistribution enabled.

Filters are created using the ip ospf redist-filtercommand.When using a filter, a route or protocol type must be specified, along with the IP address and mask. Only routes matching the specified criteria will be advertised. For example, to create a filter for RIP routes 1.1.0.0 with a mask of 255.255.0.0, enter the following:

-> ip ospf redist-filter rip 1.1.0.0 255.255.0.0

Filters can also be used to prevent routes from being advertised by using the effect keyword. Using the above example, to prevent RIP routes learned from 1.1.0.0 being advertised, enter the following:

-> ip ospf redist-filter rip 1.1.0.0 255.255.0.0 effect deny

This filter would stop the advertisement of RIP routes learned within the range 1.1.0.0 with a mask of 255.255.0.0. All other routes would be advertised normally.

Note. By default, filters are set to permit. If permit is the filter action desired, it is not necessary to use the effect keyword.

OmniSwitch 6600 Family Advanced Routing Configuration Guide March 2005

page 1-27

Image 37
Contents OmniSwitch 6600 Family Advanced Routing Configuration Guide Page Contents Alcatel INTERNETWORKING, INC. AII Unsupported Platforms Supported PlatformsWhat is in this Manual? When Should I Read this Manual?What is Not in this Manual? Who Should Read this Manual?How is the Information Organized? Stage 1 Using the Switch for the First TimeDocumentation Roadmap Stage 3 Integrating the Switch Into a Network Stage 2 Gaining Familiarity with Basic Switch FunctionsAnytime Related Documentation OmniSwitch 6600 Family Getting Started GuideTechnical Support This Chapter Configuring OspfOspf Specifications Parameter Description Command Default Value/Comments Ospf Defaults TableOspf Quick Steps Router ID Admin Status = Enabled Admin Status = Enabled Operational Status = UpShow ip ospf area Area Identifier Area Type = normalOspf Hello Protocol Ospf OverviewOspf Intra-Area and Inter-Area Routing Ospf AreasClassification of Routers Ospf Routers Connected with a Virtual Link Virtual LinksOspf Stub Area Stub AreasTotally Stubby Area Example Not-So-Stubby-AreasEqual Cost Multi-Path Ecmp Routing Graceful Restart on Stacks with Redundant SwitchesNon Broadcast Ospf Routing Multiple Equal Cost PathsOspf Graceful Restart Helping and Restarting Router Example Configuring Ospf Preparing the Network for Ospf Loading the Software Activating OspfEnabling Ospf Removing Ospf from MemoryCreating an Area Creating an Ospf AreaEnabling an Area Specifying an Area TypeDisplaying Area Status Enabling and Disabling SummarizationDeleting an Area Setting Area Ranges Configuring Stub Area Default MetricsConfiguring a Totally Stubby Area No ip ospf area 1.1.1.1 default-metricEnter the following commands on Router B Creating an Interface Creating Ospf InterfacesAssigning an Interface to an Area Activating an InterfaceSimple Authentication Interface AuthenticationMD5 Encryption Ip ospf interface 120.5.80.1 dead-interval 50 cost Modifying Interface ParametersIp ospf interface 120.5.80.1 hello-interval Ip ospf interface 120.5.80.1 dead-intervalCreating a Virtual Link Creating Virtual LinksModifying Virtual Link Parameters Specifying an Autonomous System Boundary Router Creating Redistribution Policies and FiltersEnabling Redistribution Creating a Redistribution Filter Creating a Redistribution PolicyShow ip ospf redist-filter rip Show ip ospf redist-filterShow ip ospf redist-filter rip 1.1.0.0 No ip ospf redist-filter rip 1.1.0.0Configuring Router Capabilities Ip ospf interface 1.1.1.1 type non-broadcast Configuring Static NeighborsIp ospf neighbor 1.1.1.8 eligible No ip ospf restart-support Ip ospf restart-support planned-onlyThree Area Ospf Network Ospf Application ExamplePrepare the Routers Ospf Application ExampleConfiguring Ospf Router Enable OspfOspf Application Example Examine the Network Verifying Ospf Configuration Alcatel License Agreement Software License and Copyright StatementsAlcatel License Agreement Software License and Copyright Statements Third Party Licenses and Notices Booting and Debugging Non-Proprietary SoftwareOpenLDAP Public License Version 2.4, 8 December GNU General Public License Version 2, June LinuxPreamble Third Party Licenses and Notices Software License and Copyright Statements Third Party Licenses and Notices Appendix How to Apply These Terms to Your New Programs Carnegie-Mellon University University of CaliforniaRandom.c Agranat Apptitude, IncRSA Security Inc Sun Microsystems, IncNetwork Time Protocol Version Wind River Systems, IncIndex Index