Pasted content imageManagement access paths: console, secure remote CLI, web management, centralized AAA, and cloud management.

LESSON PURPOSE

Build a practical understanding of how administrators securely access, identify, authenticate to, and manage Cisco network devices locally and remotely. The lesson establishes the management-plane foundation required for initial setup, day-to-day operations, troubleshooting, and secure administration.

Lesson Overview

Routers, switches, wireless controllers, and other network devices must be reachable and securely manageable before configuration or troubleshooting can begin. This lesson explains the difference between local console access and remote management, how a management IP address provides IP reachability, and why SSH is preferred over insecure clear-text methods. It also introduces local user authentication, VTY access, AAA concepts, in-band versus out-of-band management, session protection, and the verification commands used to confirm management access.


Learning Objectives

• Explain the purpose of the management plane and distinguish management traffic from normal user/data traffic.

• Compare local console access with remote management access and identify when each method is used.

• Describe in-band and out-of-band (OOB) management and the operational advantages of a dedicated management path.

• Configure and verify a management IP address on a router interface, switch SVI, or dedicated management interface as appropriate.

• Explain the purpose of the console, VTY, and legacy AUX access methods on Cisco devices.

• Configure secure remote CLI access using SSH, including hostname/domain prerequisites, local users, RSA keys, VTY settings, and SSH version 2.

• Explain why Telnet is insecure and why encrypted management protocols should be preferred.

• Configure and verify local usernames, privilege levels, enable secret, login controls, and basic session timeout settings.

• Describe the role of AAA and how TACACS+ and RADIUS can centralize administrator authentication, authorization, and accounting.

• Use common verification and troubleshooting commands such as show ip interface brief, show users, show line, show ip ssh, ping, traceroute, and show running-config.


Suggested Study Flow

  • Understand management-plane reachability and recovery paths.
  • Learn direct console access first.
  • Compare Telnet and SSH, then build a complete SSH configuration.
  • Add HTTPS web management and restrict who can reach management services.
  • Enable AAA and understand method lists before adding TACACS+ or RADIUS.
  • Finish with cloud management, verification, troubleshooting, and an end-to-end lab.


1. Management Plane Fundamentals

The management plane is the part of a network device used by administrators and management systems to configure, monitor, and troubleshoot the device. Management traffic is different from user traffic: it includes CLI sessions, web sessions, AAA requests, logging, telemetry, SNMP, API calls, and software-management communication. Because compromise of the management plane can provide administrative control of the device, management access should be treated as a high-value security boundary.


1.1 In-Band vs Out-of-Band Management

Method

Path

Requires Production IP?

Typical Use

In-band

Uses the production IP network

Yes

SSH, HTTPS, SNMP, APIs, AAA

Out-of-band

Uses a separate physical/management path

No or separate mgmt network

Console server, dedicated management interface, emergency access

In-band management is convenient because it uses the existing network, but it depends on routing, VLANs, ACLs, and upstream connectivity. Out-of-band management is designed to remain available when the production data path is broken, making it especially useful during initial deployment and outages.


1.2 Management IP Addressing on a Layer 2 Switch

A Layer 2 switch needs an SVI (Switch Virtual Interface) for IP-based management. The SVI does not make the switch a router; it simply gives the switch an IP address in a management VLAN. The switch also needs a default gateway if the administrator is on another subnet.


Layer 2 switch management example

vlan 99

 name MANAGEMENT

!

interface Vlan99

 description Management SVI

 ip address 10.10.99.11 255.255.255.0

 no shutdown

!

ip default-gateway 10.10.99.1

Important

For a Layer 3 switch with ip routing enabled, use routing (for example, a default route) rather than relying on ip default-gateway.

Verification

show ip interface brief

show interfaces vlan 99

show vlan brief

show ip default-gateway

ping 10.10.99.1


2. Console Access - Direct Local Management

Pasted content imageConsole access is local and does not depend on IP connectivity.

The console port provides direct terminal access to the device. It is normally used during first-time setup, recovery, or when the IP network is unavailable. A console session does not require an IP address, VLAN, routing table, DNS, or default gateway. This makes it the most reliable recovery path, but it also means physical security matters because a person with console access may obtain privileged control of the device.


2.1 How the Console Line Works

The console line is represented by line console 0 on Cisco IOS/IOS XE.

Authentication can use a simple line password, the local username database, or AAA.

Idle timeout and synchronous logging are line-level settings.

Console access is not encrypted over the physical cable; security comes from physical control and authentication.


2.2 Recommended Lab Configuration

username breakglass privilege 15 secret StrongLocalSecret

!

line console 0

login local

exec-timeout 10 0

logging synchronous

login local tells the console line to authenticate users against locally configured usernames. exec-timeout 10 0 disconnects an idle session after ten minutes. logging synchronous causes unsolicited log messages to be redisplayed cleanly instead of disrupting the command being typed.


2.3 Older Line-Password Method

Exam/lab example only

line console 0

 password ConsolePassword

 login

 exec-timeout 10 0

Security note

A dedicated username with secret is preferable to a reusable clear line password. In production, protect the console path physically and maintain a tested break-glass recovery process.

Verification

show running-config | section line con

show users


3. Telnet and VTY Lines

Pasted content image

Telnet and SSH both use VTY lines, but only SSH encrypts the management session.


VTY stands for Virtual Teletype. VTY lines are logical terminal lines that accept remote CLI sessions. Telnet and SSH both terminate on VTY lines, so configuration such as authentication, idle timeout, and allowed transports is commonly applied under line vty 0 4 or line vty 0 15 depending on the platform.


3.1 Telnet - How It Works

Telnet uses TCP port 23 and sends the session contents without encryption. Usernames, passwords, commands, and output can be captured in readable form. Telnet is therefore unsuitable for normal production administration and should be treated as a legacy or isolated-lab technology.


Lab-only Telnet configuration

username labadmin privilege 15 secret LabSecret

!

line vty 0 4

 login local

 transport input telnet

 exec-timeout 10 0

Client and device verification

telnet 10.10.99.11

show users

show line vty 0 4


3.2 Why Telnet Is Considered Insecure

No confidentiality: packet captures can reveal session content.

No strong server identity validation like SSH host keys.

Credentials can be exposed to anyone who can observe the management path.

The safe migration path is to enable SSH, verify it, and then remove Telnet from the VTY transport list.

 

4. SSH - Secure Remote CLI Management

SSH is the preferred remote CLI protocol because it protects authentication and command traffic with encryption. On Cisco IOS/IOS XE, enabling SSH requires the device to have an identity, cryptographic key material, an authentication method, and VTY lines that permit SSH.


4.1 Complete SSH Configuration - Local Authentication

hostname SW1

ip domain-name networktech.lab

!

username netadmin privilege 15 secret StrongSecret123

!

crypto key generate rsa modulus 2048

ip ssh version 2

ip ssh time-out 60

ip ssh authentication-retries 3

!

line vty 0 15

 login local

 transport input ssh

 exec-timeout 10 0

 logging synchronous


4.2 What Each Command Does

Command

Purpose

hostname / ip domain-name

Creates device identity information used when generating RSA keys.

username ... secret

Creates a local account with a protected secret.

crypto key generate rsa

Creates the device RSA key pair used by the SSH server.

ip ssh version 2

Forces SSH version 2 where supported.

login local

Uses the local username database on the VTY lines.

transport input ssh

Rejects Telnet and allows only SSH on the VTY lines.

exec-timeout

Disconnects idle management sessions.


4.3 SSH Verification

show ip ssh

show ssh

show crypto key mypubkey rsa

show running-config | section line vty

show users

From another Cisco IOS device

ssh -l netadmin 10.10.99.11


4.4 Common SSH Failure Conditions

Management SVI is down because the VLAN has no active Layer 2 port.

No IP route exists between the administrator and the device.

RSA keys have not been generated.

VTY lines do not include transport input ssh.

AAA or local authentication is rejecting the account.

An ACL or firewall is blocking TCP 22.

Best practice

Verify SSH access before removing Telnet. When working remotely, always keep a recovery path available before changing VTY authentication.

 

5. HTTP and HTTPS Web Management

Pasted content image

TACACS+ centralizes administrator authentication, authorization, and accounting.


Some Cisco platforms expose an embedded web service or management GUI. HTTP uses TCP port 80 and does not encrypt the session. HTTPS uses TLS, normally over TCP port 443, and is the preferred choice when web management is required. The presence and capabilities of the GUI vary by device family and software image, but the security principles remain the same.


5.1 HTTPS with Local Authentication

username webadmin privilege 15 secret StrongWebSecret

!

ip http authentication local

ip http secure-server

no ip http server

ip http authentication local tells the web service to use the local username database. ip http secure-server enables HTTPS. no ip http server disables clear-text HTTP.


5.2 Restricting Web Management Sources

ip access-list standard MGMT-HTTPS

 permit 10.10.99.0 0.0.0.255

 deny any log

!

ip http access-class MGMT-HTTPS

Verification

show ip http server status

show running-config | include ^ip http

show access-lists MGMT-HTTPS

Certificate behavior

A lab device may use a self-signed certificate, which can trigger a browser trust warning. Production designs should use an appropriate certificate/trust model rather than falling back to plain HTTP.


6. Hardening Remote Management Access

Using SSH or HTTPS is necessary but not sufficient. A secure management plane should also limit who can connect, how long sessions remain open, and what fallback behavior exists when centralized services fail.


6.1 VTY Access-Class

ip access-list standard VTY-MGMT

 permit 10.10.99.0 0.0.0.255

 deny any log

!

line vty 0 15

 access-class VTY-MGMT in

 login local

 transport input ssh

 exec-timeout 10 0

access-class applies an ACL to VTY access. In this example, only administrators sourced from the management subnet can open remote CLI sessions.


6.2 Stable Source Interface for Management Protocols

For some management protocols, a loopback or dedicated management interface can be selected as the source. A stable source address makes firewall rules, AAA client definitions, logging, and troubleshooting more predictable.


Representative example - command support varies by platform/release

interface Loopback0

 ip address 10.255.255.11 255.255.255.255

!

ip ssh source-interface Loopback0

ip radius source-interface Loopback0


6.3 Additional Hardening Checklist

Disable unused management services.

Use SSHv2 rather than Telnet.

Use HTTPS rather than HTTP.

Restrict management sources with ACLs or a dedicated management VRF/network.

Use centralized AAA where appropriate, but retain a tested local recovery path.

Use short idle timeouts and monitor administrator sessions.

Keep device time synchronized so AAA/accounting and logs are meaningful.

 

7. AAA Fundamentals

AAA stands for Authentication, Authorization, and Accounting. Centralized AAA allows many network devices to use a common identity and policy system instead of maintaining independent administrator databases on every router and switch.

AAA Function

Question Answered

Example

Authentication

Who are you?

Validate username/password or other credentials.

Authorization

What are you allowed to do?

Permit privileged EXEC or selected commands.

Accounting

What did you do?

Record logins, commands, start/stop times.


7.1 Enabling AAA

aaa new-model

aaa new-model changes how login authentication is handled. Once enabled, method lists define the ordered methods the device should try. Always design and test fallback behavior before changing remote authentication on a production device.


7.2 Understanding Method Lists

aaa authentication login VTY-AUTH group TAC-GROUP local

This method list means: first try the TACACS+ server group. If the server is unavailable, use the local username database. A rejection from a reachable AAA server is normally not the same as a timeout; method-list behavior depends on the result returned by the previous method.

Remote-change safety

Before applying AAA to VTY lines, keep an active console/out-of-band path and verify the local break-glass account works.

 

8. TACACS+ for Network Device Administration

Pasted content image

TACACS+ centralizes administrator authentication, authorization, and accounting.


TACACS+ is commonly used for infrastructure-device administration. It uses TCP port 49 and separates authentication, authorization, and accounting functions. On supported platforms and AAA servers, TACACS+ can provide granular command authorization and detailed command accounting, which makes it well suited to router, switch, firewall, and controller administration.


8.1 Build the TACACS+ Server Object and Group

aaa new-model

!

tacacs server ISE-TACACS

 address ipv4 10.10.99.50

 key 0 SharedSecret

!

aaa group server tacacs+ TAC-GROUP

 server name ISE-TACACS


8.2 Authentication, Authorization, and Accounting

aaa authentication login VTY-AUTH group TAC-GROUP local

aaa authorization exec VTY-EXEC group TAC-GROUP local if-authenticated

aaa authorization commands 15 VTY-CMD group TAC-GROUP local

aaa accounting exec VTY-ACCT start-stop group TAC-GROUP

aaa accounting commands 15 VTY-CMD-ACCT start-stop group TAC-GROUP


8.3 Apply the Method Lists to VTY Lines

line vty 0 15

 login authentication VTY-AUTH

 authorization exec VTY-EXEC

 authorization commands 15 VTY-CMD

 accounting exec VTY-ACCT

 transport input ssh

 exec-timeout 10 0

