conf t ip as-path access-list 1 permit ^$ ip as-path access-list 9 deny ^.*$ route-map setmetric1 permit 10 set metric 1 route-map setmetric10 permit 10 set metric 10 route-map setmetric100 permit 10 set metric 100 autonomous-system NNNN ip route YourBlock YourMask null0 router bgp NNNN no synchronization bgp always-compare-med network YourBlock mask YourMask neighbor X.X.X.X remote-as 6939 neighbor X.X.X.X next-hop-self neighbor X.X.X.X filter-list 1 out end writeA couple of comments about the minimal BGP config
The ip route statement is a pull up route to make sure your main block is announced.
The bgp allways compare med and the setmetric1,10,100 are meant to enable you to steer traffic by applying route map statements to your peering sessions. This allows you to allways prefer the shortest route and then set a preference which determines how same length routes are preferred among your peers/transit providers. For example, we prefer peer routes before transit routes so we set peer routes to a low med.
Hurricane Electric
760 Mission Court
Fremont, CA 94539
Copyright © Hurricane Electric.
Privacy Policy
Voice +1 510-580-4100
Fax +1 510-580-4151
Comments? info@he.net