4.1 Troubleshoot device management access

ENARSI 300-410 v1.1 · 4.0 Infrastructure Services

You can only fix a router you can reach. ENARSI troubleshoots every way in: the console and vty lines (passwords, login methods, access classes, timeouts), the management protocols (Telnet, SSH, HTTP/HTTPS, SCP) and the file transfer protocols (FTP, TFTP) used to copy images and configurations.

What you must know

Console and vty lines

line con 0
 exec-timeout 10 0
 logging synchronous
 login local
line vty 0 4
 access-class MGMT in
 exec-timeout 15 0
 login local
 transport input ssh
!
ip access-list standard MGMT
 permit 10.0.99.0 0.0.0.255
 deny   any log
SymptomCause
Password required, but none setlogin with no password on the line
Connection refused at oncetransport input excludes the protocol, or the access class denies the source
No prompt, then disconnectAll vty lines are busy (check show users), or exec-timeout 0 1
% Authorization failedAAA authorization fails, or the user has no privilege for exec

access-class filters by the source of the session and applies only to vty lines. show line shows which lines are in use, and clear line <n> frees a stuck one.

Telnet, SSH, HTTP, HTTPS and SCP

hostname R1
ip domain-name ntpath.lab
crypto key generate rsa modulus 2048
ip ssh version 2
username netadmin privilege 15 secret S3cure!
!
ip http secure-server
ip http authentication local
no ip http server
ip scp server enable          ! needs aaa new-model + exec authorization

R1# show ip ssh
SSH Enabled - version 2.0
Authentication methods:publickey,keyboard-interactive,password
Authentication timeout: 120 secs; Authentication retries: 3

SSH from the management subnet works (1); Telnet from the user VLAN is refused (2). Telnet sends everything in clear text; keep it off. HTTPS needs a certificate (IOS makes a self-signed one); SCP needs aaa new-model and an authorization method so the user lands at privilege 15.

FTP and TFTP

TFTPFTP
TransportUDP 69TCP 21 (control) + data connection
AuthenticationNoneUsername and password (ip ftp username, ip ftp password)
File size32 MB limit on many servers (16-bit block numbers)No practical limit
Typical useConfigs, small files, PXEIOS images
R1# copy running-config tftp://10.0.99.5/R1-confg
R1(config)# ip tftp source-interface GigabitEthernet0/1
R1(config)# ip ftp source-interface GigabitEthernet0/1
R1# copy ftp://admin:pass@10.0.99.5/c2900-universalk9-mz.SPA.157-3.M8.bin flash:

When a copy times out, check reachability from the source interface, the server's ACLs and directory permissions, and for FTP whether active mode is blocked by a firewall (ip ftp passive).

Commands

show line / show usersLines in use and who is logged in.
show ip ssh / show sshSSH version, settings and active sessions.
show ip http server statusHTTP and HTTPS server state.
show access-listsHits on the vty access class.
show running-config | section lineLine settings.

Exam traps

Check yourself

crypto key generate rsa fails. Likely cause?
No ip domain-name (or the hostname is still the default).
Telnet is refused instantly from the management PC. Two causes?
transport input excludes telnet, or the access class denies the source.
What does SCP need besides SSH?
ip scp server enable, aaa new-model and an exec authorization method.
Why use FTP rather than TFTP for an IOS image?
TFTP often cannot move files over 32 MB and has no authentication.

Labs

Try it live: AAA troubleshooting: TACACS+, RADIUS and the local fallback

More topics in 4.0 Infrastructure Services