"Data Collation" Cisco [STP]
STP{STP 802.1D--------------sh mac address-table sh int vlan 1sh Spanning-treestate: blocking, listening, learning, forwarding, disabledswitch (config) #int f0/1switch (config-if) #switchport port-security mac-address sticky // The first two addresses that enter the port are static address switch (CONFIG-IF) #switchport port-security mac-address maximum 2 //can only use 2 Macswitch (config-if) #switchport port-security violation shutdown //violation to close switch (config) #spanning-tree vlan 1 priority 4096 //setup root bridgeswitch (config) # spanning-tree vlan 1 root primary //directly set to root bridge//set a range with range, Configure multiple ports for Portfastswitch (config) #int range fastethernet 0/1 - 12switch (config-if-range ) #spanning-tree portfastrstp 802.1w--------------ETHERCHANNEL: PAGP (port aggregation Protocol),  LACP (link aGGREGATION CONTROL PROTOCOL, 802.3AD) #port securitys1#conf ts1 (config) #int range  F0/3-4S1 (Config-if-range) #switchport port-security maximum 1s1 (config-if-range) # Switchport port-security mac-address stickys1 (config-if-range) #switchport port-security violation shutdown#portfasts1 (config) #int range f0/3-4s1 (config-if-range) #spanning-tree portfast#bpduguard, bpdufilters1 (Config-if-range) #spanning-tree bpduguard enbales1 ( Config-if-range) #spanning-tree bpdufilter enable#uplinkfasts1 (config) #spanning-tree Uplinkfasts1#sh spanning-tree uplinkfast#backbonefasts1 (config) #spanning-tree backbonefasts1#sh spanning-tree backbonefast#rstpcore (config) #spanning-tree mode rapid-pvstcore (config) #do sh spanning-tree#etherchannelpagp:s1 (config) #int port-channel 1s1 (config-if) #int RANGE F0/1-2S1 (Config-if-range) #switchpoRT MODE TRUNKS1 (config-if-range) #switchport nonegotiate The organization switch automatically detects the link type and sets the relay type S1 (config-if-range) #channel-group 1 mode desirables1 (config-if-range) #do sh int fa0/1 etherchannels2 (config) #int port-channel 1s2 (config-if) #int RANGE F0/7-8S2 (Config-if-range) #switchport trunk encap dot1qs2 (config-if-range) #switchport mode trunks2 (Config-if-range) #switchport nonegotiates2 (config-if-range) #channel-group 1 mode desirables1 (Config-if-range) #do sh int port-channel 1}
"Data Collation" Cisco [STP]