Allied Telesis X8100 Network Router User Manual


 
Use Route Maps and Other Filters to Filter and Alter BGP and OSPF Routes | Page 49
BGP: Route Map Filtering Example
set local-preference 9000
route-map outdef permit 3
match ip address prefix-list plist4
set as-path prepend 64751 1827
set community no-export additive
set local-preference 9000
route-map outdef permit 4
router bgp 3816
neighbor 172.26.1.1 route-map outdef out
Finally, we want to import the host-specific prefix 192.168.200.200/32 into BGP, and set a
community value on that entry.
route-map netspec permit 1
set community 8888:8888 9999:9999
router bgp 3816
network 192.168.200.200/32 route-map netspec