Routing

last person joined: 4 days ago 

Ask questions and share experiences about ACX Series, CTP Series, MX Series, PTX Series, SSR Series, JRR Series, and all things routing, including portfolios and protocols.
  • 1.  policy-options quick question..

    Posted 11-01-2013 22:29

    noc@host2> show configuration | display set | match 12345

    set policy-options policy-statement 12345-BALTIMORE-export then accept
    set policy-options policy-statement 12345-Hanover-export then accept
    set policy-options policy-statement 12345-Foundation-export term DEFAULT then default-action reject
    set policy-options policy-statement 12345-Foundation-export term L3VPN then community add Foundation-mesh
    set policy-options policy-statement 12345-Foundation-export term L3VPN then default-action accept
    set policy-options policy-statement 12345-Foundation-import term L3VPN from community Foundation-mesh
    set policy-options policy-statement 12345-Foundation-import term L3VPN then accept
    set policy-options policy-statement 12345-Foundation-L3VPN-import term final then reject
    set policy-options policy-statement 12345-Odenton-export then accept
    set policy-options policy-statement 12345-WOODBRIDGE-export then accept

     

    I was moving this customer and saw this above, If I am not mistaken the bottom two would not be getting applied at all.. Am I reading this correctly? You can't have Accept, Accept, Accept, Reject, Accept, Accept cause after teh Reject it would explicitly deny everything afterwards. Everythng boils down to the order of how it was put in.. correct?

     



  • 2.  RE: policy-options quick question..
    Best Answer

    Posted 11-02-2013 04:42

    Hello,

    The names of individual policy-statements are different.

    If they are applied individually then the  "Accept, Accept, Accept, Reject, Accept, Accept cause after teh Reject" scenario won't happen.

    The "Accept, Accept, Accept, Reject, Accept, Accept cause after teh Reject" scenario will ONLY happen if You apply them as policy-chain:

     

    set protocols bgp group BLAH export [ 12345-BALTIMORE-export 12345-Hanover-export 12345-Foundation-export 12345-Odenton-export 12345-WOODBRIDGE-export ]

     HTH

    Thanks

    Alex



  • 3.  RE: policy-options quick question..

    Posted 11-02-2013 04:50

    Ok that makes total sense.ty!!

     

    Hello,

    The names of individual policy-statements are different.

    If they are applied individually then the  "Accept, Accept, Accept, Reject, Accept, Accept cause after teh Reject" scenario won't happen.

    The "Accept, Accept, Accept, Reject, Accept, Accept cause after teh Reject" scenario will ONLY happen if You apply them as policy-chain:

     

    set protocols bgp group BLAH export [ 12345-BALTIMORE-export 12345-Hanover-export 12345-Foundation-export 12345-Odenton-export 12345-WOODBRIDGE-export ]

     HTH

    Thanks

    Alex

    ______

    !