BGPの複数経路と経路ポリシー20 / 25
隣接ASと一段先のASを許す式
IOSのAS-Pathの^は先頭、$は末尾、はASの区切りを表す。^65516$はAS Pathが65516だけの経路を許す。^65516[0-9]*$は、65516自身と、65516の直後に数字のASが一つ続く形式へ対応する。AS番号を繰り返すPrependや、さらに先のASが続くPathとは範囲が異なる。
.*は広いPathへ一致し、_65516_はPathの途中でも65516があれば一致する。全体のAS Pathを固定する式と、どこかにAS番号を含む式を区別する。空のPathへ一致する^$は、eBGP相手がAS番号を付けて広告する経路と同じではない。
参考資料
- Cisco IOS — Route Map Processing ↗
- Cisco — BGP maximum-paths examples ↗
- Cisco — BGP with Two Service Providers ↗
- Cisco — BGP Local Preference and Weight ↗
- Cisco IOS XE — ip prefix-list ↗
- RFC 4271 — BGP Finite State Machine ↗
- Cisco IOS — BGP network Command ↗
- Cisco — OSPF Route Types Redistributed into BGP ↗
- Cisco — BGP Maximum-Prefix Exceeded and Warning-Only ↗
- RFC 4456 — Route Reflector Client Advertisement ↗
- Cisco FTD FDM 7.0 — Route Maps and BGP Attributes ↗
- Cisco — BGP Paths Excluded from Best-Path Selection ↗
- Cisco IOS — AS-Path Regular Expressions and Directly Attached AS Filters ↗
- Cisco IOS XR — Enable BGP Routing and eBGP Route Policies ↗