Alcatel-Lucent 6850 Switch User Manual


 
Configuring OSPF Configuring OSPF
page 1-24 OmniSwitch 6800/6850/9000 Advanced Routing Configuration Guide December 2007
1 Create a route map, as described in “Using Route Maps” on page 1-24.
2 Configure redistribution to apply a route map, as described in “Configuring Route Map Redistribu-
tion” on page 1-28.
Note. An OSPF router automatically becomes an Autonomous System Border Router (ASBR) when redis-
tribution is configured on the router.
Using Route Maps
A route map specifies the criteria that are used to control redistribution of routes between protocols. Such
criteria is defined by configuring route map statements. There are three different types of statements:
Action. An action statement configures the route map name, sequence number, and whether or not
redistribution is permitted or denied based on route map criteria.
Match. A match statement specifies criteria that a route must match. When a match occurs, then the
action statement is applied to the route.
Set. A set statement is used to modify route information before the route is redistributed into the
receiving protocol. This statement is only applied if all the criteria of the route map is met and the
action permits redistribution.
The ip route-map command is used to configure route map statements and provides the following action,
match, and set parameters:
Refer to the “IP Commands” chapter in the OmniSwitch CLI Reference Guide for more information about
the ip route-map command parameters and usage guidelines.
Once a route map is created, it is then applied using the ip redist command. See “Configuring Route Map
Redistribution” on page 1-28 for more information.
Creating a Route Map
When a route map is created, it is given a name (up to 20 characters), a sequence number, and an action
(permit or deny). Specifying a sequence number is optional. If a value is not configured, then the number
50 is used by default.
To create a route map, use the ip route-map command with the action parameter. For example,
-> ip route-map ospf-to-bgp sequence-number 10 action permit
The above command creates the ospf-to-bgp route map, assigns a sequence number of 10 to the route
map, and specifies a permit action.
ip route-map action ... ip route-map match ... ip route-map set ...
permit
deny
ip-address
ip-nexthop
ipv6-address
ipv6-nexthop
tag
ipv4-interface
ipv6-interface
metric
route-type
metric
metric-type
tag
community
local-preference
level
ip-nexthop
ipv6-nexthop