5.4 Troubleshooting Tools
Basic Network Device Commands
📘CompTIA Network+ (N10-009)
What is show config?
- The
show configcommand is a network device command used on devices like routers, switches, and firewalls. - Its purpose is to display the current configuration of the device.
- It is a read-only command, meaning it does not change anything on the device—it only shows information.
Think of it as opening a device’s settings to see what is currently set up.
Where is it used?
- On routers and switches (Cisco, Juniper, HP, etc.).
- Typically in Command Line Interface (CLI) mode.
- Helps network administrators troubleshoot network problems or verify configurations.
What does show config display?
When you run show config, you can see:
- Device Hostname
- The name of the device on the network.
- Example:
Router1orSwitch2.
- Interface Settings
- Shows all the interfaces (ports) on the device.
- Includes IP addresses, subnet masks, and status (up or down).
- Example:
FastEthernet0/1 is up, line protocol is up IP Address: 192.168.1.1 /24
- Routing Information
- Displays routing protocols that are configured (e.g., OSPF, RIP, EIGRP).
- Shows static routes and dynamic routing settings.
- VLAN Configuration
- On switches, it shows VLANs (Virtual LANs) and which ports belong to which VLAN.
- Example:
VLAN 10 - Sales VLAN 20 - IT
- Access Control Lists (ACLs)
- Shows any security rules applied to the device, like allowing or blocking traffic.
- Example:
permit ip 192.168.1.0 0.0.0.255 any deny ip any any
- Other Device Settings
- Default gateways
- SNMP settings
- Passwords or login configurations
- Any other special configurations applied to the device
Why is show config important?
- Troubleshooting
- Helps identify if a device misconfiguration is causing network issues.
- Example: If an interface is down or an IP address is incorrect.
- Verification
- Before making changes, network admins can check the current configuration.
- Ensures new changes won’t conflict with existing settings.
- Documentation
- Useful for network documentation and auditing.
- Network teams often export the configuration using this command.
How to use it?
- Log into the device via CLI.
- Enter privileged mode if needed:
enable - Type the command:
show config - Review the output carefully:
- Check interfaces, VLANs, routing, ACLs, etc.
- Look for errors or misconfigurations.
Example Output on a Router:
hostname Router1
!
interface FastEthernet0/0
ip address 192.168.1.1 255.255.255.0
no shutdown
!
interface FastEthernet0/1
ip address 10.0.0.1 255.255.255.0
shutdown
!
router ospf 1
network 192.168.1.0 0.0.0.255 area 0
!
line vty 0 4
login local
!
end
What you can learn from this:
- Router name → Router1
- Interface status → FastEthernet0/0 is active, 0/1 is shutdown
- IP addresses → 192.168.1.1 and 10.0.0.1
- Routing protocol → OSPF configured for 192.168.1.0/24
Exam Tips for CompTIA Network+
- Remember:
show configshows the current running configuration of the device. - Distinguish it from
show running-configorshow startup-config:show running-config→ currently active configuration in RAMshow startup-config→ saved configuration in NVRAM- Some vendors use
show configas a shortcut or alias.
- Focus on troubleshooting:
- Be able to read and interpret interfaces, IP addresses, VLANs, and routing information.
- Multiple-choice questions may ask:
- Which command helps verify interface IP addresses? → show config
- Which command allows checking ACLs applied? → show config
- Remember the command does not modify the device—it is read-only.
✅ Summary in Simple Terms
- Command:
show config - Purpose: Displays current device configuration.
- Use: Troubleshoot, verify, and document device settings.
- Shows: Hostname, interfaces, IPs, routing, VLANs, ACLs, and other settings.
- Exam Focus: Recognize what the command shows and how it helps troubleshoot networks.
