command switch ccnp
TRANSCRIPT
Command
Switch(config)# spanning-tree vlan 5,100-200 priority 4096
Switch(config)# spanning-tree vlan vlan-id root {primary | secondary} [diameter diameter]
Switch(config-if)# spanning-tree [vlan vlan-list] port-priority port-priority
Switch(config)# spanning-tree uplinkfast [max-update-rate pkts-per-second]
Switch(config-if)# spanning-tree guard root
Switch(config-if)# spanning-tree portfast
Switch(config-if)# spanning-tree link-type point-to-point
Switch(config)# spanning-tree mode rapid-pvst
Switch(config)# spanning-tree mstinstance-id root{primary|secondary} [diameterdiameter]Switch(config)# spanning-tree mstinstance-id priority bridge-prioritySwitch(config)# spanning-tree mstinstance-id cost costSwitch(config)# spanning-tree mstinstance-id port-priority port-priority
Switch(config-if)# spanning-tree vlan 10 cost 2Switch# show spanning-tree interface type mod/num [cost]
Switch(config)# spanning-tree [vlan vlan-id] hello-time secondsSwitch(config)# spanning-tree [vlan vlan-id] forward-time secondsSwitch(config)# spanning-tree [vlan vlan-id] max-age seconds
Switch(config)# spanning-tree portfast bpduguard defaultSwitch(config-if)# [no] spanning-tree bpduguard enable
Switch(config)# spanning-tree loopguard defaultSwitch(config-if)# [no] spanning-tree guard loop
Switch(config)# spanning-tree mode mstSwitch(config)# spanning-tree mst configurationSwitch(config-mst)# name nameSwitch(config-mst)# revision versionSwitch(config-mst)# instance instance-id vlan vlan-list
Switch(config)# spanning-tree mst hello-timesecondsSwitch(config)# spanning-tree mst forward-timesecondsSwitch(config)# spanning-tree mst max-ageseconds
Mean
Set up priority
Force switch to become root bridge
To setup cost
To setup port priority
To setup hello-time, forward-time, max-age
To setup port fast in RSTP
To force the port to act as a point-to-point link
To change the STP mode and begin using RPVST+
Set root bridge (macro).Set bridge priority.Set port cost. Set port priority.
Set STP timers
Enable MST on the switchEnter the MST configuration modeAssign a region configuration name (up to 32 characters)Assign a region configuration revision number (0 to 65,535)Map VLANs to an MST instance
Command
Switch(config)# vlan access-map map-name [sequence-number]
Switch(config-access-map)# action {drop | forward [capture] | redirect type mod/num}
Switch(config)# vlan filter map-name vlan-list vlan-list
Switch(config-access-map)# match ip address {acl-number | acl-name}Switch(config-access-map)# match ipx address {acl-number | acl-name}Switch(config-access-map)# match mac address acl-name
Mean
You define the VACL
Configure a matching condition with one of the following access map
Define the action with the following access map configuration command
Apply the VACL to a VLAN
Command
Mean
Command
ip helper-address 192.168.199.4
Switch(config)# ip dhcp excluded-address start-ip end-ipSwitch(config)# ip dhcp pool pool-nameSwitch(config-dhcp)# network ip-address subnet-maskSwitch(config-dhcp)# default-router ip-address [ip-address2] [ip-address3] …Switch(config-dhcp)# lease {infinite | {days [hours [minutes]]}}
Mean
Configuring an IOS DHCP Server
Configuring a DHCP Relay