Hi! We have to edge routers one is Cisco and other is Juniper M7i. Both have BGP running with our ISP. Currently incoming traffic from ISP into our network is coming through M7i interface. I want to make Cisco link more preferred or(M7i link less preferred). For this we can use AS-Path prepending on M7i right?
So I want to be sure how would you configure that in Juniper. If it was Cisco I would have done something like this:
router bgp 65001
neighbor 4.35.56.2 remote-as 45465
neighbor 4.35.56.2 route-map prepend out
!
route-map prepend permit 10
set as-path prepend 24367 25367 25367
So in Junos does the follwoing configuration seem ok?
protocols {
bgp {
group STC {
import FROM_STC;
export TO_STC;
neighbor 4.35.56.2 {
local-address 4.35.56.1;
peer-as 45465;
}
}
}
}
policy-options {
policy-statement FROM_STC {
term 1 {
from {
route-filter 0.0.0.0/0 exact;
}
then accept;
}
term 2 {
then reject;
}
}
policy-statement TO_STC {
term 1 {
from {
protocol direct;
route-filter 13.17.102.0/24 orlonger;
}
then{
as-path-prepend " 24367 25367 25367";
accept;
}
}
term 2 {
then reject;
}
}
}