Cli Commands Flashcards
(6 cards)
Which CLI command displays all VLANs configured on a switch?
- show interfaces
- show ip interface brief
- show vlan brief
- vlan database
Correct Answer: show vlan brief
Explanation: Lists all VLANs and their port assignments.
Practical Use: Verifies VLAN setup.
Incorrect:
- show interfaces: Displays interface status only.
- show ip interface brief: Shows IPs/interfaces, not VLANs.
- vlan database: Enters VLAN config mode.
Objective: N10-009 Network Implementation
Follow-Up: What command shows trunk port status?
What does the command ip routing
do on a Layer 3 switch?
- Enables OSPF
- Configures static route
- Enables routing functionality
- Assigns VLANs
Correct Answer: Enables routing functionality
Explanation: Activates Layer 3 routing on the switch.
Practical Use: Allows routing between VLANs.
Incorrect:
- Enables OSPF: router ospf
does that.
- Configures static route: ip route
is used.
- Assigns VLANs: Done with switchport access vlan
.
Objective: N10-009 Network Implementation
Follow-Up: What command assigns an IP to a VLAN interface?
Command Set:
configure terminal
interface vlan 10
ip address 192.168.10.1 255.255.255.0
no shutdown
What does this set of commands accomplish?
Correct Answer: Creates an SVI for VLAN 10 and assigns it an IP
Explanation: It enables inter-VLAN routing via SVI.
Practical Use: Makes VLAN 10 reachable via IP.
Objective: N10-009 Network Implementation
Follow-Up: What command enables global routing on this switch?
Command Set:
interface range fa0/1 - 4
switchport mode access
switchport access vlan 20
What is the result of these commands?
Correct Answer: Assigns ports Fa0/1 to Fa0/4 to VLAN 20 in access mode
Explanation: This setup connects end devices to VLAN 20.
Objective: N10-009 Network Implementation
Follow-Up: What command confirms which VLAN a port is assigned to?
Command Set:
interface gig0/1
switchport trunk encapsulation dot1q
switchport mode trunk
switchport trunk allowed vlan 10,20
What does this command set achieve?
Correct Answer: Configures Gig0/1 as a trunk allowing VLANs 10 and 20
Explanation: Required for VLAN communication between switches.
Objective: N10-009 Network Implementation
Follow-Up: What command verifies allowed VLANs on a trunk?
Command Set:
show mac address-table
What does this command display?
Correct Answer: Shows MAC address-to-port associations
Explanation: Useful for diagnosing switch-level communication.
Objective: N10-009 Network Troubleshooting
Follow-Up: What command clears the MAC address table?