This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
edgerouter:bgp [2018/05/15 18:29] – created brielle | edgerouter:bgp [2018/05/15 18:43] – brielle | ||
---|---|---|---|
Line 29: | Line 29: | ||
rule 10 { | rule 10 { | ||
action permit | action permit | ||
- | le 64 | + | le 48 |
prefix 2001: | prefix 2001: | ||
} | } | ||
Line 35: | Line 35: | ||
} | } | ||
</ | </ | ||
+ | |||
+ | The -From prefix lists are for routes you receive (imported) from your ISP, while the -To lists are for routes being exported (announced) to your provider. | ||
+ | |||
+ | ' | ||
+ | |||
+ | In the above examples, 192.0.2.0/ | ||
+ | |||
+ | ===== The Route Maps ===== | ||
+ | While you can just use prefix lists with BGP to control routes imported and exported, route maps give you much more flexibility and control, and can even include AS path matching. | ||
+ | < | ||
+ | route-map BGP-ISPv6-From { | ||
+ | rule 10 { | ||
+ | action permit | ||
+ | match { | ||
+ | ipv6 { | ||
+ | address { | ||
+ | prefix-list BGP-ISPv6-From | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | route-map BGP-ISPv6-To { | ||
+ | rule 10 { | ||
+ | action permit | ||
+ | match { | ||
+ | ipv6 { | ||
+ | address { | ||
+ | prefix-list BGP-ISPv6-To | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | route-map BGP-ISP-From { | ||
+ | rule 10 { | ||
+ | action permit | ||
+ | match { | ||
+ | ip { | ||
+ | address { | ||
+ | prefix-list BGP-ISP-From | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | route-map BGP-ISP-To { | ||
+ | rule 10 { | ||
+ | action permit | ||
+ | match { | ||
+ | ip { | ||
+ | address { | ||
+ | prefix-list BGP-ISP-To | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | |||
+ | Like the prefix lists, -To and -From are your specific directions in and out (import and export). |