Hello,
I configured 2 bgp sessions to receive only 0.0.0.0 from upstreams, so the traffic goes only via 1 upstream (probably the older session). It looks like this:
admin@SRX1# run show route 0.0.0.0
inet.0: 165304 destinations, 165307 routes (19 active, 0 holddown, 165285 hidden)
Restart Complete
+ = Active Route, - = Last Active, * = Both
0.0.0.0/0 *[BGP/170] 01:40:02, localpref 100
AS path: 1234 I, validation-state: unverified
> to 1.1.1.1 via ge-5/0/15.0
[BGP/170] 00:00:30, localpref 100
AS path: 6789 ?, validation-state: unverified
> to 2.2.2.2 via ge-0/0/12.0
My current bgp configuration:
admin@SRX1# show protocols bgp
group bgp-isp {
type external;
import import-default-route;
export send-my-prefix;
neighbor 1.1.1.1 {
description isp1-bgp;
peer-as 1234;
}
neighbor 2.2.2.2 {
description isp2-bgp;
peer-as 6789;
}
}
I tried to add local-pref in neighbor configuration, but without success. I also tried to apply local-pref to import policy, but without success. Always in "show route" I see that local pref didn't change.
What would be the proper way to to this?