Category: CCNA Study Guide

Show Port-Security Command on CISCO Router/Switch

Command Show Port-Sec Use Shows the port-security status on the switch / interface. Syntax Show#show port-sec Or Show#show port-sec <int> Example This first example is the output of show port-sec on SW3. SW3#show port-sec Secure Port MaxSecureAddr CurrentAddr SecurityViolation Security Action (Count) (Count) (Count) ————————————————————————— Fa0/2 1 1 2 Shutdown ————————————————————————— …

Show Spanning-Tree Command on CISCO Router/Switch

Command Show Spanning-Tree Use Displays the spanning tree configuration on the switch. Syntax Switch#show spanning-tree Example In this example, the spanning tree configuration for VLAN 1 is displayed on SW3. SW3#show spanning-tree vlan 1VLAN0001 Spanning tree enabled protocol ieee Root ID Priority 32769 Address 0018.b973.fc80 Cost 19 Port …

Show Vlan Command on CISCO Router/Switch

Command Show Vlan Use Displays the current VLAN configuration on the switch. Syntax Switch#show vlan Example Here, the VLAN configuration is displayed for SW3. VLAN Name Status Ports —- ——————————– ——— ——————————- 1 default active Fa0/1, Fa0/2, Fa0/3, Fa0/4 Fa0/5, Fa0/6, Fa0/7, Fa0/8 Fa0/9, Fa0/10, Fa0/11, Fa0/12 Fa0/13, …

Switchport Port-Security Mac-Address Command on CISCO Router/Switch

Command Switchport Port-Security Mac-Address Use Sets the mac-address(es) that causes port-security violation. Syntax Switch(config-if)#switchport port-security mac-address <h.h.h.h> Or Switch(config-if)#switchport port-security mac-address sticky Use sticky in conjunction with switchport port-security maximum to have the switch learn which mac-addresses to allow. For example, if you set switchport port-security maximum 5, then the switch will learn and allow …

Switchport Trunk Encapsulation isl Command on CISCO Router/Switch

Command Switchport Trunk Encapsulation isl Use Enables ISL trunking encapsulation on the interface. Syntax Switch(config-if)#switchport trunk encapsulation isl Example In this example, isl trunk encapsulation is enabled SW3’s fa0/2. SW3(config)#int fa0/2 SW3(config-if)#switchport trunk encapsulation isl Next, the trunk information is displayed for SW3. SW3(config-if)#do show interface trunkPort Mode …

Switchport Port-Security Maximum Command on CISCO Router/Switch

Command Switchport Port-Security Maximum Use Sets the maximum number of mac addresses before a violation is triggered. Syntax Switch(config-if)#switchport port-security maximum <1-6272> Example In this example, the maximum mac addresses for int fa0/2 is set to 2 for SW3. SW3#conf t SW3(config-if)#int fa0/2 SW3(config-if)#switchport port-security maximum 2 Next, 2 …