3

I am trying to understand setting up policies on a juniper router. What is the difference between "add" and "set" community?

set policy-options policy-statement MY_POLICY term MY_TERM then community ?
  <community_name>     Name to identify a BGP community
  +                    Add BGP communities to the route
  -                    Remove BGP communities from the route
  =                    Set the BGP communities in the route
  add                  Add BGP communities to the route
  delete               Remove BGP communities from the route
  set                  Set the BGP communities in the route
7

set replaces the current communities on a route with the specified community, while add adds the specified community to any communities already present on that route.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.