Alcatel-Lucent 9000 Switch User Manual


 
Configuring Redistribution Configuring BGP
page 4-58 OmniSwitch 6800/6850/9000 Advanced Routing Configuration Guide December 2007
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 BGP 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 all other routes (those not processed by sequence 10 or 20) and sets the tag for such
routes to eight.