BGP route manipulation
route manip config authority routing filter exportNETWORK type prefix-filter name exportNETWORK rule expMRS-HUB name expMRS-HUB filter accept prefix 172.20.13.0/24 exit rule expMRS-SPOKE name expMRS-SPOKE prefix 172.21.13.0/24 exit exit policy expPOLICY name expPOLICY statement extSTAT name extSTAT condition address-prefix-filter-condition type address-prefix-filter-condition prefix-filter exportNETWORK exit action modify-metric type modify-metric set 87 exit action modify-as-path type modify-as-path prepend "65101 65101 65101" exit exit exit exit exit exit | |
vtysh in the local router | |
FRR route-map expPOLICY permit 1 match ip address prefix-list exportNETWORK set as-path prepend 65101 65101 65101 set extcommunity rt 65101:100 set metric 13 | |