
IP Configuration
Configuring IP
page 15-22
OmniSwitch AOS Release 7 Network Configuration Guide
June 2013
To remove a route map redistribution configuration, use the
no
form of the
ip redist
command. For
example:
-> no ip redist ospf into bgp route-map ospf-to-bgp
Use the
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
RIP 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:
-> ip redist ospf into bgp route-map ospf-to-bgp status enable
Route Map Redistribution Example
The following example configures the redistribution of OSPF routes into a BGP network using a route
map (ospf-to-bgp) to filter specific routes:
-> ip route-map ospf-to-bgp sequence-number 10 action deny
-> ip route-map ospf-to-bgp sequence-number 10 match tag 5
-> ip route-map ospf-to-bgp sequence-number 10 match route-type external type2
-> ip route-map ospf-to-bgp sequence-number 20 action permit
-> ip route-map ospf-to-bgp sequence-number 20 match ipv4-interface intf_ospf
-> ip route-map ospf-to-bgp sequence-number 20 set metric 255
-> ip route-map ospf-to-bgp sequence-number 30 action permit
-> ip route-map ospf-to-bgp sequence-number 30 set tag 8
-> ip redist ospf into bgp route-map ospf-to-bgp
The resulting ospf-to-bgp route map redistribution configuration does the following
•
Denies the redistribution of Type 2 external OSPF routes with a tag set to five.
•
Redistributes into BGP all routes learned on the intf_ospf interface and sets the metric for such routes
to 255.
•
Redistributes into BGP all other routes that are not processed by sequence 10 or 20, and sets the tag for
such routes to eight.