The exact authorization/accounting commands available can vary by platform and software release. The important design concept is that authentication proves identity, authorization controls the resulting session/commands, and accounting records administrator activity.


8.4 Optional Stable Source Interface

ip tacacs source-interface Loopback0


8.5 Verification and Testing

show tacacs

show aaa servers

show running-config | section tacacs

show running-config | include ^aaa


Fallback logic

Keep local at the end of the authentication method list so a tested local account can be used if the TACACS+ service is unreachable. Protect that local credential as a break-glass account.

 

9. RADIUS

Pasted content image

RADIUS is widely used for centralized network-access AAA and can also participate in device-management authentication.


RADIUS is an open, interoperable AAA protocol widely used for WLAN, VPN, and 802.1X access control. It commonly uses UDP port 1812 for authentication/authorization and UDP port 1813 for accounting. RADIUS can also authenticate administrators to network devices, although TACACS+ is often preferred when highly granular device-command control is required.


9.1 Configure a RADIUS Server Object and Group

aaa new-model

!

radius server ISE-RADIUS

 address ipv4 10.10.99.60 auth-port 1812 acct-port 1813

 key 0 SharedSecret

!

aaa group server radius RAD-GROUP

 server name ISE-RADIUS


9.2 Create a Login Method List

aaa authentication login RAD-LOGIN group RAD-GROUP local

!

line vty 0 15

 login authentication RAD-LOGIN

 transport input ssh


9.3 Add Accounting - Representative Example

aaa accounting exec RAD-ACCT start-stop group RAD-GROUP

!

line vty 0 15

 accounting exec RAD-ACCT

Verification

show radius statistics

show aaa servers

show running-config | section radius

show running-config | include ^aaa

If the device sends RADIUS from an unexpected source IP, the AAA server may reject the request because the network device is defined by source address. A configured source interface can therefore be important in multi-interface designs.

 

10. TACACS+ vs RADIUS

Feature

TACACS+

RADIUS

Transport

TCP 49

UDP 1812/1813 commonly

Primary enterprise use

Device administration

Network access: WLAN, VPN, 802.1X; also possible for admin login

AAA separation

Separates authentication, authorization, accounting

Authentication and authorization are more tightly coupled

Command authorization

Strong fit on supported platforms

Typically less granular for device CLI administration

Packet protection

Protects most of the TACACS+ packet body

Classic RADIUS primarily protects the user password field; other attributes are not fully encrypted

Vendor scope

Widely used for network-device admin; historically Cisco-origin technology

Open and broadly interoperable


10.1 Which One Should You Use?

For CCNA, remember the common operational distinction: TACACS+ is strongly associated with administrative access to network devices, while RADIUS is strongly associated with end-user or endpoint network access such as WLAN, VPN, and 802.1X. Real environments can use either protocol in additional ways, so treat this as a design tendency rather than an absolute limitation.

Security perspective

Both protocols rely on shared secrets and secure network design. Neither replaces segmentation, ACLs, firewall controls, protected management paths, or strong administrator identity.

 

11. Cloud-Managed Network Devices

Pasted content image

Cloud-managed devices establish secure outbound connectivity to a centralized management service.


In a cloud-managed architecture, an administrator normally uses a provider-hosted web portal or application. The device establishes secure connectivity to the cloud management platform, receives configuration and policy, and uploads inventory, events, health information, and telemetry. The management workflow becomes centralized even when the devices are deployed at many remote sites.


11.1 Typical Onboarding Flow

The device obtains an IP address and default gateway.

DNS resolution and time synchronization become available.

The device establishes secure outbound connectivity to the management service.

An administrator claims or assigns the device to the correct organization/site/tenant.

Configuration and policy are synchronized from the cloud platform.

Telemetry and status are continuously reported back to the management platform.


11.2 Representative Local Prerequisites

There is no single universal Cisco CLI for cloud onboarding because the exact workflow depends on the platform. The local network prerequisites, however, are consistent: IP reachability, DNS, correct time, and outbound access to the management service.

Representative prerequisite configuration

interface GigabitEthernet1/0/48

 description Internet-or-uplink

 no shutdown

!

ip name-server 10.10.99.53

ntp server 10.10.99.123

!

ip route 0.0.0.0 0.0.0.0 10.10.99.1


11.3 Cloud Management Security Considerations

Protect cloud administrator accounts with MFA where available.

Use role-based access controls and least privilege.

