Advertisement
anubisg1

Solution lab BGP-BASICS

Nov 22nd, 2013
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.71 KB | None | 0 0
  1. ###############################################################################################
  2.  
  3. Border_1#
  4.  
  5. !
  6. router bgp 65000
  7. no synchronization
  8. bgp router-id 11.11.11.11
  9. bgp log-neighbor-changes
  10. network 11.11.11.11 mask 255.255.255.255
  11. network 192.168.10.0
  12. network 192.168.11.0
  13. network 192.168.12.0
  14. network 192.168.13.0
  15. aggregate-address 192.168.8.0 255.255.248.0 summary-only
  16. neighbor 158.98.84.2 remote-as 100
  17. neighbor 158.98.84.2 prefix-list FILTER-OUT out
  18. neighbor 158.98.84.2 route-map SET_LOCAL_PREF in
  19. neighbor 158.98.84.2 route-map SET_MED out
  20. neighbor 158.98.84.6 remote-as 1234
  21. neighbor 158.98.84.6 prefix-list FILTER-OUT out
  22. neighbor 158.98.84.6 route-map SET_LOCAL_PREF in
  23. neighbor 158.98.84.6 route-map SET_MED out
  24. neighbor 192.168.1.2 remote-as 65000
  25. neighbor 192.168.1.2 next-hop-self
  26. no auto-summary
  27. !
  28. ip prefix-list FILTER-OUT seq 10 permit 192.168.8.0/21
  29. ip prefix-list FILTER-OUT seq 20 permit 11.11.11.11/32
  30. !
  31. route-map SET_LOCAL_PREF permit 10
  32. set local-preference 150
  33. !
  34. route-map SET_MED permit 10
  35. set metric 100
  36. !
  37.  
  38. Border_1#sh ip bgp sum
  39. BGP router identifier 11.11.11.11, local AS number 65000
  40. BGP table version is 17, main routing table version 17
  41. 11 network entries using 1320 bytes of memory
  42. 20 path entries using 1040 bytes of memory
  43. 25/7 BGP path/bestpath attribute entries using 3100 bytes of memory
  44. 12 BGP AS-PATH entries using 288 bytes of memory
  45. 0 BGP route-map cache entries using 0 bytes of memory
  46. 0 BGP filter-list cache entries using 0 bytes of memory
  47. Bitfield cache entries: current 2 (at peak 2) using 64 bytes of memory
  48. BGP using 5812 total bytes of memory
  49. BGP activity 66/55 prefixes, 131/111 paths, scan interval 60 secs
  50.  
  51. Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
  52. 158.98.84.2 4 100 253 195 17 0 0 00:02:37 4
  53. 158.98.84.6 4 1234 252 194 17 0 0 00:02:37 4
  54. 192.168.1.2 4 65000 243 228 17 0 0 00:02:30 6
  55.  
  56. Border_1#sh ip bgp
  57. BGP table version is 17, local router ID is 11.11.11.11
  58. Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
  59. r RIB-failure, S Stale
  60. Origin codes: i - IGP, e - EGP, ? - incomplete
  61.  
  62. Network Next Hop Metric LocPrf Weight Path
  63. *> 11.11.11.11/32 0.0.0.0 0 32768 i
  64. *>i22.22.22.22/32 192.168.1.2 0 100 0 i
  65. *>i55.55.55.55/32 192.168.1.2 0 200 0 300 i
  66. * 158.98.84.6 150 0 1234 100 200 300 i
  67. * 158.98.84.2 150 0 100 200 300 i
  68. *>i66.66.66.66/32 192.168.1.2 0 200 0 300 200 100 i
  69. * 158.98.84.6 150 0 1234 100 i
  70. * 158.98.84.2 0 150 0 100 i
  71. *>i77.77.77.77/32 192.168.1.2 0 200 0 300 200 i
  72. * 158.98.84.6 150 0 1234 100 200 i
  73. * 158.98.84.2 150 0 100 200 i
  74. *>i88.88.88.88/32 192.168.1.2 0 200 0 300 200 100 1234 i
  75. * 158.98.84.6 0 150 0 1234 i
  76. * 158.98.84.2 150 0 100 1234 i
  77. *> 192.168.8.0/21 0.0.0.0 32768 i
  78. * i 192.168.1.2 0 100 0 i
  79. s> 192.168.10.0 0.0.0.0 0 32768 i
  80. Network Next Hop Metric LocPrf Weight Path
  81. s> 192.168.11.0 0.0.0.0 0 32768 i
  82. s> 192.168.12.0 0.0.0.0 0 32768 i
  83. s> 192.168.13.0 0.0.0.0 0 32768 i
  84.  
  85.  
  86. ###############################################################################################
  87.  
  88. Border_2# -
  89.  
  90. !
  91. router bgp 65000
  92. no synchronization
  93. bgp router-id 22.22.22.22
  94. bgp log-neighbor-changes
  95. network 22.22.22.22 mask 255.255.255.255
  96. network 192.168.10.0
  97. network 192.168.11.0
  98. network 192.168.12.0
  99. network 192.168.13.0
  100. aggregate-address 192.168.8.0 255.255.248.0 summary-only
  101. neighbor 55.55.55.55 remote-as 300
  102. neighbor 55.55.55.55 ebgp-multihop 2
  103. neighbor 55.55.55.55 prefix-list FILTER-OUT out
  104. neighbor 55.55.55.55 route-map SET_LOCAL_PREF in
  105. neighbor 55.55.55.55 route-map SET_MED out
  106. neighbor 192.168.1.1 remote-as 65000
  107. neighbor 192.168.1.1 next-hop-self
  108. no auto-summary
  109. !
  110. ip route 55.55.55.55 255.255.255.255 158.98.84.10
  111. ip route 55.55.55.55 255.255.255.255 158.98.84.14
  112. !
  113. ip prefix-list FILTER-OUT seq 10 permit 192.168.8.0/21
  114. ip prefix-list FILTER-OUT seq 20 permit 22.22.22.22/32
  115. !
  116. route-map SET_LOCAL_PREF permit 10
  117. set local-preference 200
  118. !
  119. route-map SET_MED permit 10
  120. set metric 200
  121. set as-path prepend 65000 65000
  122. !
  123.  
  124. Border_2#sh ip bgp sum
  125. BGP router identifier 22.22.22.22, local AS number 65000
  126. BGP table version is 17, main routing table version 17
  127. 11 network entries using 1320 bytes of memory
  128. 12 path entries using 624 bytes of memory
  129. 13/7 BGP path/bestpath attribute entries using 1612 bytes of memory
  130. 4 BGP AS-PATH entries using 96 bytes of memory
  131. 0 BGP route-map cache entries using 0 bytes of memory
  132. 0 BGP filter-list cache entries using 0 bytes of memory
  133. Bitfield cache entries: current 2 (at peak 2) using 64 bytes of memory
  134. BGP using 3716 total bytes of memory
  135. BGP activity 45/34 prefixes, 76/64 paths, scan interval 60 secs
  136.  
  137. Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
  138. 55.55.55.55 4 300 222 177 17 0 0 00:02:38 4
  139. 192.168.1.1 4 65000 228 243 17 0 0 00:02:54 2
  140.  
  141. Border_2#sh ip bgp
  142. BGP table version is 17, local router ID is 22.22.22.22
  143. Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
  144. r RIB-failure, S Stale
  145. Origin codes: i - IGP, e - EGP, ? - incomplete
  146.  
  147. Network Next Hop Metric LocPrf Weight Path
  148. *>i11.11.11.11/32 192.168.1.1 0 100 0 i
  149. *> 22.22.22.22/32 0.0.0.0 0 32768 i
  150. r> 55.55.55.55/32 55.55.55.55 0 200 0 300 i
  151. *> 66.66.66.66/32 55.55.55.55 200 0 300 200 100 i
  152. *> 77.77.77.77/32 55.55.55.55 200 0 300 200 i
  153. *> 88.88.88.88/32 55.55.55.55 200 0 300 200 100 1234 i
  154. * i192.168.8.0/21 192.168.1.1 0 100 0 i
  155. *> 0.0.0.0 32768 i
  156. s> 192.168.10.0 0.0.0.0 0 32768 i
  157. s> 192.168.11.0 0.0.0.0 0 32768 i
  158. s> 192.168.12.0 0.0.0.0 0 32768 i
  159. s> 192.168.13.0 0.0.0.0 0 32768 i
  160.  
  161. ###############################################################################################
  162.  
  163. ISP_1#
  164.  
  165. BGP table version is 63, local router ID is 66.66.66.66
  166. Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
  167. r RIB-failure, S Stale
  168. Origin codes: i - IGP, e - EGP, ? - incomplete
  169.  
  170. Network Next Hop Metric LocPrf Weight Path
  171. * 11.11.11.11/32 158.98.84.18 0 1234 65000 i
  172. *> 158.98.84.1 100 0 65000 i
  173. *> 55.55.55.55/32 158.98.84.22 0 200 300 i
  174. *> 66.66.66.66/32 0.0.0.0 0 32768 i
  175. *> 77.77.77.77/32 158.98.84.22 0 0 200 i
  176. *> 88.88.88.88/32 158.98.84.18 0 0 1234 i
  177. * 192.168.8.0/21 158.98.84.18 0 1234 65000 i
  178. *> 158.98.84.1 100 0 65000 i
  179.  
  180. ###############################################################################################
  181.  
  182. ISP_2#
  183.  
  184. BGP table version is 60, local router ID is 55.55.55.55
  185. Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
  186. r RIB-failure, S Stale
  187. Origin codes: i - IGP, e - EGP, ? - incomplete
  188.  
  189. Network Next Hop Metric LocPrf Weight Path
  190. *> 11.11.11.11/32 158.98.84.26 0 200 100 65000 i
  191. r> 22.22.22.22/32 22.22.22.22 200 0 65000 65000 65000 i
  192. *> 55.55.55.55/32 0.0.0.0 0 32768 i
  193. *> 66.66.66.66/32 158.98.84.26 0 200 100 i
  194. *> 77.77.77.77/32 158.98.84.26 0 0 200 i
  195. *> 88.88.88.88/32 158.98.84.26 0 200 100 1234 i
  196. *> 192.168.8.0/21 22.22.22.22 200 0 65000 65000 65000 i
  197. * 158.98.84.26 0 200 100 65000 i
  198.  
  199. ###############################################################################################
  200.  
  201. COMPANY#
  202.  
  203. BGP table version is 73, local router ID is 88.88.88.88
  204. Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
  205. r RIB-failure, S Stale
  206. Origin codes: i - IGP, e - EGP, ? - incomplete
  207.  
  208. Network Next Hop Metric LocPrf Weight Path
  209. * 11.11.11.11/32 158.98.84.17 0 100 65000 i
  210. *> 158.98.84.5 100 0 65000 i
  211. *> 22.22.22.22/32 158.98.84.17 0 100 200 300 65000 65000 65000 i
  212. *> 55.55.55.55/32 158.98.84.17 0 100 200 300 i
  213. *> 66.66.66.66/32 158.98.84.17 0 0 100 i
  214. *> 77.77.77.77/32 158.98.84.17 0 100 200 i
  215. *> 88.88.88.88/32 0.0.0.0 0 32768 i
  216. * 192.168.8.0/21 158.98.84.17 0 100 65000 i
  217. *> 158.98.84.5 100 0 65000 i
  218.  
  219. ###############################################################################################
  220.  
  221. INTERNET#
  222.  
  223. BGP table version is 32, local router ID is 77.77.77.77
  224. Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
  225. r RIB-failure, S Stale
  226. Origin codes: i - IGP, e - EGP, ? - incomplete
  227.  
  228. Network Next Hop Metric LocPrf Weight Path
  229. *> 11.11.11.11/32 158.98.84.21 0 100 65000 i
  230. *> 22.22.22.22/32 158.98.84.25 0 300 65000 65000 65000 i
  231. *> 55.55.55.55/32 158.98.84.25 0 0 300 i
  232. *> 66.66.66.66/32 158.98.84.21 0 0 100 i
  233. *> 77.77.77.77/32 0.0.0.0 0 32768 i
  234. *> 88.88.88.88/32 158.98.84.21 0 100 1234 i
  235. * 192.168.8.0/21 158.98.84.25 0 300 65000 65000 65000 i
  236. *> 158.98.84.21 0 100 65000 i
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement