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
- Configure and fix console and vty lines: login, transport, access-class, exec-timeout.
- Bring up SSH: hostname, domain, RSA keys, version 2, local or AAA users.
- Enable HTTP/HTTPS and SCP and know what each needs.
- Copy files with TFTP and FTP and know their limits.
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| Symptom | Cause |
|---|---|
Password required, but none set | login with no password on the line |
| Connection refused at once | transport input excludes the protocol, or the access class denies the source |
| No prompt, then disconnect | All vty lines are busy (check show users), or exec-timeout 0 1 |
% Authorization failed | AAA 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: 3SSH 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
| TFTP | FTP | |
|---|---|---|
| Transport | UDP 69 | TCP 21 (control) + data connection |
| Authentication | None | Username and password (ip ftp username, ip ftp password) |
| File size | 32 MB limit on many servers (16-bit block numbers) | No practical limit |
| Typical use | Configs, small files, PXE | IOS 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 users | Lines in use and who is logged in. |
show ip ssh / show ssh | SSH version, settings and active sessions. |
show ip http server status | HTTP and HTTPS server state. |
show access-lists | Hits on the vty access class. |
show running-config | section line | Line settings. |
Exam traps
transport input sshblocks Telnet even if the password is right.- SSH v2 needs RSA keys of 768 bits or more; a missing domain name stops key generation.
access-classfilters sources on vty lines;access-groupis for interfaces.- TFTP has no authentication and often a 32 MB file limit.
Check yourself
crypto key generate rsafails. Likely cause?- No
ip domain-name(or the hostname is still the default). - Telnet is refused instantly from the management PC. Two causes?
transport inputexcludes telnet, or the access class denies the source.- What does SCP need besides SSH?
ip scp server enable,aaa new-modeland 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
- 4.3 Troubleshoot with logging: local, syslog, debugs, conditional debugs, timestamps and telemetry
- 4.4 Troubleshoot DHCP for IPv4 and IPv6: clients, the IOS server, relay and options
- 4.5 Troubleshoot network performance with IP SLA: jitter, delay, reachability and tracking
- 4.6 Troubleshoot NetFlow v9, Flexible NetFlow and IPFIX
- 4.7 Troubleshoot with Catalyst Center Assurance: connectivity, device and network health