Advertisement
billyfence

Untitled

Apr 13th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.95 KB | None | 0 0
  1. [edit]
  2. root@ISP-1-R1# show
  3. ## Last changed: 2018-04-11 07:49:32 UTC
  4. version 14.1R1.10;
  5. system {
  6. host-name ISP-1-R1;
  7. root-authentication {
  8. encrypted-password "$1$jN9xg82/$gUal2CRqIlldjMNTNYD/N/"; ## 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. export BGP-ENTERPRISE-OUT;
  85. peer-as 10;
  86. neighbor 30.30.30.2;
  87. }
  88. group EBGP-PEER {
  89. type external;
  90. export BGP-ISP2-OUT;
  91. peer-as 200;
  92. neighbor 30.30.30.10;
  93. }
  94. group CUSTOMER-PEER {
  95. type external;
  96. import BGP-CUSTOMER-A-IN;
  97. export STATIC;
  98. peer-as 300;
  99. neighbor 30.30.30.14;
  100. }
  101. }
  102. ospf {
  103. area 0.0.0.0 {
  104. interface em4.0 {
  105. interface-type p2p;
  106. }
  107. interface lo0.0 {
  108. passive;
  109. }
  110. interface em5.0 {
  111. passive;
  112. }
  113. interface em2.0 {
  114. passive;
  115. }
  116. interface em3.0 {
  117. passive;
  118. }
  119. }
  120. }
  121. }
  122. policy-options {
  123. policy-statement BGP-CUSTOMER-A-IN {
  124. term ACCEPT {
  125. then {
  126. community add CUSTOMER_A_MARK;
  127. accept;
  128. }
  129. }
  130. }
  131. policy-statement BGP-ENTERPRISE-OUT {
  132. term DEFAULT {
  133. from {
  134. route-filter 0.0.0.0/0 exact;
  135. }
  136. then accept;
  137. }
  138. term ACCEPT {
  139. from community [ CUSTOMER_A_MARK CUSTOMER_B_MARK ];
  140. then accept;
  141. }
  142. term OTHER {
  143. then reject;
  144. }
  145. }
  146. policy-statement BGP-ISP2-OUT {
  147. term CUSTOMERS {
  148. from community CUSTOMER_A_MARK;
  149. then accept;
  150. }
  151. term AGGREGATES {
  152. from {
  153. route-filter 30.30.30.0/24 exact;
  154. route-filter 50.50.50.0/24 exact;
  155. }
  156. then accept;
  157. }
  158. term OTHER {
  159. then reject;
  160. }
  161. }
  162. policy-statement STATIC {
  163. term DEFAULT {
  164. from {
  165. route-filter 0.0.0.0/0 exact;
  166. }
  167. then accept;
  168. }
  169. }
  170. community CUSTOMER_A_MARK members 300:100;
  171. community CUSTOMER_B_MARK members 400:200;
  172. }
  173.  
  174. [edit]
  175. root@ISP-1-R1#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement