Advertisement
billyfence

Untitled

Apr 13th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.45 KB | None | 0 0
  1. [edit]
  2. root@ISP-2-R1# show
  3. ## Last changed: 2018-04-11 14:14:58 UTC
  4. version 14.1R1.10;
  5. system {
  6. host-name ISP-2-R1;
  7. root-authentication {
  8. encrypted-password "$1$UMny9ixC$mGqZftl9XNKttGpyPeqaA."; ## SECRET-DATA
  9. }
  10. syslog {
  11. user * {
  12. any emergency;
  13. }
  14. file messages {
  15. any notice;
  16. authorization info;
  17. }
  18. file interactive-commands {
  19. interactive-commands any;
  20. }
  21. }
  22. }
  23. interfaces {
  24. em2 {
  25. description "ISP-2-R1 to ISP-1-R1";
  26. unit 0 {
  27. family inet {
  28. address 30.30.30.10/30;
  29. }
  30. }
  31. }
  32. em3 {
  33. description "ISP-2-R1 to Customer B";
  34. unit 0 {
  35. family inet {
  36. address 40.40.40.5/30;
  37. }
  38. }
  39. }
  40. em5 {
  41. description "ISP-2-R1 to Edge-2";
  42. unit 0 {
  43. family inet {
  44. address 40.40.40.1/30;
  45. }
  46. }
  47. }
  48. lo0 {
  49. unit 0 {
  50. family inet {
  51. address 20.20.20.1/32;
  52. }
  53. }
  54. }
  55. }
  56. routing-options {
  57. static {
  58. route 0.0.0.0/0 discard;
  59. route 40.40.40.0/24 discard;
  60. }
  61. router-id 20.20.20.1;
  62. autonomous-system 200;
  63. }
  64. protocols {
  65. bgp {
  66. group enterprise-edge2 {
  67. type external;
  68. import BGP-ENTERPRISE-IN;
  69. export BGP-ENTERPRISE-OUT;
  70. peer-as 10;
  71. neighbor 40.40.40.2;
  72. }
  73. group EBGP-PEER {
  74. type external;
  75. export BGP-ISP1-OUT;
  76. peer-as 100;
  77. neighbor 30.30.30.9;
  78. }
  79. group CUSTOMER-PEER {
  80. type external;
  81. import BGP-CUSTOMER-B-IN;
  82. export STATIC;
  83. peer-as 400;
  84. neighbor 40.40.40.6;
  85. }
  86. }
  87. }
  88. policy-options {
  89. policy-statement BGP-CUSTOMER-B-IN {
  90. term ACCEPT {
  91. then {
  92. community add CUSTOMER_B_MARK;
  93. accept;
  94. }
  95. }
  96. }
  97. policy-statement BGP-ENTERPRISE-IN {
  98. term 1 {
  99. then {
  100. community add ENTERPRISE-MARK;
  101. accept;
  102. }
  103. }
  104. }
  105. policy-statement BGP-ENTERPRISE-OUT {
  106. term DEFAULT {
  107. from {
  108. route-filter 0.0.0.0/0 exact;
  109. }
  110. then accept;
  111. }
  112. term ACCEPT {
  113. from community [ CUSTOMER_A_MARK CUSTOMER_B_MARK ];
  114. then accept;
  115. }
  116. term OTHER {
  117. then reject;
  118. }
  119. }
  120. policy-statement BGP-ISP1-OUT {
  121. term CUSTOMERS {
  122. from community CUSTOMER_B_MARK;
  123. then accept;
  124. }
  125. term AGGREGATES {
  126. from {
  127. route-filter 40.40.40.0/24 exact;
  128. }
  129. then accept;
  130. }
  131. term OTHER {
  132. then reject;
  133. }
  134. from community ENTERPRISE-MARK;
  135. }
  136. policy-statement STATIC {
  137. term DEFAULT {
  138. from {
  139. route-filter 0.0.0.0/0 exact;
  140. }
  141. then accept;
  142. }
  143. term OTHER {
  144. then reject;
  145. }
  146. }
  147. community CUSTOMER_A_MARK members 300:100;
  148. community CUSTOMER_B_MARK members 400:200;
  149. community ENTERPRISE-MARK members 10:200;
  150. }
  151.  
  152. [edit]
  153. root@ISP-2-R1#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement