Advertisement
billyfence

ISP-1-R1 - Config new

Apr 17th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.24 KB | None | 0 0
  1. [edit]
  2. root@ISP-1-R1# show
  3. ## Last changed: 2018-04-16 21:45:41 UTC
  4. version 14.1R1.10;
  5. system {
  6. host-name ISP-1-R1;
  7. root-authentication {
  8. encrypted-password "$1$8WWqwcsL$7e3R1a.oisCiMPA.tNPax."; ## 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-1-R1 to ISP-2-R1";
  26. unit 0 {
  27. family inet {
  28. address 30.30.30.9/30;
  29. }
  30. }
  31. }
  32. em3 {
  33. description "ISP-1-R1 to Customer A";
  34. unit 0 {
  35. family inet {
  36. address 30.30.30.13/30;
  37. }
  38. }
  39. }
  40. em4 {
  41. description "ISP-1-R1 to ISP-1-R2";
  42. unit 0 {
  43. family inet {
  44. address 50.50.50.2/30;
  45. }
  46. }
  47. }
  48. em5 {
  49. description "ISP-1-R1 to Edge-1";
  50. unit 0 {
  51. family inet {
  52. address 30.30.30.1/30;
  53. }
  54. }
  55. }
  56. lo0 {
  57. description Loopback;
  58. unit 0 {
  59. family inet {
  60. address 10.10.10.1/32;
  61. }
  62. }
  63. }
  64. }
  65. routing-options {
  66. static {
  67. route 0.0.0.0/0 discard;
  68. route 30.30.30.0/24 discard;
  69. route 50.50.50.0/24 discard;
  70. }
  71. router-id 10.10.10.1;
  72. autonomous-system 100;
  73. }
  74. protocols {
  75. bgp {
  76. group IBGP-PEERS {
  77. type internal;
  78. local-address 10.10.10.1;
  79. export STATIC;
  80. neighbor 10.10.10.2;
  81. }
  82. group enterprise-edge1 {
  83. type external;
  84. import BGP-ENTERPRISE-IN;
  85. export BGP-ENTERPRISE-OUT;
  86. peer-as 10;
  87. neighbor 30.30.30.2;
  88. }
  89. group EBGP-peer {
  90. type external;
  91. export BGP-ISP2-OUT;
  92. peer-as 200;
  93. neighbor 30.30.30.10;
  94. }
  95. group CUSTOMER-PEER {
  96. type external;
  97. import BGP-CUSTOMER-A-IN;
  98. export STATIC;
  99. peer-as 300;
  100. neighbor 30.30.30.14;
  101. }
  102. }
  103. ospf {
  104. area 0.0.0.0 {
  105. interface em4.0 {
  106. interface-type p2p;
  107. }
  108. interface lo0.0 {
  109. passive;
  110. }
  111. interface em5.0 {
  112. passive;
  113. }
  114. interface em2.0 {
  115. passive;
  116. }
  117. interface em3.0 {
  118. passive;
  119. }
  120. }
  121. }
  122. }
  123. policy-options {
  124. policy-statement BGP-CUSTOMER-A-IN {
  125. term ACCEPT {
  126. then {
  127. community add CUSTOMER_A_MARK;
  128. accept;
  129. }
  130. }
  131. }
  132. policy-statement BGP-ENTERPRISE-IN {
  133. term ACCEPT {
  134. then {
  135. community add ENTERPRISE-MARK;
  136. accept;
  137. }
  138. }
  139. }
  140. policy-statement BGP-ENTERPRISE-OUT {
  141. term DEFAULT {
  142. from {
  143. route-filter 0.0.0.0/0 exact;
  144. }
  145. then accept;
  146. }
  147. term ACCEPT {
  148. from community [ CUSTOMER_A_MARK CUSTOMER_B_MARK ];
  149. then accept;
  150. }
  151. term OTHER {
  152. then reject;
  153. }
  154. }
  155. policy-statement BGP-ISP2-OUT {
  156. term CUSTOMERS {
  157. from community [ CUSTOMER_A_MARK ENTERPRISE-MARK ];
  158. then accept;
  159. }
  160. term AGGREGATES {
  161. from {
  162. route-filter 30.30.30.0/24 exact;
  163. route-filter 50.50.50.0/24 exact;
  164. }
  165. then accept;
  166. }
  167. term OTHER {
  168. then reject;
  169. }
  170. }
  171. policy-statement STATIC {
  172. term DEFAULT {
  173. from {
  174. route-filter 0.0.0.0/0 exact;
  175. }
  176. then accept;
  177. }
  178. }
  179. community CUSTOMER_A_MARK members 300:100;
  180. community CUSTOMER_B_MARK members 400:200;
  181. community ENTERPRISE-MARK members 10:00;
  182. }
  183.  
  184. [edit]
  185. root@ISP-1-R1#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement