Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- en --> conf t
- switch(config)#hostname "naam"
- maak vlan 5 aan
- switch(config)#vlan 5
- save configuration
- copy run start
- zet switchpoorten op trunk
- en-->conf t
- int gi1/1
- switchport mode trunk
- switchport trunk allowed vlan 1-1005
- change clockrate on interface
- clockrate
- ==========================================
- STP
- ==========================================
- #show spanning-tree
- config spanning-tree vlan 1 priority #
- config spanning-tree vlan 1 root primary
- config spanning-tree vlan 1 root secondary
- designated port= de poort richting de root bridge met de minste kost
- ==========================================
- PVST+ (Per VLAN Spanning Tree plus)
- ==========================================
- voeg de vlans toe die ge nodig hebt
- switch(config)#vlan 5
- enable pvst+ protocol
- switch(config)#spanning-tree mode pvst
- waarschijnlijk moet ge uw poorte van de switches naar trunk zette(remember to allow vlan)
- en-->conf t
- int gi1/1
- switchport mode trunk
- switchport trunk allowed vlan 1-1005
- Zorg dat deze switch the root bridge wordt
- switch(config)#spanning-tree vlan <num> priority <num>
- switch(config)#spanning-tree vlan <num> root primary
- switch(config)#spanning-tree vlan <num> root secondary
- =================================
- ENABLE BPDUGUARD AND PORTFAST
- ===============================
- en-->conf t
- int fa0/1
- switchport mode access
- switchport access vlan 1
- spanning-tree portfast
- spanning-tree bpduguard
- ============================================
- RAPID-PVST+ protocol
- ============================================
- in switch conf
- spanning-tree mode rapid-pvst
- ------------------------------------------
- switch to switch ports= non edge ports
- for non edge ports
- go to the interface
- spanning-tree link-type point-to-point
- ------------------------------------------
- switch to host = edge ports
- OSPF
- R1#show ip ospf neighbor <--- help page <--- shows your neighbour routers
- R1#show ip protocols <---- help page
- R1#show ip ospf interface <----- help page
- set bandwidth on interface
- en-->conf t
- int fa0/1
- bandwidth 10000000
- exit
- set ospf priority to force DR
- ip ospf priority 50
- -----------------------------------------------------------
- turn on router ospf protocol
- router ospf 10 --> enter config router mode
- router-id 1.1.1.1 -->set router id
- auto-cost reference-bandwidth 10000
- advertise directly connected networks
- network 172.16.10.0 0.0.0.255 area 0
- 172.16.3.0 0.0.0.3 area 0
- passive-interface g0/0 <-- on the port that connects the hosts to this switch
- default-information originate stuurt default routes naar de andere ospf routers, zodat zij die ook wete
- ----------------------------------------------------------------------------
- ======================================
- OSPFv3 <--- ospf for ipv6
- ======================================
- ipv6 router ospf 10
- router-id 1.1.1.1
- auto-cost reference-bandwidth 1000
- interface g0/0
- bandwidth 1000000
- ipv6 ospf 10 area 0
- interface serial0/0/0
- ipv6 ospf 10 area 0
- end
- ==============================================================================
- EIGRP
- =============================================================================
- enable conf t
- router eigrp 1
- network 192.168.5.0 255.255.255.128--> 192.168.5.0 0.0.0.127
- =============
- etherchannel
- =============
- show etherchannel<-- help page
- hostname s1
- set up the vlans on the switch
- vlan 10
- vlan 20
- set up the host ports
- int f0f/1
- switchport mode access
- switchport access vlan 10
- set up the switch ports
- int range g0/1-2
- channel-group 1 mode ?ACTIVE for lacp or passive if you dont give a shit
- desirable for pagp or auto if you dont give a shit
- enter port channel interface
- interface port channel 1
- switchport mode trunk
- switchport trunk allowed vlan 10,20
- extra notes
- zorg dat ge dezelfde soorten kabels,
- zorg dat uw configuraties aan beide kanten hetzeelfde zijn,
- =====================================================================
- CLI Command Examples
- S1(config)# vlan 10
- S1(config-vlan)# vlan 20
- S1(config-vlan)# exit
- S1(config)# int f0/1
- S1(config-if)# switchport mode access
- S1(config-if)# switchport access vlan 10
- S1(config-if)# int f0/10
- S1(config-if)# switchport mode access
- S1(config-if)# switchport access vlan 20
- <repeat commands above on S2>
- S1(config)# int range g0/1-2
- S1(config-if)# channel-group 1 mode active
- S1(config-if)# exit
- S1(config)# int port-channel 1
- S1(config-if)# switchport mode trunk
- S1(config-if)# switchport trunk allowed vlan 10,20
- S2(config)# int range g0/1-2
- S2(config-if)# channel-group 1 mode passive
- S2(config-if)# exit
- S2(config)# int port-channel 1
- S2(config-if)# switchport mode trunk
- S2(config-if)# switchport trunk allowed vlan 10,20
- S3(config)# vlan 10
- S3(config-vlan)# vlan 20
- S3(config)# int range f0/21-24
- S3(config-if)# channel-group 2 mode desirable
- S3(config-if)# exit
- S3(config)# int port-channel 2
- S3(config-if)# switchport mode trunk
- S3(config-if)# switchport trunk allowed vlan 10,20
- S2(config)# int range f0/21-24
- S2(config-if)# channel-group 2 mode auto
- S2(config-if)# exit
- S2(config)# int port-channel 2
- S2(config-if)# switchport mode trunk
- S2(config-if)# switchport trunk allowed vlan 10,20
- S3(config)# int range f0/17-20
- S3(config-if)# channel-group 3 mode on
- S3(config-if)# exit
- S3(config)# int port-channel 3
- S3(config-if)# switchport mode trunk
- S3(config-if)# switchport trunk allowed vlan 10,20
- S1(config)# int range f0/17-20
- S1(config-if)# channel-group 3 mode on
- S1(config-if)# exit
- S1(config)# int port-channel 3
- S1(config-if)# switchport mode trunk
- S1(config-if)# switchport trunk allowed vlan 10,20
- ==========================================================
- 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.
- 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.
- 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).
- EIGRP is Cisco proprietary where as OSPF is industry standard and plays nicely with other vendor routers.
- 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.
- EIGRP supports un-equal load balancing where as OSPF does not.
- 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