Category: CCNA Study Guide
Command Switchport Mode Access Use Sets interface to access mode. Syntax Switch(config-if)#switchport mode access Example In this example int fa0/2 is set to access mode on SW4. SW2#conf t Enter configuration commands, one per line. End with CNTL/Z. SW2(config)#int fa0/2 SW2(config-if)#switchport mode access
Command Spanning-Tree Vlan Priority Use This command is used to change the VLAN priority for spanning-tree. Syntax Switch(config)#spanning-tree vlan priority <#> Example In the below example we will configure SW2’s priority of Vlan 1 to be 4096. SW1(config)#spanning vlan 1 priority 4096 Notice the priority is now 4096 …
Command IP Default-Gateway Use Provides a default-gateway for the switch to send all unknown IP packets. Allows proper communication between switches and routers. Syntax Switch(config)#ip default-gateway <ip address> Example In the below example we will configure SW1 to use a default-gateway to ping R1’s loopback0. First, we will …
Command Spanning-Tree Backbonefast Use This command will prevent a switch that has lost its link to the root switch from becoming root when the root is still running. If switches receive an inferior BPDU from a switch, backbonefast will send them the proper information for reaching the root. …
Command VTP Mode Transparent Use VTP transparent mode allows the switch to modify its VLAN databasem but will not propagate changes from a server. Additionally, VTP transparent mode allows the switch to configure extended range VLANS (1006-4094). Syntax Switch(config)#vtp mode transparent Example In the below example we will …
Command Interface Range Use This is the modern way to configure VLANs. A useful feature is that you can configure a range of VLANs with a single command. Syntax Switch(config)#interface range <range> Options < – > Allows for a continuous range to be specified such as interface range …
Command Spanning-Tree VLAN Root Secondary Use This command sets the switch to become backup root for a given VLAN. It works by lowering the priority of the switch until it becomes one priority higher then the root, so it will take over if the root fails. Once the …
Command Spanning-Tree Portfast Use This command essentially disables spanning-tree on an interface and brings it immediately into the forwarding state. Only use this command on access ports Syntax Switch(config-if)#spanning-tree portfast Example In the below example we will configure SW1’s Fa0/2 to use port-fast to immediately skip to the …
Command VTP Password Use This command secures VTP updates by setting a secure password. Syntax Switch(config)#vtp password <password> Example In the below example we will set a password of ‘cisco’ for the VTP domain. SW1(config)#vtp password cisco Setting device VLAN database password to cisco SW2(config)#vtp password cisco Setting …
Command VTP Mode Client Use VTP client mode doesn’t allow you to create any VLANs. all VLANs must be learned from a server switch. This prevents the switch from accidently propogating VLANs throughout the network. Another use is to prevent an older switch from wiping out a server’s …