Author: ITExamAnswers Editorial Team
The ITExamAnswers Editorial Team is a dedicated group of certified IT professionals and network engineers. We rigorously review, verify, and update all exam materials to ensure you receive the most accurate and reliable resources for your certification journey.
Command Spanning-Tree Cost Use This command modifies the interface cost used in calculating the root port for spanning-tree on a switch. Lower is better. Syntax Switch(config-if)#spanning-tree cost <cost> Example In the below example we will configure SW2 to use Fa0/24 as the root port for all VLANs. CopySW2(config)#do …
Command Spanning-Tree Vlan Port-Priority Use If a loop occurs, spanning tree uses the port priority when selecting an interface to put into the forwarding state. Lower is better Syntax Switch(config-if)#spanning-tree vlan <vlan range> port-priority <priority> Example In the below example we will configure SW2 to prefer to use …
Command Switchport Access Vlan Use Sets the VLAN that the interface belongs to. Syntax Switch(config-if)#switchport access vlan <vlan # > Example In this example, port fa0/2 on SW3 is set to VLAN 10. Here is the VLAN information on SW3 before the changes. Notice that all interfaces belong …
Command Switchport Trunk Native Vlan Use Changes the native VLAN for dot1q encapsulation. Syntax Switch(config-if)#switchport trunk native vlan <vlan #> Example In this example, the native VLAN for int fa0/2 is changed. CopySW#conf t SW#int fa0/2 SW3(config-if)#switchport trunk native vlan 55 Here’s the trunking information for SW3. CopySW3(config-if)#do show …
Command Spanning-Tree Vlan Cost Use This command modifies the interface cost used in calculating the root port for spanning-tree on a switch for a specified vlan range. Lower is better. Syntax Switch(config-if)#spanning-tree vlan <vlan range> cost <cost> Example In the below example we will configure SW2 to use …
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. CopySW2#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. CopySW1(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 …