User Manual

Enterasys X-Pedition User Reference Manual 245
Configuring Simple Routing Policies
Configuring Simple Routing Policies
Simple routing policies provide an efficient way for routing information to be exchanged between
routing protocols. The redistribute command can be used to redistribute routes from one routing
domain into another routing domain. Redistribution of routes between routing domains is based on
route policies. A route policy is a set of conditions based on which routes are redistributed. While
the redistribute command may fulfill the export policy requirement for most users, complex
export policies may require the use of the commands listed under Export Policies.
The general syntax of the redistribute command is as follows:
ip-router policy redistribute from-proto <protocol> to-proto <protocol> [network <ipAddr-
mask> [exact|refines|between <low-high>]] [metric <number>|restrict] [source-as <number>]
[target-as <number>]
The from-proto parameter specifies the protocol of the source routes. The values for the from-
proto parameter can be rip, ospf, bgp, direct, static, aggregate and ospf-ase. The to-proto
parameter specifies the destination protocol where the routes are to be exported. The values for the
to-proto parameter can be rip, ospf and bgp. The network parameter provides a means to define a
filter for the routes to be distributed. The network parameter defines a filter that is made up of an IP
address and a mask. Routes that match the filter are considered as eligible for redistribution.
Every protocol (RIP, OSPF, and BGP) has a configurable parameter that specifies the default-
metric associated with routes exported to that protocol. If a metric is not explicitly specified with
the redistribute command, then it is inherited from the default-metric associated with the protocol
to which the routes are being exported.
Redistributing Static Routes
Static routes may be redistributed to another routing protocol such as RIP or OSPF by the following
command. The network parameter specifies the set of static routes that will be redistributed by this
command. If all static routes are to be redistributed set the network parameter to all. Note that the
network parameter is a filter that is used to specify routes that are to be redistributed.
To redistribute static routes, enter one of the following commands in Configure mode:
Redistributing Directly Attached Networks
Routes to directly attached networks are redistributed to another routing protocol such as RIP or
OSPF by the following command. The network parameter specifies a set of routes that will be
To redistribute static routes
into RIP.
ip-router policy redistribute from-proto static to-proto rip
network all
To redistribute static routes
into OSPF.
ip-router policy redistribute from-proto static to-proto ospf
network all