One more questions.
If I like to export multiple ospf routes and only default generated route to BGP, how should the policy look like?
The following does not work. It only exports 0.0.0.0/0.
set policy-options policy-statement ISP-UP term 1 then accept
set policy-options policy-statement exp2DC term 1 from protocol aggregate
set policy-options policy-statement exp2DC term 1 from protocol ospf
set policy-options policy-statement exp2DC term 1 from route-filter 0.0.0.0/0 exact
set policy-options policy-statement exp2DC term 1 then next-hop self
set policy-options policy-statement exp2DC term 1 then accept
thanks in advance !!
Original Message:
Sent: 01-16-2021 20:28
From: STEVE PULUKA
Subject: Need assistance for BGP policy
As soon as a prefix matches a term the next and following terms are no longer processed.
The second policy properly combines the two desired items into the same term.
We need to arrange the order of terms such that when your match conditions process the prefixes they fall through the non-match terms first and the desired matching term is the next one they hit.
------------------------------
Steve Puluka BSEET - Juniper Ambassador
IP Architect - DQE Communications Pittsburgh, PA (Metro Ethernet & ISP)
http://puluka.com/home
Original Message:
Sent: 01-16-2021 20:16
From: Unknown User
Subject: Need assistance for BGP policy
anyone can help me to understand the difference between the following two?
set policy-options policy-statement FromISP2 term 1 then community set no-export
set policy-options policy-statement FromISP2 term 1 then accept
set policy-options policy-statement FromISP2 term 2 then local-preference 150
set policy-options policy-statement FromISP2 term 2 then accept
set policy-options policy-statement FromISP2 term 1 then community set no-export
set policy-options policy-statement FromISP2 term 1 then local-preference 150
set policy-options policy-statement FromISP2 term 1 then accept
set protocols bgp group ToISP2 import FromISP2
if I used the first one, only community applied. but the second one applies both.
what have I missed ?
thanks a lot !!