Range
Switch(config)# interface range fastEthernet 1/9 - 11
Switch(config-if-range)# shutdown
*Mar 1 00:17:50.367: %LINK-5-CHANGED: Interface FastEthernet1/9, changed state to administratively down
*Mar 1 00:17:50.375: %LINK-5-CHANGED: Interface FastEthernet1/10, changed state to administratively down
*Mar 1 00:17:50.379: %LINK-5-CHANGED: Interface FastEthernet1/11, changed state to administratively down
Switch(config)# interface range fastEthernet 1/12 , fastEthernet 1/14
Switch(config-if-range)# no shutdown
Switch(config-if-range)# shutdown
*Mar 1 00:19:24.579: %LINK-5-CHANGED: Interface FastEthernet1/12, changed state to administratively down
*Mar 1 00:19:24.587: %LINK-5-CHANGED: Interface FastEthernet1/14, changed state to administratively down
Macro
Switch(config)# define interface-range VLAN10 fastEthernet 1/0 - 4
Switch(config)# interface range macro VLAN10
Switch(config-if-range)# shutdown
*Mar 1 00:12:32.727: %LINK-5-CHANGED: Interface FastEthernet1/0, changed state to administratively down
*Mar 1 00:12:32.735: %LINK-5-CHANGED: Interface FastEthernet1/1, changed state to administratively down
*Mar 1 00:12:32.743: %LINK-5-CHANGED: Interface FastEthernet1/2, changed state to administratively down
*Mar 1 00:12:32.747: %LINK-5-CHANGED: Interface FastEthernet1/3, changed state to administratively down
*Mar 1 00:12:32.755: %LINK-5-CHANGED: Interface FastEthernet1/4, changed state to administratively down
Switch(config)# define interface-range VLAN5 fastEthernet 1/6 , fastEthernet 1/8
Switch(config)# interface range macro VLAN5
Switch(config-if-range)# shutdown
*Mar 1 00:15:45.783: %LINK-5-CHANGED: Interface FastEthernet1/6, changed state to administratively down
*Mar 1 00:15:45.787: %LINK-5-CHANGED: Interface FastEthernet1/8, changed state to administratively down
#Identifying Ports
Switch(config)# interface fastEthernet 1/0
Switch(config-if)# description PRINTER IN BLDG B, ROOM 12
Switch# show interfaces description | in Fa1/0
Fa1/0 admin down down PRINTER IN BLDG B, ROOM 12
Switch#show interfaces status | include 1/0
Port Name Status Vlan Duplex Speed Type
Fa1/0 PRINTER IN BLDG B, disabled 50 half 10 10/100BaseTX
#Speed
Switch(config)# interface fastEthernet 1/0
Switch(config-if)# speed [ 10 | 100 | 1000 | auto ]
Switch# show interfaces fastEthernet 1/0 | include speed
Auto-duplex, Auto-speed
Switch# show interfaces fastEthernet 1/0 | include BW
MTU 1500 bytes, BW 100000 Kbit/sec, DLY 100 usec,
Switch#show interfaces status | include 1/0
Port Name Status Vlan Duplex Speed Type
Fa1/0 PRINTER IN BLDG B, disabled 50 half 10 10/100BaseTX
Switch# show running-config interface fastEthernet 1/0
!
interface FastEthernet1/0
description PRINTER IN BLDG B, ROOM 12
shutdown
duplex half
speed 10
#Port Duplex Mode
Switch(config)# interface fastEthernet 1/0
Switch(config-if)# duplex [ auto | half | full ]
Switch# show interfaces fastEthernet 1/0 | include duplex
Auto-duplex, Auto-speed
Switch#show interfaces status | include 1/0
Port Name Status Vlan Duplex Speed Type
Fa1/0 PRINTER IN BLDG B, disabled 50 half 10 10/100BaseTX
#Reset an Interface to Default
R1(config)#interface fastEthernet 1/2
R1(config-if)#speed 10
R1(config-if)#duplex half
R1(config-if)#do show interface fa 1/2 | include duplex
Half-duplex, 10Mb/s
R1(config-if)#exit
R1(config)#default interface fastEthernet 1/2
Building configuration...
Interface FastEthernet1/2 set to default configuration
R1(config)#do show interface fa 1/2 | include duplex
Auto-duplex, Auto-speed
Switch(config)# errdisable detect cause [ all | cause-name ]
Switch(config)# errdisable detect cause bpduguard
Switch(config)# errdisable recovery cause bpduguard
Switch(config)# errdisable recovery interval 180 <30-86400> (sec) 86400=24H
Switch# show errdisable detect | include Enabled
bpduguard Enabled
Switch# show errdisable recovery | include Enabled
bpduguard Enabled