Home
Flashcards
Preview
CCNP Switch Commands
Home
Get App
Take Quiz
Create
Find the location of a specific MAC address
show mac address-table dynamic address
mac-address
Display all MAC addresses learned on a specific interface
show mac address-table dynamic interace
type number
Display the current CAM table size
show mac adress-table count
Enter a static CAM table entry
mac address-table static
mac-address
vlan
vlay-id
interface
type number
Clear a CAM entry
clear mac address-table dynamic
[
address
mac-address
|
interface
type number
|
vlan
vlan-id
]
Select a Port
interface
type module/number
Select multiple ports
interface range
type module/number
[
type module/number...
]
or
interface range
tpe module/first-number - last-number
Define an interface macro
define interface-range
macro-name type module/number
or
Interface range macro
macro-name
Identify port
description
description-string
set port speed
speed {10 | 100 | 1000 | Auto}
Set port mode
duplex {auto | full | half}
Detect port error conditions
errdisable detect cause
[
all
|
cause-name
]
Automatically recover from errdisable
errdisable recovery cause
[
all
|
cause-name
]
errdisable recovery interval
seconds
Manually recover from errdisable
shutdown
no shutdown
Create a VLAN
vlan
vlan-num
name
vlan-name
Assign port to VLAN
interface
type module/number
switchport mode access
switchport access vlan
vlan-num
Configure a trunk
interface
tpe mod/port
switchport trunk encapsulation
{
isl
|
dot1q
|
negotiate
}
switchport trunk native vlan
vlan-id
switchport trunk allowed vlan {
vlan-list
|
all
| {
add
|
except
|
remove
}
vlan-list
}
switchport mode
{
trunk
|
dynamic
{
desirable
|
auto
}}
Verify VLAN configuration
show vlan id
vlan-id
Verify active trunk parameters
shwo interace
type
mod/num
trunk
Compare trunk configuration and active parameters
show interface
type mod/um
switchport
Verify DTP operation
show dtp
[
interface
type
mod/num
]
Display current VTP parameters, including the last advertising server
show vtp status
Displays VTP advertisement and pruning statistics
show vtp counters
Displays defined VLANs
show vlan brief
Displays trunkstatus, including pruning eligibility
show interface
type mod/num
pruning
Define the VTP domain
vtp domain
domain-name
Set the VTP mode
vtp mode
{server | client | transparent}
Define an optional VTP password
vtp password
password
Configure VTP version
vtp version
{1 | 2}
Enable VTP pruning
vtp pruning
Select VLANs elible for pruning on a trunk interface
interface
type mod/num
switchport trunk pruning vlan
{add | except | none |remove}
vlan-list
show current EtherChannel status of each member port
show etherchannel summary
show eitherchannel port
tiem stamps of EtherChannel changes
show etherchannel port-changes
detailed status about each EtherChannel component
show etherchannel detail
Load-balancing hashing algorithm
show etherchannel load-balance
Load-balancing port index used by hashing algorithm
show etherchannel port-channel
EtherChannel neighbors on each port
show
{pagp | lacp}
neighbor
LACP system ID
show lacp sys-id
Select a load-balancing method for the switch
port-channel load-balance
method
Use a PAgP mode on an interface
channel-protocol
pagp
channel-group
number
mode
{on | {{auto | desirable} [non-silent]}}
Assign the LACP system priority
lacp system priority
priority
Use an LACP mode on an interface
channel-protocol lacp
channel-group
number
mode
{on | passive | active}
lacp port-priority
priority
Enable an entire instance of STP
Global config command:
switch(config)#
spanning-tree vlan
vlan-id
Enable STP that has been disabled on a specific VLAN [on a specific port]
interface configuration command:
switch(config-if)#
spanning-tree vlan
vlan-id
View all possible STP parameters for all VLANs (port info is summarized)
switch#
show spanning-tree
View all possible STP information for all VLANs (port info is very detailed)
switch#
show spanning-tree detail
View the total number of switch ports currently in each of the STP states
switch#
show spanning-tree
[vlan
vlan-id
]
summary
Find the root bridge ID, the root port and the root path cost
switch#
show spanning-tree
[vlan
vlan
-
id
]
root
Show the bridge ID and STP timers for the local switch
switch#
show spanning-tree
[vlan
vlan-id
]
bridge
Show the STP activity on a specific interface
switch#
show spanning-tree interface
type port
Show the STP UplinkFast status
switch#
show spanning-tree uplinkfast
Show the STP BackboneFast status
switch#
show spanning-tree backbonefast
Enable STP
switch(config)#
spanning-tree
vlan-id
Set bridge priority
switch(config)#
spanning-tree vlan
vlan-id
priority
bridge-priority
Set root bridge (macro)
switch(config)#
spanning-tree vlan
vlan-id
root
{primary | secondary} [
diameter
diameter
]
Set port cost (interface command)
switch(config-if)#
spanning-tree
[
vlan
vlan-id
]
cost
cost
Set port priority (interface command)
switch(config-if)#
spanning-tree
[
vlan
vlan
-
id
]
port-prio
rity
port-priority
Set STP timers
switch(config)#
spanning-tree
[
vlan
vlan-id
]
hello-time
seconds
switch(config)# spanning-tree [vlan vlan-id]
forward-time
seconds
switch(config)#
spanning-tree
[
vlan
vlan-id
]
max-age
seconds
Set PortFast on an interface
switch(config-if)#
spanning-tree portfast
Set UplinkFast on a switch
switch(config)#
spanning-tree uplinkfast
[
max-update-rate
pkts-per-second
]
Set BackboneFast on a switch
switch(config)#
spanning-tree backbonefast
Enable Root Guard on per-port basis
switch(config-if)#
spanning-tree guard root
List the ports that have been labeled in an inconsistent state
switch#
show spanning-tree inconsistentports
Look for detailed reasons for inconsistencies
switch#
show spanning-tree interface
type mod/num
[
detail
]
Display the global BPDU Guard, BPDU filter, and Loop Guard States
switch#
show spanning-tree summary
Display the UDLD status on one or all ports
switch#
show udld
[
t
ype mod/num
]
Reenable ports that UDLD aggressive mode has errdisabled
switch#
udld reset
Enable BPDU Guard
switch(config)#
spanning-tree portfast bpduguard default
or
switch(config-if)#
spanning-tree bpduguard enable
Enable Loop Guard
switch(config)#
spanning-tree loopguard default
or
switch(config-if)#
spanning-tree guard loop
Enable UDLD
switch(config)#
udld
{
enable | aggressive | message time
seconds
}
or
switch(config-if)#
udld
{enable | aggressive | disable}
Enable BPDU filtering
switch(config)#
spanning-tree bpdufilter default
or
switch(config-if)#
spanning-tree bpdufilter enable
Configure a port as an RSTP edge port
switch(config-if)#
spanning-tree portfast
Force a port to act as a point-to-point link
switch(config-if)#
spanning-tree link-type point-to-point
configure rapid STP
switch(config)#
spanning-tree mode rapid-pvst
Set root bridge (macro)
switch(config)#
spanning-tree mst
instance-id
root
{primary | secondary | diameter
diameter
}
Set bridge priority
swtich(config)#
spanning-tree mst
instance-id
prior
ity
bridge-priority
set port cost
switch(config)#
spanning-tree mst
instance-id
cost
cost
set port priority
switch(config)#
spanning-tree mst
instance-id
port-priority
port-priority
Enable MST on a switch
switch(config)#
spanning-ree mode mst
Enter MST configuration mode
switch(config)#
spanning-tree mst configuration
Name the MST region
switch(config-mst)#
name
na
me
Set the configuration revision number
switch(config-mst)#
revision
version
Display a ports L2 or L3 current status
switch#
show interface
type mod/num
switchport
Display FIB table entries related to speciic inerface or VLAN
switch# show ip cef [
type mod/num
|
vlan
vlan-id
] [
detail
]
Display the adjacency table contents
switch#
show adjacency
[
type mod/num
|
vlan
vlan-id
I] [
summary
|
detail
]
Author
jamieljones
ID
160750
Card Set
CCNP Switch Commands
Description
CCNP Switch Commands
Updated
2012-07-14T19:50:02Z
Home
Flashcards
Preview