OS10 Enterprise Edition User Guide Release 10.4.0E(R3)

PDF

Route-map filters

Filtering routes allows you to implement BGP policies. Use route-maps to control which routes the BGP neighbor or peer group accepts and advertises.

  1. Enter the neighbor IP address to filter routes in ROUTER-BGP mode.
    neighbor 
                                           ipv4-address
                                        
  2. Enter Address Family mode in ROUTER-NEIGHBOR mode.
    address-family {[ipv4 | ipv6] [unicast]}
  3. Create a route-map and assign a filtering criteria in ROUTER-BGP-NEIGHBOR-AF mode, then return to CONFIG-ROUTER-BGP mode.
    route-map 
                                           map-name {in | out}
                                           exit
                                        
    • in—Enter a filter for incoming routing updates.
    • out—Enter a filter for outgoing routing updates.
  4. Enter a peer template name in ROUTER-BGP mode.
    template 
                                           template-name
                                        
  5. Enter Address Family mode.
    address-family {[ipv4 | ipv6] [unicast]}
  6. Create a route-map, and assign a filtering criteria in ROUTER-BGP-TEMPLATE-AF mode.
    route-map 
                                           map-name {in | out}
                                        

Filter BGP route

OS10(config)# router bgp 102
                                 OS10(conf-router-bgp-102)# neighbor 40.1.1.2
                                 OS10(conf-router-neighbor)# address-family ipv4 unicast 
                                 OS10(conf-router-bgp-neighbor-af)# route-map metro in
                                 OS10(conf-router-bgp-neighbor-af)# exit
                                 OS10(conf-router-bgp-102)# template ebgp
                                 OS10(conf-router-template)# address-family ipv4 unicast 
                                 OS10(conf-router-bgp-template-af)# route-map metro in
                              

Rate this content

Accurate
Useful
Easy to understand
Was this article helpful?
0/3000 characters
  Please provide ratings (1-5 stars).
  Please provide ratings (1-5 stars).
  Please provide ratings (1-5 stars).
  Please select whether the article was helpful or not.
  Comments cannot contain these special characters: <>()\