Understand which changes can be made locally versus in the cloud portal.

Keep a documented local recovery procedure for loss of cloud connectivity.

Ensure DNS, NTP, certificates, and outbound firewall policy are functioning.

 

12. Verification and Troubleshooting

12.1 Baseline Verification Commands

show ip interface brief

show users

show line

show ip ssh

show ssh

show ip http server status

show access-lists

show aaa servers

show tacacs

show radius statistics

show logging


12.2 SSH Troubleshooting Workflow

  • Confirm the management interface/SVI is up/up.
  • Ping the device from the administrator network.
  • Confirm RSA keys and the SSH server are present.
  • Check the VTY transport input command.
  • Confirm the VTY authentication method (local or AAA).
  • Check VTY access-class ACLs and any firewall between client and TCP 22.
  • If AAA is involved, validate the AAA server, shared secret, source IP, and fallback account.


12.3 HTTPS Troubleshooting Workflow

  • Verify the device/platform supports the intended web-management function.
  • Confirm ip http secure-server is enabled and plain HTTP is disabled if not needed.
  • Check TCP 443 reachability and any HTTP access-class.
  • Validate management IP routing.
  • Check browser certificate/TLS warnings.
  • Confirm local or AAA web authentication configuration.

12.4 TACACS+/RADIUS Troubleshooting Workflow

  • Ping the AAA server from the same source interface used by AAA.
  • Verify server IP, transport port, and shared secret.
  • Confirm the network device is defined as a client/NAS on the AAA server.
  • Check the AAA method list and where it is applied.
  • Review the server-side authentication logs.
  • Test local fallback and console access before making additional changes.

12.5 Cloud-Managed Device Shows Offline

  • Check physical link, IP address, gateway, and DNS.
  • Check time/NTP and certificate-related dependencies.
  • Confirm outbound firewall access to the management service.
  • Validate that the device is assigned to the correct tenant/site.
  • Check cloud-provider service health only after local connectivity is known to be good.


13. Enterprise Hands-On Lab

Pasted content image

Enterprise lab combining management VLAN, secure CLI, web access, centralized AAA, and cloud-management dependencies.


13.1 Lab Addressing

Device

Role

Address

SW1

Managed access switch

10.10.99.11/24

R1

Management/default gateway

10.10.99.1/24

AAA1

TACACS+/RADIUS server

10.10.99.50/24

ADMIN-PC

Administrator workstation

10.10.99.100/24


13.2 SW1 Base Configuration

hostname SW1

!

vlan 99

 name MANAGEMENT

!

interface Vlan99

 ip address 10.10.99.11 255.255.255.0

 no shutdown

!

ip default-gateway 10.10.99.1

!

username breakglass privilege 15 secret LocalRecoverySecret

!

ip domain-name networktech.lab

crypto key generate rsa modulus 2048

ip ssh version 2

!

line console 0

 login local

 exec-timeout 10 0

 logging synchronous

!

line vty 0 15

 login local

 transport input ssh

 exec-timeout 10 0


13.3 Add HTTPS

ip http authentication local

ip http secure-server

no ip http server


13.4 Add TACACS+ with Local Fallback

aaa new-model

!

tacacs server ISE-TACACS

 address ipv4 10.10.99.50

 key 0 SharedSecret

!

aaa group server tacacs+ TAC-GROUP

 server name ISE-TACACS

!

aaa authentication login VTY-AUTH group TAC-GROUP local

!

line vty 0 15

 login authentication VTY-AUTH

 transport input ssh


13.5 Lab Validation Tasks

1. Connect by console and verify the recovery account.

2. Ping 10.10.99.11 from ADMIN-PC.

3. SSH to SW1 with the local account.

4. Enable AAA and verify TACACS+ login.

5. Disconnect the AAA server and verify the documented local fallback behavior.

6. Restore AAA reachability and confirm normal centralized authentication.

7. Test HTTPS if the platform provides a usable web interface.

8. Apply a VTY ACL that permits only the management subnet and verify an unauthorized source is rejected.


Quick knowledge check

1. Which method works even when no IP address is configured?

Answer: Console access.

2. Which web-management protocol provides encryption?

Answer: HTTPS, normally TCP 443.

3. Which AAA protocol is strongly associated with WLAN/VPN/802.1X network access?

Answer: RADIUS.

4. What does transport input ssh do?

Answer: Allows SSH and rejects Telnet on the selected VTY lines.