Advertisement
Guest User

Untitled

a guest
Aug 29th, 2015
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.39 KB | None | 0 0
  1. en --> conf t
  2. switch(config)#hostname "naam"
  3.  
  4. maak vlan 5 aan
  5. switch(config)#vlan 5
  6.  
  7. save configuration
  8. copy run start
  9.  
  10. zet switchpoorten op trunk
  11. en-->conf t
  12. int gi1/1
  13. switchport mode trunk
  14. switchport trunk allowed vlan 1-1005
  15.  
  16. change clockrate on interface
  17. clockrate
  18.  
  19. ==========================================
  20. STP
  21. ==========================================
  22. #show spanning-tree
  23. config spanning-tree vlan 1 priority #
  24. config spanning-tree vlan 1 root primary
  25. config spanning-tree vlan 1 root secondary
  26.  
  27.  
  28.  
  29. designated port= de poort richting de root bridge met de minste kost
  30.  
  31.  
  32. ==========================================
  33. PVST+ (Per VLAN Spanning Tree plus)
  34. ==========================================
  35. voeg de vlans toe die ge nodig hebt
  36. switch(config)#vlan 5
  37.  
  38. enable pvst+ protocol
  39. switch(config)#spanning-tree mode pvst
  40.  
  41.  
  42.  
  43. waarschijnlijk moet ge uw poorte van de switches naar trunk zette(remember to allow vlan)
  44. en-->conf t
  45. int gi1/1
  46. switchport mode trunk
  47. switchport trunk allowed vlan 1-1005
  48.  
  49.  
  50.  
  51. Zorg dat deze switch the root bridge wordt
  52. switch(config)#spanning-tree vlan <num> priority <num>
  53. switch(config)#spanning-tree vlan <num> root primary
  54. switch(config)#spanning-tree vlan <num> root secondary
  55. =================================
  56. ENABLE BPDUGUARD AND PORTFAST
  57. ===============================
  58.  
  59. en-->conf t
  60. int fa0/1
  61. switchport mode access
  62. switchport access vlan 1
  63. spanning-tree portfast
  64. spanning-tree bpduguard
  65. ============================================
  66. RAPID-PVST+ protocol
  67. ============================================
  68.  
  69. in switch conf
  70. spanning-tree mode rapid-pvst
  71.  
  72. ------------------------------------------
  73. switch to switch ports= non edge ports
  74. for non edge ports
  75.  
  76. go to the interface
  77. spanning-tree link-type point-to-point
  78. ------------------------------------------
  79.  
  80.  
  81.  
  82.  
  83. switch to host = edge ports
  84.  
  85.  
  86.  
  87. OSPF
  88.  
  89. R1#show ip ospf neighbor <--- help page <--- shows your neighbour routers
  90. R1#show ip protocols <---- help page
  91. R1#show ip ospf interface <----- help page
  92.  
  93. set bandwidth on interface
  94. en-->conf t
  95. int fa0/1
  96. bandwidth 10000000
  97. exit
  98.  
  99. set ospf priority to force DR
  100. ip ospf priority 50
  101.  
  102. -----------------------------------------------------------
  103. turn on router ospf protocol
  104. router ospf 10 --> enter config router mode
  105. router-id 1.1.1.1 -->set router id
  106. auto-cost reference-bandwidth 10000
  107.  
  108. advertise directly connected networks
  109. network 172.16.10.0 0.0.0.255 area 0
  110. 172.16.3.0 0.0.0.3 area 0
  111. passive-interface g0/0 <-- on the port that connects the hosts to this switch
  112.  
  113.  
  114.  
  115. default-information originate stuurt default routes naar de andere ospf routers, zodat zij die ook wete
  116.  
  117.  
  118. ----------------------------------------------------------------------------
  119. ======================================
  120. OSPFv3 <--- ospf for ipv6
  121. ======================================
  122. ipv6 router ospf 10
  123. router-id 1.1.1.1
  124. auto-cost reference-bandwidth 1000
  125.  
  126. interface g0/0
  127. bandwidth 1000000
  128. ipv6 ospf 10 area 0
  129.  
  130. interface serial0/0/0
  131. ipv6 ospf 10 area 0
  132. end
  133.  
  134.  
  135. ==============================================================================
  136. EIGRP
  137. =============================================================================
  138. enable conf t
  139. router eigrp 1
  140. network 192.168.5.0 255.255.255.128--> 192.168.5.0 0.0.0.127
  141.  
  142.  
  143.  
  144. =============
  145. etherchannel
  146. =============
  147.  
  148. show etherchannel<-- help page
  149.  
  150. hostname s1
  151. set up the vlans on the switch
  152. vlan 10
  153. vlan 20
  154.  
  155. set up the host ports
  156. int f0f/1
  157. switchport mode access
  158. switchport access vlan 10
  159.  
  160.  
  161. set up the switch ports
  162.  
  163. int range g0/1-2
  164.  
  165. channel-group 1 mode ?ACTIVE for lacp or passive if you dont give a shit
  166. desirable for pagp or auto if you dont give a shit
  167.  
  168.  
  169.  
  170. enter port channel interface
  171.  
  172. interface port channel 1
  173. switchport mode trunk
  174. switchport trunk allowed vlan 10,20
  175.  
  176. extra notes
  177. zorg dat ge dezelfde soorten kabels,
  178. zorg dat uw configuraties aan beide kanten hetzeelfde zijn,
  179.  
  180. =====================================================================
  181. CLI Command Examples
  182.  
  183. S1(config)# vlan 10
  184. S1(config-vlan)# vlan 20
  185. S1(config-vlan)# exit
  186. S1(config)# int f0/1
  187. S1(config-if)# switchport mode access
  188. S1(config-if)# switchport access vlan 10
  189. S1(config-if)# int f0/10
  190. S1(config-if)# switchport mode access
  191. S1(config-if)# switchport access vlan 20
  192. <repeat commands above on S2>
  193.  
  194. S1(config)# int range g0/1-2
  195. S1(config-if)# channel-group 1 mode active
  196. S1(config-if)# exit
  197. S1(config)# int port-channel 1
  198. S1(config-if)# switchport mode trunk
  199. S1(config-if)# switchport trunk allowed vlan 10,20
  200.  
  201. S2(config)# int range g0/1-2
  202. S2(config-if)# channel-group 1 mode passive
  203. S2(config-if)# exit
  204. S2(config)# int port-channel 1
  205. S2(config-if)# switchport mode trunk
  206. S2(config-if)# switchport trunk allowed vlan 10,20
  207.  
  208. S3(config)# vlan 10
  209. S3(config-vlan)# vlan 20
  210.  
  211. S3(config)# int range f0/21-24
  212. S3(config-if)# channel-group 2 mode desirable
  213. S3(config-if)# exit
  214. S3(config)# int port-channel 2
  215. S3(config-if)# switchport mode trunk
  216. S3(config-if)# switchport trunk allowed vlan 10,20
  217.  
  218. S2(config)# int range f0/21-24
  219. S2(config-if)# channel-group 2 mode auto
  220. S2(config-if)# exit
  221. S2(config)# int port-channel 2
  222. S2(config-if)# switchport mode trunk
  223. S2(config-if)# switchport trunk allowed vlan 10,20
  224.  
  225. S3(config)# int range f0/17-20
  226. S3(config-if)# channel-group 3 mode on
  227. S3(config-if)# exit
  228. S3(config)# int port-channel 3
  229. S3(config-if)# switchport mode trunk
  230. S3(config-if)# switchport trunk allowed vlan 10,20
  231.  
  232. S1(config)# int range f0/17-20
  233. S1(config-if)# channel-group 3 mode on
  234. S1(config-if)# exit
  235. S1(config)# int port-channel 3
  236. S1(config-if)# switchport mode trunk
  237. S1(config-if)# switchport trunk allowed vlan 10,20
  238.  
  239. ==========================================================
  240.  
  241. In the event of a network failure EIGRP remembers available backup routes and fails over almost immediately, where as OSPF needs to re-run the SPF algorithm to find any "backup" routes which results in extra processor cycles.
  242.  
  243. EIGRP cuts out processor cycles by learning only the best routes from its neighbors (routing by rumor) and because of this it does not have an entire view of all the paths to all the networks, it rather has a view of the network based on its neighbors view. OSPF neighbors send all info to the DR and BDR which then update all of the other neighbors in the area. This results in all OSFP routers in the area knowing about all the paths to all the networks at the same time and all routers in the area have the exact same view of the entire network.
  244.  
  245. With OSPF you would need to limit each area to 500 Routers (I think…please check that figure) due to the overhead of the SPF algorithm. I don’t think EIGRP suffers from a limitation to the amount of routers you can place…this one I am not 100% about (Perhaps one of the CCIE’s could comment on this point).
  246.  
  247.  
  248. EIGRP is Cisco proprietary where as OSPF is industry standard and plays nicely with other vendor routers.
  249.  
  250. In EIGRP you can summarize networks on any EIGRP router in the network however with OSPF you can only perform summarization on the ABR and ASBR routers.
  251.  
  252. EIGRP supports un-equal load balancing where as OSPF does not.
  253.  
  254. EIGRP (Distance vector) like RIP has the ability to turn off the auto-summary feature which advertizes networks at their classfull boundary by default. OSPF does not advertize networks at their classfull boundary, nor does it have the ability to turn this feature on.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement