60 CCNA Engineer Interview Questions: IOS CLI (2027)
60 CCNA engineer interview questions on Cisco IOS configuration and verification: VLANs, trunks, OSPF, NAT, DHCP, ACLs, SSH and hands-on scenarios.
CCNA engineer interviews increasingly test whether you can configure and verify a Cisco device from the command line, not just define protocols. This page has 60 command-focused questions with direct answers on IOS basics, VLANs, trunks, STP, EtherChannel, routing, NAT, DHCP, ACLs, SSH and verification, grouped by experience level and followed by hands-on scenarios.
Most CCNA question banks ask "what is OSPF?". This one asks "which commands prove OSPF is working, and what do you look for in the output?". Use it alongside our other CCNA guides: scenario-based CCNA questions for troubleshooting stories, 150+ CCNA questions for definitions, and advanced CCNA questions for protocol depth. Commands follow Cisco IOS and IOS XE syntax; exact output varies by platform and release.
Key takeaways
- The CCNA exam is Cisco 200-301, a 120-minute exam covering network fundamentals, network access, IP connectivity, IP services, security fundamentals, and automation and programmability, per Cisco's exam page.
- Interviewers for engineer roles want the verification command as much as the configuration command.
- Know the IOS modes and prompts, because answers often depend on where a command is entered.
- Expect at least one live or whiteboard task: configure a VLAN and trunk, a static or OSPF route, NAT overload, or SSH.
- Always mention saving the configuration and checking your work.
Command quick reference
| Task | Verification command |
|---|---|
| Interface status and IPs | show ip interface brief |
| VLANs and access ports | show vlan brief |
| Trunks and allowed VLANs | show interfaces trunk |
| Spanning tree | show spanning-tree vlan 10 |
| EtherChannel | show etherchannel summary |
| Routing table | show ip route |
| OSPF neighbors | show ip ospf neighbor |
| NAT | show ip nat translations |
| DHCP leases | show ip dhcp binding |
| ACL hits | show access-lists |
| Neighbors | show cdp neighbors / show lldp neighbors |
| SSH | show ip ssh |
Questions for freshers (1 to 20)
1. What are the main IOS command modes and their prompts?
User EXEC (Router>) for basic checks, privileged EXEC (Router#) entered with enable, global configuration (Router(config)#) entered with configure terminal, and sub-modes such as interface (Router(config-if)#) and line (Router(config-line)#). exit goes up one level; end or Ctrl+Z returns to privileged EXEC.
2. What is the difference between running-config and startup-config?
running-config is the active configuration in RAM; changes apply immediately. startup-config is stored in NVRAM and loaded at boot. Unsaved changes are lost on reload. Save with copy running-config startup-config (or the older write memory).
3. Which command gives a quick summary of interfaces?
show ip interface brief lists each interface, its IP address, and its status and protocol. "up/up" means working. "administratively down" means the interface is shut down. "up/down" usually points to a Layer 2 problem such as an encapsulation mismatch or keepalive failure.
4. How do you assign an IP address to a router interface and enable it?
Router(config)# interface GigabitEthernet0/0
Router(config-if)# ip address 192.168.10.1 255.255.255.0
Router(config-if)# no shutdown
Router interfaces are shut down by default on many platforms, so no shutdown is needed.
5. How do you set the hostname and protect privileged mode?
hostname R1 sets the name. enable secret <password> protects privileged EXEC with a hashed password. Prefer enable secret over enable password, which is weaker. service password-encryption obscures other plain-text passwords in the config, but it is weak protection, not real encryption.
6. How do you set a login banner?
banner motd # Authorised access only #. The character after motd marks the start and end of the message. Legal teams often require a warning banner before login.
7. How do you create a VLAN and assign an access port?
Switch(config)# vlan 10
Switch(config-vlan)# name SALES
Switch(config)# interface FastEthernet0/5
Switch(config-if)# switchport mode access
Switch(config-if)# switchport access vlan 10
Verify with show vlan brief.
8. How do you configure a trunk port?
Switch(config)# interface GigabitEthernet0/1
Switch(config-if)# switchport mode trunk
Switch(config-if)# switchport trunk allowed vlan 10,20,30
Some switches that support both ISL and 802.1Q need switchport trunk encapsulation dot1q first. Verify with show interfaces trunk.
9. What does show vlan brief not show?
Trunk ports. It lists access ports per VLAN. Use show interfaces trunk to see trunk ports, the native VLAN and allowed VLANs.
10. How do you configure a default gateway on a switch?
On a Layer 2 switch, ip default-gateway 192.168.1.1 lets the management interface reach other subnets. Also give the management SVI an address, for example interface vlan 1, ip address 192.168.1.2 255.255.255.0, no shutdown.
11. How do you configure a static route and a default route?
ip route 10.20.0.0 255.255.0.0 192.168.1.2 sends that network to next hop 192.168.1.2. A default route is ip route 0.0.0.0 0.0.0.0 203.0.113.1. Verify with show ip route; static routes show the code S and the default appears as the gateway of last resort.
12. What do the codes in show ip route mean?
C is directly connected, L is the local interface address (/32), S is static, O is OSPF, D is EIGRP, R is RIP, and an asterisk marks a candidate default. The values in brackets, such as [110/2], are administrative distance and metric.
13. How do you test connectivity from a router?
ping 192.168.20.10 tests reachability; an exclamation mark is a reply and a dot is a timeout. traceroute 192.168.20.10 shows the hops. Extended ping (type ping alone) lets you choose a source interface, which matters when testing return routes.
14. What are CDP and LLDP, and how do you view neighbors?
CDP is Cisco's discovery protocol; LLDP is the IEEE 802.1AB standard. Both show directly connected devices. Use show cdp neighbors or show lldp neighbors; add detail for IP addresses and software versions. LLDP must often be enabled with lldp run.
15. How do you see the MAC address table?
show mac address-table lists learned MAC addresses with VLAN and port. Add dynamic, address or interface to filter. It shows where a host is connected.
16. How do you check ARP entries on a router?
show ip arp (or show arp) maps IP addresses to MAC addresses on connected networks. An "Incomplete" entry means the router sent ARP requests but got no reply.
17. How do you describe an interface and why?
description Uplink to CORE-SW1 Gi1/0/1 in interface mode. Descriptions appear in show interfaces and show interfaces description and save time during troubleshooting.
18. How do you view the IOS version and uptime?
show version shows the software release, uptime, the image file, the configuration register and hardware details. It is often the first command in any support case.
19. How do you disable DNS lookup of mistyped commands?
no ip domain-lookup. Without it, a mistyped word in privileged mode is treated as a hostname, and the router waits on a DNS lookup. Do not use this if the device needs DNS for other features.
20. How do you filter long show output?
Use pipes: show running-config | include ip route, | section router ospf, | begin interface or | exclude unassigned. Interviewers like seeing this because it shows real CLI habits.
Questions for 2 to 5 years of experience (21 to 45)
21. How do you configure single-area OSPF?
R1(config)# router ospf 1
R1(config-router)# router-id 1.1.1.1
R1(config-router)# network 10.0.12.0 0.0.0.255 area 0
R1(config-router)# passive-interface GigabitEthernet0/1
Alternatively, enable OSPF per interface with ip ospf 1 area 0. Passive interfaces advertise their network without sending hellos.
22. Which commands verify OSPF?
show ip ospf neighbor (look for FULL, or 2WAY between DROTHERs), show ip ospf interface brief (area, cost, state), show ip route ospf and show ip protocols (router ID, networks, passive interfaces).
23. OSPF neighbors are stuck in EXSTART or EXCHANGE. What do you check?
An MTU mismatch between the two interfaces is the classic cause. Compare show interfaces MTU on both sides and fix the mismatch. Duplicate router IDs can also cause adjacency problems.
24. How do you change the OSPF cost on a link?
Set ip ospf cost 10 on the interface, or change the reference bandwidth under the process with auto-cost reference-bandwidth 10000 on every router so faster links get distinct costs.
25. How do you configure a router-on-a-stick?
R1(config)# interface Gi0/0.10
R1(config-subif)# encapsulation dot1Q 10
R1(config-subif)# ip address 192.168.10.1 255.255.255.0
R1(config)# interface Gi0/0.20
R1(config-subif)# encapsulation dot1Q 20
R1(config-subif)# ip address 192.168.20.1 255.255.255.0
The switch port facing the router must be a trunk carrying VLANs 10 and 20.
26. How do you configure inter-VLAN routing on a Layer 3 switch?
Enable routing with ip routing, then create SVIs: interface vlan 10, ip address 192.168.10.1 255.255.255.0, no shutdown. An SVI comes up only when the VLAN exists and at least one port in it is up.
27. How do you configure an LACP EtherChannel?
Switch(config)# interface range Gi0/1 - 2
Switch(config-if-range)# channel-group 1 mode active
Switch(config)# interface port-channel 1
Switch(config-if)# switchport mode trunk
active starts LACP negotiation; passive only responds. PAgP uses desirable and auto. Verify with show etherchannel summary and look for the SU and P flags.
28. Why might an EtherChannel not form?
Mismatched settings across member ports or between switches: speed, duplex, access VLAN, trunk allowed VLANs or native VLAN. Also mode pairs that never negotiate, such as passive on both ends or PAgP on one side and LACP on the other.
29. How do you make a switch the root bridge for a VLAN?
spanning-tree vlan 10 root primary lowers its priority, or set it directly with spanning-tree vlan 10 priority 4096. Priority must be a multiple of 4096. Verify with show spanning-tree vlan 10; the output says "This bridge is the root".
30. What do PortFast and BPDU Guard do, and how are they configured?
PortFast moves an access port straight to forwarding, skipping listening and learning. BPDU Guard err-disables the port if a BPDU arrives, which protects against someone plugging in a switch. Configure per port with spanning-tree portfast and spanning-tree bpduguard enable, or globally for PortFast ports with spanning-tree portfast bpduguard default.
31. How do you recover an err-disabled port?
Find the cause with show interfaces status err-disabled, remove it, then shutdown and no shutdown on the interface. Automatic recovery can be enabled with errdisable recovery cause bpduguard and an interval.
32. How do you configure port security?
Switch(config-if)# switchport mode access
Switch(config-if)# switchport port-security
Switch(config-if)# switchport port-security maximum 2
Switch(config-if)# switchport port-security mac-address sticky
Switch(config-if)# switchport port-security violation restrict
Violation modes are protect, restrict and shutdown (default). Verify with show port-security interface Fa0/5.
33. How do you configure SSH access on a Cisco device?
R1(config)# hostname R1
R1(config)# ip domain name example.local
R1(config)# username admin privilege 15 secret <password>
R1(config)# crypto key generate rsa general-keys modulus 2048
R1(config)# ip ssh version 2
R1(config)# line vty 0 15
R1(config-line)# login local
R1(config-line)# transport input ssh
Cisco's SSH guide notes that key generation needs a hostname and domain name, and recommends at least 2048-bit keys. Verify with show ip ssh and show ssh.
34. How do you configure PAT (NAT overload)?
R1(config)# access-list 1 permit 192.168.0.0 0.0.255.255
R1(config)# ip nat inside source list 1 interface Gi0/1 overload
R1(config)# interface Gi0/0
R1(config-if)# ip nat inside
R1(config)# interface Gi0/1
R1(config-if)# ip nat outside
Verify with show ip nat translations and show ip nat statistics.
35. How do you configure a static NAT for a server?
ip nat inside source static 192.168.1.10 203.0.113.10, plus ip nat inside and ip nat outside on the correct interfaces. Static entries appear permanently in the translation table.
36. How do you configure a router as a DHCP server?
R1(config)# ip dhcp excluded-address 192.168.10.1 192.168.10.10
R1(config)# ip dhcp pool SALES
R1(dhcp-config)# network 192.168.10.0 255.255.255.0
R1(dhcp-config)# default-router 192.168.10.1
R1(dhcp-config)# dns-server 192.168.1.53
Verify with show ip dhcp binding and show ip dhcp pool.
37. Clients on a remote VLAN get no DHCP address. What do you configure?
A DHCP relay on the clients' gateway interface: ip helper-address 192.168.1.5, pointing at the DHCP server. Broadcasts do not cross routers, so the gateway forwards them as unicast.
38. How do you configure a standard ACL and where do you apply it?
R1(config)# ip access-list standard BLOCK-GUEST
R1(config-std-nacl)# deny 192.168.50.0 0.0.0.255
R1(config-std-nacl)# permit any
R1(config)# interface Gi0/2
R1(config-if)# ip access-group BLOCK-GUEST out
Standard ACLs match only source addresses, so place them close to the destination. Remember the implicit deny at the end.
39. How do you configure an extended ACL to allow only web traffic to a server?
R1(config)# ip access-list extended WEB-ONLY
R1(config-ext-nacl)# permit tcp any host 10.1.1.20 eq 443
R1(config-ext-nacl)# permit tcp any host 10.1.1.20 eq 80
R1(config-ext-nacl)# deny ip any host 10.1.1.20
R1(config-ext-nacl)# permit ip any any
Apply it inbound close to the source. Check hit counters with show access-lists.
40. How do you configure HSRP for gateway redundancy?
R1(config-if)# standby 1 ip 192.168.10.1
R1(config-if)# standby 1 priority 110
R1(config-if)# standby 1 preempt
The router with the higher priority becomes active (default 100). Verify with show standby brief.
41. How do you configure NTP and why does it matter?
ntp server 192.168.1.123 syncs the clock. Correct time matters for log correlation, certificates and authentication. Verify with show ntp status and show ntp associations.
42. How do you send logs to a syslog server?
logging host 192.168.1.50 and logging trap informational to set the severity level sent. Add service timestamps log datetime msec so messages have useful timestamps. show logging displays the local buffer.
43. How do you enable IPv6 routing and address an interface?
ipv6 unicast-routing globally, then on the interface ipv6 address 2001:db8:10::1/64. A link-local address is created automatically. Verify with show ipv6 interface brief and show ipv6 route.
44. How do you configure an IPv6 static default route?
ipv6 route ::/0 2001:db8:ffff::1. If you use a link-local next hop, also give the exit interface, for example ipv6 route ::/0 Gi0/1 fe80::1.
45. How do you configure a floating static route as a backup?
Give the static route a higher administrative distance than the primary route, for example ip route 0.0.0.0 0.0.0.0 198.51.100.1 130 as backup to an OSPF-learned default (AD 110). It enters the routing table only if the primary disappears.
Senior questions (46 to 52)
46. How do you secure the management plane of a switch beyond SSH?
Restrict VTY access with an ACL (access-class MGMT in under the VTY lines), use AAA with a central server where available, set exec-timeout, disable unused services such as the HTTP server if not needed, keep management on a separate VLAN, and send logs to syslog.
47. How would you standardise configurations across 200 switches?
Use templates and automation rather than manual CLI. Tools such as Ansible with Cisco IOS modules, or controller-based management such as Cisco Catalyst Center, push consistent configs and detect drift. The CCNA blueprint includes automation and programmability for this reason.
48. What is the safest way to make a risky change remotely?
Schedule a rollback before you start: reload in 10 reboots to the saved config if you lose access, and reload cancel stops it after success. On platforms that support the configuration archive, configure replace can return to a saved config without a reboot.
49. How do you back up and restore device configurations?
copy running-config tftp: or scp: exports the config. Restoring with a copy into running-config merges rather than replaces, so use configure replace where supported for an exact rollback. Store configs in version control.
50. How do you use debug safely in production?
Prefer show commands first. If you must debug, limit scope (for example with an ACL-filtered debug ip packet), log to the buffer rather than the console, and turn it off with undebug all. Debugging on a busy device can raise CPU load.
51. How do you check device health during a performance complaint?
show processes cpu sorted and show processes cpu history for CPU, show memory statistics for memory, show interfaces for errors, drops and duplex, and show logging for recent events.
52. How do you get structured data from a device for automation?
Use model-driven interfaces such as NETCONF or RESTCONF with YANG models where the platform supports them, or parse CLI output with tools that convert it into structured data. Structured data is easier to compare and validate than raw text.
Hands-on scenario questions (53 to 60)
53. A new PC in VLAN 20 cannot reach its gateway. Walk through your checks.
Check the port with show interfaces status and show vlan brief to confirm it is up and in VLAN 20. Confirm VLAN 20 is allowed on the uplink with show interfaces trunk. Check the gateway SVI or subinterface is up with show ip interface brief. Finally check the PC's IP, mask and gateway settings.
54. Users in one branch can ping the gateway but not the internet. What do you check?
Check the default route (show ip route for the gateway of last resort), then NAT: confirm ip nat inside and outside are on the right interfaces, the ACL matches the user subnet, and show ip nat translations shows entries. Then test with an extended ping from the inside interface.
55. Two OSPF routers on the same link do not form an adjacency. What do you compare?
Run show ip ospf interface on both. Compare area ID, subnet and mask, hello and dead timers, authentication, network type and stub flags. Also check the interface is not passive and that an ACL is not blocking OSPF traffic.
56. After connecting a second uplink, the network slows down and MAC tables flap. What happened?
Likely a Layer 2 loop, either because STP is disabled or the link was added between ports where STP was blocked from working, such as ports with BPDU filtering. Check show spanning-tree for the port states and show logging for MAC flapping messages. Shut the new link, then bundle both uplinks into an EtherChannel or let STP block one.
57. SSH to a router fails, but ping works. What do you check?
Confirm show ip ssh reports SSH enabled and that RSA keys exist. Check the VTY lines have transport input ssh and login local with a valid local user. Check any access-class on the VTY lines and any ACL on the interface permitting TCP port 22.
58. An access port keeps going err-disabled. How do you find out why?
show interfaces status err-disabled shows the reason, such as bpduguard or psecure-violation. show logging gives the time and details. Fix the cause, such as removing an unauthorised switch or adjusting port security, before re-enabling.
59. A trunk between two switches passes VLAN 10 but not VLAN 30. Why?
VLAN 30 may not be in the allowed list on one side, may not exist on one switch, or may be pruned. Check show interfaces trunk on both switches; the "allowed and active in management domain" line shows which VLANs actually pass.
60. You must add a backup internet link that is only used when the main one fails. How?
Add a floating static default route via the backup link with a higher administrative distance. For failure detection beyond a link going down, track reachability of an upstream address with IP SLA and tie the primary route to the tracked object, so the backup takes over when the primary path stops working.
How to prepare for the hands-on part
- Practise in Cisco Packet Tracer or a lab with real or virtual IOS devices until the VLAN, trunk, OSPF, NAT, DHCP and SSH configs come without notes.
- After every config, say the verification command out loud and what you expect to see.
- Read the official CCNA 200-301 exam page for the current topic list.
- Use our 8-week CCNA interview study plan, the CCNA quick-answer cheat sheet and real-time CCNA questions for other formats.
- Refresh the layers with the OSI model explained.
Networking skills carry directly into Linux and cloud roles. Our Linux admin training in Pune builds on them, in the Kharadi classroom and live online.
Frequently asked questions
What is the current CCNA exam code?
The CCNA exam is Cisco 200-301, a 120-minute exam. Check Cisco's exam page for the current topic list and version.
Do CCNA engineer interviews include live configuration tasks?
Many do, either on a lab device, a simulator or a whiteboard. Common tasks are VLANs and trunks, static or OSPF routing, NAT overload, DHCP and SSH.
Which show commands should every CCNA engineer know?
show ip interface brief, show vlan brief, show interfaces trunk, show ip route, show ip ospf neighbor, show spanning-tree, show etherchannel summary, show ip nat translations and show running-config.
How is this question set different from other CCNA lists?
It focuses on IOS configuration and verification commands. Our other CCNA posts cover definitions, scenarios, advanced protocol theory and a study plan.
Is Packet Tracer enough to practise for interviews?
It covers most CCNA-level configuration tasks. Some commands and outputs differ from real IOS XE devices, so use real or virtual devices too if you can.
Why do interviewers ask about saving the configuration?
Because forgetting copy running-config startup-config means all changes disappear after a reload. It shows whether you have worked on real devices.
Do CCNA interviews cover automation?
Increasingly, yes. The CCNA blueprint includes automation and programmability, so expect basic questions on controllers, APIs, JSON and tools such as Ansible.
References
What's Your Reaction?
Like
0
Dislike
0
Love
0
Funny
0
Angry
0
Sad
0
Wow
0