Advertisement
Guest User

Untitled

a guest
Feb 28th, 2017
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.23 KB | None | 0 0
  1. router ospf 1
  2. router-id 10.255.255.cisloRoutra
  3. network SIET WILDCARD_MASKA area CISLO_AREY
  4. 0.0.0.255
  5.  
  6.  
  7. #R1
  8. enable
  9. conf t
  10. no ip domain-lookup
  11. line con 0
  12. logg syn
  13. int l0
  14. no sh
  15. ip addr 10.255.255.1 255.255.255.255
  16. int fa0/0
  17. no sh
  18. ip addr 10.0.12.1 255.255.255.0
  19. int fa0/1
  20. no sh
  21. ip addr 10.0.15.1 255.255.255.0
  22.  
  23. #R2
  24. enable
  25. conf t
  26. no ip domain-lookup
  27. line con 0
  28. logg syn
  29. int l0
  30. no sh
  31. ip addr 10.255.255.2 255.255.255.255
  32. int fa0/0
  33. no sh
  34. ip addr 10.0.12.2 255.255.255.0
  35. int fa0/1
  36. no sh
  37. ip addr 10.0.234.1 255.255.255.0
  38.  
  39. #R3
  40. enable
  41. conf t
  42. no ip domain-lookup
  43. line con 0
  44. logg syn
  45. int l0
  46. no sh
  47. ip addr 10.255.255.3 255.255.255.255
  48. int fa0/0
  49. no sh
  50. ip addr 10.1.38.1 255.255.255.0
  51. int fa0/1
  52. no sh
  53. ip addr 10.0.234.2 255.255.255.0
  54. int s1/0
  55. no sh
  56. ip addr 10.2.39.1 255.255.255.0
  57.  
  58. #R4
  59. enable
  60. conf t
  61. no ip domain-lookup
  62. line con 0
  63. logg syn
  64. int l0
  65. no sh
  66. ip addr 10.255.255.4 255.255.255.255
  67. int fa0/0
  68. no sh
  69. ip addr 10.2.49.1 255.255.255.0
  70. int fa0/1
  71. no sh
  72. ip addr 10.0.234.3 255.255.255.0
  73. int s1/0
  74. no sh
  75. ip addr 10.3.40.1 255.255.255.0
  76.  
  77. #R5
  78. enable
  79. conf t
  80. no ip domain-lookup
  81. line con 0
  82. logg syn
  83. int l0
  84. no sh
  85. ip addr 10.255.255.5 255.255.255.255
  86. int fa0/1
  87. no sh
  88. ip addr 10.0.15.2 255.255.255.0
  89.  
  90. #R6
  91. enable
  92. conf t
  93. no ip domain-lookup
  94. line con 0
  95. logg syn
  96. int l0
  97. no sh
  98. ip addr 10.255.255.6 255.255.255.255
  99. int fa0/1
  100. no sh
  101. ip addr 10.4.67.1 255.255.255.0
  102.  
  103. #R7
  104. enable
  105. conf t
  106. no ip domain-lookup
  107. line con 0
  108. logg syn
  109. int l0
  110. no sh
  111. ip addr 10.255.255.7 255.255.255.255
  112. int fa0/1
  113. no sh
  114. ip addr 10.4.67.2 255.255.255.0
  115. int s1/1
  116. no sh
  117. ip addr 10.4.70.1 255.255.255.0
  118.  
  119. #R8
  120. enable
  121. conf t
  122. no ip domain-lookup
  123. line con 0
  124. logg syn
  125. int l0
  126. no sh
  127. ip addr 10.255.255.8 255.255.255.255
  128. int fa0/0
  129. no sh
  130. ip addr 10.1.38.2 255.255.255.0
  131.  
  132. #R9
  133. enable
  134. conf t
  135. no ip domain-lookup
  136. line con 0
  137. logg syn
  138. int l0
  139. no sh
  140. ip addr 10.255.255.9 255.255.255.255
  141. int fa0/0
  142. no sh
  143. ip addr 10.2.49.2 255.255.255.0
  144. int s1/0
  145. no sh
  146. ip addr 10.2.39.2 255.255.255.0
  147.  
  148. #R10
  149. enable
  150. conf t
  151. no ip domain-lookup
  152. line con 0
  153. logg syn
  154. int l0
  155. no sh
  156. ip addr 10.255.255.10 255.255.255.255
  157. int s1/0
  158. no sh
  159. ip addr 10.3.40.2 255.255.255.0
  160. int s1/1
  161. no sh
  162. ip addr 10.4.70.2 255.255.255.0
  163.  
  164.  
  165.  
  166. #R1
  167. router ospf 1
  168. network 10.0.12.0 0.0.0.255 area 0
  169.  
  170. #R2
  171. router ospf 1
  172. network 10.0.12.0 0.0.0.255 area 0
  173. network 10.0.234.0 0.0.0.255 area 0
  174.  
  175. #R3
  176. router ospf 1
  177. network 10.0.234.0 0.0.0.255 area 0
  178. network 10.1.38.0 0.0.0.255 area 1
  179. network 10.2.39.0 0.0.0.255 area 2
  180.  
  181. #R4
  182. router ospf 1
  183. network 10.0.234.0 0.0.0.255 area 0
  184. network 10.2.49.0 0.0.0.255 area 2
  185. network 10.3.40.0 0.0.0.255 area 3
  186.  
  187.  
  188. #R6
  189. router ospf 1
  190. network 10.4.67.0 0.0.0.255 area 4
  191.  
  192. #R7
  193. router ospf 1
  194. network 10.4.67.0 0.0.0.255 area 4
  195. network 10.4.70.0 0.0.0.255 area 4
  196.  
  197. #R8
  198. router ospf 1
  199. network 10.1.38.0 0.0.0.255 area 1
  200.  
  201. #R9
  202. router ospf 1
  203. network 10.2.39.0 0.0.0.255 area 2
  204. network 10.2.49.0 0.0.0.255 area 2
  205.  
  206. #R10
  207. router ospf 1
  208. network 10.3.40.0 0.0.0.255 area 3
  209. network 10.4.70.0 0.0.0.255 area 4
  210.  
  211.  
  212. virtualna linka medzi R4 a R7:
  213. #R4
  214. area 4 virtual-link 10.255.255.10 (to je RID 10ky)
  215. #R10
  216. area 4 virtual-link 10.255.255.4 (to je RID 4ky)
  217.  
  218. na vsetkych fa interfejsoch (okrem prepojov R1-R5 a R2-3-4!):
  219. ip ospf netw point-to-point
  220. medzi R2-R3-R4 point-to-multipoint!!!
  221.  
  222.  
  223. staticke smerovanie na R5 - musime ho opingat odvsadial
  224. #R5
  225. SIET MASKA OUT_INT NEXT_HOP
  226. // ip route 10.0.0.0 255.0.0.0 fa0/1 10.0.15.1
  227. ip route 0.0.0.0 0.0.0.0 fa0/1 10.0.15.1
  228. #R1
  229. ip route 10.255.255.5 255.255.255.255 fa0/1 10.0.15.2
  230. potom do OSPF-ka treba zapnut redistribuciu statiky
  231.  
  232.  
  233. na interfejsoch znizit hello a dead intervaly
  234.  
  235.  
  236. area 1 nastavit ako tottaly stubby
  237. #R8
  238. area 1 stub
  239. #R3
  240. area 1 stub no-summary
  241.  
  242. area 3 ako stub
  243. #R4 a #R10
  244. area 3 stub
  245.  
  246.  
  247. kontrola:
  248.  
  249. sh ip protocols
  250. sh ip ospf ?
  251. sh ip ospf int brief
  252. sh ip ospf int INTERFEJS
  253. sh ip ospf database (router self-originate)
  254. sh ip ospf database (router adv-router RID)
  255. sh ip ospf database network adv-router RID
  256. sh ip ospf neig //musi obsahovat vsetky susedne routre - IPcky susedov: rovnaka siet, maska, area
  257. sh ip route (ospf)
  258. sh ip neigh
  259.  
  260.  
  261.  
  262. nastavenie passive interface
  263.  
  264. router ospf 1
  265. passive-interface l0
  266.  
  267. en
  268. copy run start
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement