
Configuring OSPF
Configuring OSPF
page 1-26
OmniSwitch AOS Release 7 Advanced Routing Configuration Guide
March 2011
-> ip access-list ipaddr address 16.24.2.1/16 action deny redist-control all-
subnets
-> ipv6 access-list ip6addr address 2001::1/64 action permit redist-control no-
subnets
For more information about configuring access list commands, see the “IP Commands” chapter in the
OmniSwitch CLI Reference Guide
.
Configuring Route Map Redistribution
The
ip redist
command is used to configure the redistribution of routes from a source protocol into the
destination protocol. This command is used on the router that will perform the redistribution.
Note.
An OSPF router automatically becomes an Autonomous System Border Router (ASBR) when redis-
tribution is configured on the router.
A source protocol is a protocol from which the routes are learned. A destination protocol is the one into
which the routes are redistributed. Make sure that both protocols are loaded and enabled before configur-
ing redistribution.
Redistribution applies criteria specified in a route map to routes received from the source protocol. There-
fore, configuring redistribution requires an existing route map. For example, the following command
configures the redistribution of OSPF routes into the BGP network using the ospf-to-bgp route map:
-> ip redist ospf into bgp route-map ospf-to-bgp
OSPF routes received by the router interface are processed based on the contents of the ospf-to-bgp route
map. Routes that match criteria specified in this route map are either allowed or denied redistribution into
the BGP network. The route map may also specify the modification of route information before the route
is redistributed. See
“Using Route Maps” on page 1-22
for more information.
To remove a route map redistribution configuration, use the
no
form of the
ip redist
command. For exam-
ple:
-> no ip ospf into bgp route-map ospf-to-bgp
Use the
show ip redist
command to verify the redistribution configuration:
-> show ip redist
Source Destination
Protocol Protocol Status Route Map
------------+------------+---------+--------------------
LOCAL4 RIP Enabled rip_1
LOCAL4 OSPF Enabled ospf_2
LOCAL4 BGP Enabled bgp_3
BGP
OSPF Enabled ospf-to-bgp
Configuring the Administrative Status of the Route Map Redistribution
The administrative status of a route map redistribution configuration is enabled by default. To change the
administrative status, use the
status
parameter with the
ip redist
command. For example, the following
command disables the redistribution administrative status for the specified route map:
-> ip redist ospf into bgp route-map ospf-to-bgp status disable
The following command example enables the administrative status: