Hi folks,
I am trying to advertise all static routes in bgp, but for some reason my inactive routes are not advertised
My config:
set protocols bgp group cogent type external
set protocols bgp group cogent local-preference 180
set protocols bgp group cogent advertise-inactive
set protocols bgp group cogent import pol-bb2isp-in
set protocols bgp group cogent import pol-reject-any
set protocols bgp group cogent family inet unicast
set protocols bgp group cogent export pol-bb2isp-out
set protocols bgp group cogent export pol-reject-any
set protocols bgp group cogent neighbor xxx.xxx.140.209 description Cogent
set protocols bgp group cogent neighbor xxx.xxx.140.209 peer-as 174
set policy-options policy-statement pol-bb2isp-out term match-static from protocol static
set policy-options policy-statement pol-bb2isp-out term match-static from route-filter xxx.xxx.203.0/24 exact
set policy-options policy-statement pol-bb2isp-out term match-static from route-filter xxx.xxx.232.0/22 exact
set policy-options policy-statement pol-bb2isp-out term match-static from route-filter xxx.xxx.72.0/23 exact
set policy-options policy-statement pol-bb2isp-out term match-static then accept
set routing-options static route xxx.xxx.203.0/24 reject
set routing-options static route xxx.xxx.203.0/24 install
set routing-options static route xxx.xxx.232.0/22 reject
set routing-options static route xxx.xxx.232.0/22 install
set routing-options static route xxx.xxx.72.0/23 reject
set routing-options static route xxx.xxx.72.0/23 install
# run show route protocol static
inet.0: 45 destinations, 49 routes (45 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
xxx.xxx.203.0/24 *[Static/5] 2w1d 13:36:40
Reject
xxx.xxx.232.0/22 *[Static/5] 2w1d 13:35:11
Reject
xxx.xxx.72.0/23 [Static/5] 2w1d 13:35:11
Reject
# run show route advertising-protocol bgp xxx.xxx.140.209
inet.0: 45 destinations, 49 routes (45 active, 0 holddown, 0 hidden)
Prefix Nexthop MED Lclpref AS path
* xxx.xxx.203.0/24 Self I
* xxx.xxx.232.0/22 Self I
The /23 that is not advertised is also directly connected
Thanks,
Dan