Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2019
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.82 KB | None | 0 0
  1. Router r22 - before BGP setup
  2.  
  3. r22# show ip route
  4. Codes: K - kernel route, C - connected, S - static, R - RIP,
  5. O - OSPF, I - IS-IS, B - BGP, P - PIM, A - Babel, N - NHRP,
  6. > - selected route, * - FIB route
  7.  
  8. O>* 10.0.1.0/24 [110/20] via 172.16.12.10, eth1, 00:19:00
  9. C>* 127.0.0.0/8 is directly connected, lo
  10. C>* 172.16.12.4/30 is directly connected, eth2
  11. O 172.16.12.8/30 [110/10] is directly connected, eth1, 00:19:10
  12. C>* 172.16.12.8/30 is directly connected, eth1
  13.  
  14. -----------------------------------------------------------------
  15. r22# write terminal
  16. Building configuration...
  17.  
  18. Current configuration:
  19. !
  20. !
  21. interface eth1
  22. !
  23. interface eth2
  24. !
  25. interface lo
  26. !
  27. router ospf
  28. network 172.16.12.8/30 area 0.0.0.0
  29. !
  30. ip forwarding
  31. !
  32. line vty
  33. !
  34. end
  35.  
  36. -----------------------------------------------------------------
  37. AFTER BGP
  38. -----------------------------------------------------------------
  39.  
  40. r22# show ip route
  41. Codes: K - kernel route, C - connected, S - static, R - RIP,
  42. O - OSPF, I - IS-IS, B - BGP, P - PIM, A - Babel, N - NHRP,
  43. > - selected route, * - FIB route
  44.  
  45. B>* 10.0.0.0/24 [20/100] via 172.16.12.5, eth2, 00:01:21
  46. O>* 10.0.1.0/24 [110/20] via 172.16.12.10, eth1, 00:25:01
  47. C>* 127.0.0.0/8 is directly connected, lo
  48. C>* 172.16.12.4/30 is directly connected, eth2
  49. O 172.16.12.8/30 [110/10] is directly connected, eth1, 00:25:11
  50. C>* 172.16.12.8/30 is directly connected, eth1
  51.  
  52. -----------------------------------------------------------------
  53. r22# show ip ospf database
  54.  
  55. OSPF Router with ID (172.16.12.9)
  56.  
  57. Router Link States (Area 0.0.0.0)
  58.  
  59. Link ID ADV Router Age Seq# CkSum Link count
  60. 172.16.12.9 172.16.12.9 407 0x80000005 0x38c5 1
  61. 172.16.12.10 172.16.12.10 437 0x80000006 0xd7fc 2
  62.  
  63. Net Link States (Area 0.0.0.0)
  64.  
  65. Link ID ADV Router Age Seq# CkSum
  66. 172.16.12.10 172.16.12.10 887 0x80000002 0x31e0
  67.  
  68.  
  69.  
  70. -----------------------------------------------------------------
  71. r22# write terminal
  72. Building configuration...
  73.  
  74. Current configuration:
  75. !
  76. !
  77. interface eth1
  78. !
  79. interface eth2
  80. !
  81. interface lo
  82. !
  83. router bgp 22
  84. bgp router-id 172.16.12.9
  85. redistribute ospf metric 100
  86. neighbor 172.16.12.5 remote-as 11
  87. !
  88. address-family ipv6
  89. exit-address-family
  90. exit
  91. !
  92. router ospf
  93. network 172.16.12.8/30 area 0.0.0.0
  94. !
  95. ip forwarding
  96. !
  97. line vty
  98. !
  99. end
  100.  
  101. -----------------------------------------------------------------
  102. r22# show bgp summary
  103.  
  104. IPv4 Unicast Summary:
  105. ---------------------
  106. BGP router identifier 172.16.12.9, local AS number 22
  107. RIB entries 3, using 336 bytes of memory
  108. Peers 1, using 9088 bytes of memory
  109.  
  110. Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
  111. 172.16.12.5 4 11 15 21 0 0 0 00:12:51 1
  112.  
  113. Total number of neighbors 1
  114.  
  115. Total num. Established sessions 1
  116. Total num. of routes received 1
  117.  
  118. IPv4 Multicast Summary:
  119. -----------------------
  120. No IPv4 neighbor is configured
  121.  
  122. IPv4 VPN Summary:
  123. -----------------
  124. No IPv4 neighbor is configured
  125. ....
  126.  
  127. -----------------------------------------------------------------
  128. Router r21 - after BGP setup
  129.  
  130. r21# show ip route
  131. Codes: K - kernel route, C - connected, S - static, R - RIP,
  132. O - OSPF, I - IS-IS, B - BGP, P - PIM, A - Babel, N - NHRP,
  133. > - selected route, * - FIB route
  134.  
  135. O>* 10.0.0.0/24 [110/20] via 172.16.12.1, eth1, 00:23:49
  136. B>* 10.0.1.0/24 [20/100] via 172.16.12.6, eth2, 00:00:13
  137. C>* 127.0.0.0/8 is directly connected, lo
  138. O 172.16.12.0/30 [110/10] is directly connected, eth1, 00:24:39
  139. C>* 172.16.12.0/30 is directly connected, eth1
  140. C>* 172.16.12.4/30 is directly connected, eth2
  141.  
  142. bgp router-id 172.16.12.5
  143. redistribute ospf metric 100
  144. neighbor 172.16.12.6 remote-as 22
  145. !
  146. address-family ipv6
  147. exit-address-family
  148. exit
  149. !
  150. router ospf
  151. network 172.16.12.0/30 area 0.0.0.0
  152.  
  153.  
  154. -----------------------------------------------------------------
  155. r21# show bgp summary
  156. IPv4 Unicast Summary:
  157. ---------------------
  158. BGP router identifier 172.16.12.5, local AS number 11
  159. RIB entries 3, using 336 bytes of memory
  160. Peers 1, using 9088 bytes of memory
  161.  
  162. Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
  163. 172.16.12.6 4 22 14 15 0 0 0 00:10:34 1
  164.  
  165. Total number of neighbors 1
  166.  
  167. Total num. Established sessions 1
  168. Total num. of routes received 1
  169.  
  170. IPv4 Multicast Summary:
  171. -----------------------
  172. No IPv4 neighbor is configured
  173.  
  174. IPv4 VPN Summary:
  175. -----------------
  176. No IPv4 neighbor is configured
  177. ....
  178.  
  179.  
  180.  
  181. -----------------------------------------------------------------
  182. r11# write terminal
  183. Building configuration...
  184.  
  185. Current configuration:
  186. !
  187. !
  188. interface eth1
  189. !
  190. interface eth2
  191. !
  192. interface lo
  193. !
  194. router ospf
  195. network 10.0.0.0/24 area 0.0.0.0
  196. network 172.16.12.0/30 area 0.0.0.0
  197. !
  198. ip forwarding
  199. !
  200. line vty
  201. !
  202. end
  203.  
  204. -----------------------------------------------------------------
  205. r11# show ip route
  206. Codes: K - kernel route, C - connected, S - static, R - RIP,
  207. O - OSPF, I - IS-IS, B - BGP, P - PIM, A - Babel, N - NHRP,
  208. > - selected route, * - FIB route
  209.  
  210. O 10.0.0.0/24 [110/10] is directly connected, eth2, 00:34:16
  211. C>* 10.0.0.0/24 is directly connected, eth2
  212. C>* 127.0.0.0/8 is directly connected, lo
  213. O 172.16.12.0/30 [110/10] is directly connected, eth1, 00:33:34
  214. C>* 172.16.12.0/30 is directly connected, eth1
  215.  
  216.  
  217. -----------------------------------------------------------------
  218. r11# show ip ospf database
  219.  
  220. OSPF Router with ID (172.16.12.1)
  221.  
  222. Router Link States (Area 0.0.0.0)
  223.  
  224. Link ID ADV Router Age Seq# CkSum Link count
  225. 172.16.12.1 172.16.12.1 533 0x80000007 0xc136 2
  226. 172.16.12.5 172.16.12.5 543 0x80000004 0xc74e 1
  227.  
  228. Net Link States (Area 0.0.0.0)
  229.  
  230. Link ID ADV Router Age Seq# CkSum
  231. 172.16.12.2 172.16.12.5 223 0x80000002 0x0923
  232.  
  233.  
  234.  
  235. -----------------------------------------------------------------
  236. r12# show ip route
  237. Codes: K - kernel route, C - connected, S - static, R - RIP,
  238. O - OSPF, I - IS-IS, B - BGP, P - PIM, A - Babel, N - NHRP,
  239. > - selected route, * - FIB route
  240.  
  241. O 10.0.1.0/24 [110/10] is directly connected, eth1, 00:33:24
  242. C>* 10.0.1.0/24 is directly connected, eth1
  243. C>* 127.0.0.0/8 is directly connected, lo
  244. O 172.16.12.8/30 [110/10] is directly connected, eth2, 00:33:23
  245. C>* 172.16.12.8/30 is directly connected, eth2
  246.  
  247.  
  248. -----------------------------------------------------------------
  249. r12# write terminal
  250. Building configuration...
  251.  
  252. Current configuration:
  253. !
  254. !
  255. interface eth1
  256. !
  257. interface eth2
  258. !
  259. interface lo
  260. !
  261. router ospf
  262. network 10.0.1.0/24 area 0.0.0.0
  263. network 172.16.12.8/30 area 0.0.0.0
  264. !
  265. ip forwarding
  266. !
  267. line vty
  268. !
  269. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement