Advertisement
Guest User

Untitled

a guest
Dec 21st, 2014
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. Inbound policy on PE router.
  2.  
  3. prefix-set CUSTOMER_A
  4. 10.0.0.0/19 le 24
  5. end-set
  6. !
  7. community-set COMM_90
  8. 100:90
  9. end-set
  10. !
  11. community-set COMM_100
  12. 100:100
  13. end-set
  14. !
  15. community-set COMM_110
  16. 100:110
  17. end-set
  18. !
  19. route-policy CUSTOMER_IN
  20. if community matches-any COMM_90 and destination in CUSTOMER_A then
  21. set local-preference 90
  22. endif
  23. if community matches-any COMM_100 and destination in CUSTOMER_A then
  24. set local-preference 100
  25. endif
  26. if community matches-any COMM_110 and destination in CUSTOMER_A then
  27. set local-preference 110
  28. endif
  29. if destination in CUSTOMER_A then
  30. pass
  31. endif
  32. end-policy
  33. !
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement