Advertisement
billyfence

Edge1

Apr 17th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.56 KB | None | 0 0
  1. [edit]
  2. root@Edge-1# show
  3. ## Last changed: 2018-04-17 01:00:29 UTC
  4. version 14.1R1.10;
  5. system {
  6. host-name Edge-1;
  7. root-authentication {
  8. encrypted-password "$1$fZKCu7Al$9R9VT/8pDFGtoEib9mJsX0"; ## 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 "Edge-1 to ABR";
  26. unit 0 {
  27. family inet {
  28. address 192.168.11.10/30;
  29. }
  30. }
  31. }
  32. em4 {
  33. description "Edge-1 to Edge-2";
  34. unit 0 {
  35. family inet {
  36. address 192.168.11.17/30;
  37. }
  38. }
  39. }
  40. em5 {
  41. description "Edge1 to ISP1-R1";
  42. unit 0 {
  43. family inet {
  44. address 30.30.30.2/30;
  45. }
  46. }
  47. }
  48. em6 {
  49. description "Edge1 to ISP1-R2";
  50. unit 0 {
  51. family inet {
  52. address 30.30.30.6/30;
  53. }
  54. }
  55. }
  56. lo0 {
  57. description loopback;
  58. unit 0 {
  59. family inet {
  60. address 192.168.10.1/32;
  61. }
  62. }
  63. }
  64. }
  65. routing-options {
  66. static {
  67. route 192.168.10.0/24 discard;
  68. route 192.168.11.0/24 discard;
  69. }
  70. router-id 192.168.10.1;
  71. autonomous-system 10;
  72. }
  73. protocols {
  74. bgp {
  75. group IBGP-PEERS {
  76. type internal;
  77. local-address 192.168.10.1;
  78. import ACCEPT;
  79. export RR-EXPORT;
  80. neighbor 192.168.10.6;
  81. }
  82. group isp1-r1 {
  83. type external;
  84. import SET-LOCAL-PREF;
  85. export [ BGP-ISP1-OUT MED-30 ];
  86. peer-as 100;
  87. neighbor 30.30.30.1;
  88. }
  89. group isp1-r2 {
  90. type external;
  91. import SET-LOCAL-PREF;
  92. export [ BGP-ISP1-OUT MED-20 ];
  93. peer-as 100;
  94. neighbor 30.30.30.5;
  95. }
  96. }
  97. ospf {
  98. area 0.0.0.0 {
  99. interface em4.0 {
  100. interface-type p2p;
  101. }
  102. interface em2.0 {
  103. interface-type p2p;
  104. }
  105. interface lo0.0 {
  106. passive;
  107. }
  108. }
  109. }
  110. }
  111. policy-options {
  112. policy-statement ACCEPT {
  113. term ALL {
  114. then accept;
  115. }
  116. }
  117. policy-statement BGP-ISP1-OUT {
  118. term LAN-BLOCKS {
  119. from {
  120. route-filter 192.168.10.0/24 exact;
  121. route-filter 192.168.11.0/24 exact;
  122. route-filter 192.168.12.0/24 exact;
  123. route-filter 192.168.13.0/24 exact;
  124. }
  125. then accept;
  126. }
  127. term OTHER {
  128. then reject;
  129. }
  130. }
  131. policy-statement MED-20 {
  132. from {
  133. route-filter 192.168.12.0/24 exact;
  134. }
  135. then {
  136. metric 20;
  137. accept;
  138. }
  139. }
  140. policy-statement MED-30 {
  141. from {
  142. route-filter 192.168.12.0/24 exact;
  143. }
  144. then {
  145. metric 30;
  146. accept;
  147. }
  148. }
  149. policy-statement RR-EXPORT {
  150. then {
  151. next-hop self;
  152. }
  153. }
  154. policy-statement SET-LOCAL-PREF {
  155. term 1 {
  156. then {
  157. local-preference 120;
  158. }
  159. }
  160. }
  161. }
  162.  
  163. [edit]
  164. root@Edge-1#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement