--- title: NMP Lab 2 --- # Setup STP, ether channel setup topology p1 - s1 / \ s2 = s3 s: switch, p: pc ![](https://i.imgur.com/CFFergl.png) ##### *Options > Preferences > Port Labels Always Shown* ![](https://i.imgur.com/AozooeC.png) ## 1. stp config 40% ### setup portfast, bpdu guard s1 to p1 Go into switch0 and open CLI switch>en Switch#conf t Switch(config)#int fa0/1 Switch(config-if)#spanning-tree portfast Switch(config-if)#spanning-tree bpduguard enable Switch(config-if)#exit Switch(config)#spanning-tree mode rapid-pvst ### change stp mode to rstp for s1,s2,s3 Go into switch1 and open CLI switch>en Switch#conf t Switch(config)#spanning-tree mode rapid-pvst Go into switch2 and open CLI switch>en Switch#conf t Switch(config)#spanning-tree mode rapid-pvst ## 2. change root switch 40% ### show root bridge, blocked ports Go into switch0 and open CLI Switch(config)#exit Switch#show spanning-tree Go into switch1 and open CLI Switch(config)#exit Switch#show spanning-tree Go into switch2 and open CLI Switch(config)#exit Switch#show spanning-tree ### change root bridge Go into switch0 and open CLI Switch#conf t Switch(config)#spanning-tree vlan 1 root primary ## 3. setup ether channel 20% ### configure ether channel between s2,s3 Go into switch1 and open CLI Switch#conf t Switch(config)#int fa0/2 Switch(config-if)#channel1-group 1 mode on Switch(config-if)#int fa0/3 Switch(config-if)#channel1-group 1 mode on Go into switch2 and open CLI Switch#conf t Switch(config)#int fa0/2 Switch(config-if)#channel1-group 1 mode on Switch(config-if)#int fa0/3 Switch(config-if)#channel1-group 1 mode on Switch(config-if)#end Switch#show spanning-tree Go into switch1 and open CLI Switch(config-if)#end Switch#show spanning-tree ###### tags: `Network Management Practice` `CSnote`