Advertisement
billyfence

ISP-1-R1 - Config

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