Advertisement
pheonix198

RTR1

Nov 5th, 2019
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.61 KB | None | 0 0
  1. ========================================
  2. RTR1 - ROUTER 1 - BGPD.CONF - SANITIZED
  3. ========================================
  4. ! Zebra configuration saved from vty
  5. !
  6. router bgp XYZ
  7. bgp router-id 10.124.1.106
  8. bgp log-neighbor-changes
  9. redistribute static route-map STATIC-CONNECTED-BGP
  10. neighbor COMCAST peer-group
  11. neighbor COMCAST remote-as 7922
  12. neighbor COMCAST description ISP-Comcastic
  13. neighbor COMCAST route-map NO-DEFAULT-IN in
  14. neighbor COMCAST route-map COMCAST-OUT out
  15. neighbor COMCAST2 peer-group
  16. neighbor COMCAST2 remote-as 7922
  17. neighbor COMCAST2 description Comcast Secondary
  18. neighbor COMCAST2 ebgp-multihop 255
  19. neighbor COMCAST2 route-map PROVIDERS-IN in
  20. neighbor COMCAST2 route-map NO-ROUTES-OUT out
  21. neighbor DE-PREF-PROVIDERS peer-group
  22. neighbor DE-PREF-PROVIDERS description Providers that we want to de-pref
  23. no neighbor DE-PREF-PROVIDERS send-community
  24. neighbor DE-PREF-PROVIDERS route-map DE-PREF-IN in
  25. neighbor DE-PREF-PROVIDERS route-map PREPEND-OUT out
  26. neighbor PROVIDERS peer-group
  27. neighbor PROVIDERS description Internet Service Providers
  28. no neighbor PROVIDERS send-community
  29. neighbor PROVIDERS route-map PROVIDERS-IN in
  30. neighbor PROVIDERS route-map EBGP-OUT out
  31. neighbor iBGP peer-group
  32. neighbor iBGP remote-as XYZ
  33. neighbor iBGP description "iBGP Sessions"
  34. neighbor iBGP update-source p1p1
  35. neighbor iBGP next-hop-self
  36. neighbor iBGP soft-reconfiguration inbound
  37. neighbor 111.111.111.146 peer-group iBGP
  38. neighbor 111.111.193 remote-as YYY
  39. neighbor 111.111.193 peer-group PROVIDERS
  40. !
  41. ip prefix-list ALL-ROUTES description Match All Routes
  42. ip prefix-list ALL-ROUTES seq 10 permit 0.0.0.0/0 le 32
  43. ip prefix-list DEFAULT-ROUTE description Match Default Route
  44. ip prefix-list DEFAULT-ROUTE seq 10 permit 0.0.0.0/0
  45. ip prefix-list MY-ROUTES description Our BGP routes
  46. ip prefix-list MY-ROUTES seq 10 permit 111.111.111.0/24
  47. ip prefix-list MY-ROUTES seq 20 permit 33.33.0.0/24
  48. ip prefix-list RFC1918 seq 10 permit 10.0.0.0/8 le 32
  49. ip prefix-list RFC1918 seq 20 permit 172.16.0.0/12 le 32
  50. ip prefix-list RFC1918 seq 30 permit 192.168.0.0/16 le 32
  51. ip prefix-list STATIC-CONNECTED-BGP description BGP Redistribution List
  52. ip prefix-list STATIC-CONNECTED-BGP seq 10 permit 111.111.111.0/24 le 32
  53. ip prefix-list STATIC-CONNECTED-BGP seq 20 permit 33.33.0.0/24 le 32
  54. !
  55. ip community-list standard POISON-ROUTES permit no-export
  56. !
  57. route-map EBGP-OUT deny 10
  58. match ip address prefix-list RFC1918
  59. !
  60. route-map EBGP-OUT deny 20
  61. match community POISON-ROUTES
  62. !
  63. route-map EBGP-OUT permit 30
  64. match ip address prefix-list MY-ROUTES
  65. !
  66. route-map PROVIDERS-IN deny 10
  67. match ip address prefix-list RFC1918
  68. !
  69. route-map PROVIDERS-IN permit 20
  70. set community no-export
  71. set local-preference 100
  72. set metric 5000
  73. !
  74. route-map PREPEND-OUT deny 10
  75. match ip address prefix-list RFC1918
  76. !
  77. route-map PREPEND-OUT deny 20
  78. match community POISON-ROUTES
  79. !
  80. route-map PREPEND-OUT permit 30
  81. match ip address prefix-list MY-ROUTES
  82. set as-path prepend XYZ XYZ XYZ
  83. !
  84. route-map STATIC-CONNECTED-BGP permit 10
  85. match ip address prefix-list STATIC-CONNECTED-BGP
  86. set origin igp
  87. !
  88. route-map DE-PREF-IN deny 10
  89. match ip address prefix-list RFC1918
  90. !
  91. route-map DE-PREF-IN permit 20
  92. set community no-export
  93. set local-preference 90
  94. set metric 5000
  95. !
  96. route-map COMCAST-OUT deny 10
  97. match ip address prefix-list RFC1918
  98. !
  99. route-map COMCAST-OUT deny 20
  100. match community POISON-ROUTES
  101. !
  102. route-map COMCAST-OUT permit 30
  103. match ip address prefix-list MY-ROUTES
  104. set community 7922:999
  105. !
  106. route-map NO-ROUTES-OUT deny 10
  107. match ip address prefix-list ALL-ROUTES
  108. !
  109. route-map NO-DEFAULT-IN deny 10
  110. match ip address prefix-list RFC1918
  111. !
  112. route-map NO-DEFAULT-IN deny 20
  113. match ip address prefix-list DEFAULT-ROUTE
  114. !
  115. route-map NO-DEFAULT-IN permit 30
  116. set community no-export
  117. set local-preference 100
  118. set metric 5000
  119. !
  120. line vty
  121. !
  122.  
  123.  
  124. ========================================
  125. RTR1 - ROUTER 1 - ZEBRA.CONF - SANITIZED
  126. ========================================
  127. ! Zebra configuration saved from vty
  128. !
  129. hostname rtr1.domain.com
  130. !
  131. interface em1
  132. description Management
  133. ip address 10.124.1.106/19
  134. ipv6 nd suppress-ra
  135. !
  136. interface em2
  137. ipv6 nd suppress-ra
  138. !
  139. interface em3
  140. ipv6 nd suppress-ra
  141. !
  142. interface em4
  143. ipv6 nd suppress-ra
  144. !
  145. interface lo
  146. !
  147. interface p1p1
  148. description To rtr2
  149. ip address 111.111.111.145/30
  150. ipv6 nd suppress-ra
  151. !
  152. interface p1p2
  153. ipv6 nd suppress-ra
  154. !
  155. interface p2p1
  156. description To Firewalls
  157. ip address 111.111.111.140/28
  158. ipv6 nd suppress-ra
  159. !
  160. interface p2p2
  161. description To ISP-ALPHA
  162. ip address 111.222.222.194/30
  163. ipv6 nd suppress-ra
  164. !
  165. ip route 33.33.0.0/24 111.111.111.129
  166. ip route 111.111.111.0/24 Null0
  167. ip route 111.111.111.0/25 111.111.111.129
  168. !
  169. ip prefix-list ALL-ROUTES description Match All Routes
  170. ip prefix-list ALL-ROUTES seq 10 permit 0.0.0.0/0 le 32
  171. ip prefix-list DEFAULT-ROUTE description Match Default Route
  172. ip prefix-list DEFAULT-ROUTE seq 10 permit 0.0.0.0/0
  173. ip prefix-list MY-ROUTES description Our BGP routes
  174. ip prefix-list MY-ROUTES seq 10 permit 111.111.111.0/24
  175. ip prefix-list MY-ROUTES seq 20 permit 33.33.0.0/24
  176. ip prefix-list RFC1918 seq 10 permit 10.0.0.0/8 le 32
  177. ip prefix-list RFC1918 seq 20 permit 172.16.0.0/12 le 32
  178. ip prefix-list RFC1918 seq 30 permit 192.168.0.0/16 le 32
  179. ip prefix-list STATIC-CONNECTED-BGP description BGP Redistribution List
  180. ip prefix-list STATIC-CONNECTED-BGP seq 10 permit 111.111.111.0/24 le 32
  181. ip prefix-list STATIC-CONNECTED-BGP seq 20 permit 33.33.0.0/24 le 32
  182. !
  183. route-map EBGP-OUT deny 10
  184. match ip address prefix-list RFC1918
  185. !
  186. route-map EBGP-OUT deny 20
  187. !
  188. route-map EBGP-OUT permit 30
  189. match ip address prefix-list MY-ROUTES
  190. !
  191. route-map PROVIDERS-IN deny 10
  192. match ip address prefix-list RFC1918
  193. !
  194. route-map PROVIDERS-IN permit 20
  195. !
  196. route-map PREPEND-OUT deny 10
  197. match ip address prefix-list RFC1918
  198. !
  199. route-map PREPEND-OUT deny 20
  200. !
  201. route-map PREPEND-OUT permit 30
  202. match ip address prefix-list MY-ROUTES
  203. !
  204. route-map STATIC-CONNECTED-BGP permit 10
  205. match ip address prefix-list STATIC-CONNECTED-BGP
  206. !
  207. route-map DE-PREF-IN deny 10
  208. match ip address prefix-list RFC1918
  209. !
  210. route-map DE-PREF-IN permit 20
  211. !
  212. route-map COMCAST-OUT deny 10
  213. match ip address prefix-list RFC1918
  214. !
  215. route-map COMCAST-OUT deny 20
  216. !
  217. route-map COMCAST-OUT permit 30
  218. match ip address prefix-list MY-ROUTES
  219. !
  220. route-map NO-ROUTES-OUT deny 10
  221. match ip address prefix-list ALL-ROUTES
  222. !
  223. route-map NO-DEFAULT-IN deny 10
  224. match ip address prefix-list RFC1918
  225. !
  226. route-map NO-DEFAULT-IN deny 20
  227. match ip address prefix-list DEFAULT-ROUTE
  228. !
  229. route-map NO-DEFAULT-IN permit 30
  230. !
  231. ip forwarding
  232. !
  233. !
  234. line vty
  235. !
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement