Cisco IOS XE Default NETCONF Port: Why 830 Beats SSH, HTTPS, and gRPC
Short answer
A Cisco IOS XE's NETCONF-over-SSH server listens on TCP 830 by default, so a NETCONF client must target 830 rather than SSH 22, HTTPS 443, or gRPC 57400.
Question
Key Takeaways
Cisco IOS XE exposes NETCONF over SSH on TCP port 830 by default, making 830 the correct target for an ncclient or similar NETCONF session. Port 22 serves ordinary SSH CLI access, 443 carries HTTPS/RESTCONF, and 57400 is used for gRPC telemetry. Recognizing those service-to-port mappings prevents a wrong transport choice in automation scripts.
Expert Analysis
Because Cisco IOS XE runs NETCONF as an SSH subsystem on the IANA-assigned TCP port 830, while the remaining choices map to ordinary SSH, HTTPS/RESTCONF, and gRPC telemetry, the default answer resolves to port 830.
Cisco IOS XE binds NETCONF-over-SSH to the dedicated TCP 830 listener
Cisco IOS XE enables NETCONF through the netconf-yang feature, and the resulting server is reached over SSH on TCP 830, the port IANA assigns to NETCONF over SSH. That assignment is what makes 830 the default rather than an arbitrary vendor convention: the transport is still SSH, but it is an SSH session whose channel is dedicated to NETCONF, not the interactive CLI listener on 22. On IOS XE the SSH server can accept both kinds of connection at once, which is why the presence of an SSH daemon on 22 does not make 22 the NETCONF port. The NETCONF listener is a separate endpoint and its default is 830. The requirement concerns a default, so no configured override is in play. If an engineer had explicitly configured netconf-yang ssh port 22, the effective port would change, but that would be a deliberate nondefault design, not the behavior the requirement targets. The dedicated assignment is also why a NETCONF client should not simply reuse SSH port 22 settings from a CLI automation playbook; the client library may open a TCP socket successfully and still fail at the protocol layer. Port 830 is the concrete default endpoint for Cisco IOS XE NETCONF sessions.
Session establishment reaches the SSH subsystem only after TCP 830 accepts the connection
With 830 selected, the connection sequence explains why the answer is a protocol-level issue rather than a cosmetic port number. The NETCONF client first completes a TCP handshake to 830, then negotiates an SSH transport with key exchange, encryption, and user authentication. After authentication, it requests the netconf SSH subsystem on a channel; the IOS XE server accepts that subsystem and both peers exchange <hello> messages containing capabilities and a session ID. Only after the hello exchange does the client send an XML <rpc> such as <get-config> or <edit-config>. The port determines which listener receives the SYN; the subsystem request determines whether the SSH session becomes a NETCONF session or an interactive CLI. This is why a client pointed at 22 can authenticate and still time out waiting for a NETCONF hello: TCP and SSH may succeed, but the required subsystem negotiation does not occur on the CLI listener. Conversely, a client aimed at 830 reaches the NETCONF-aware listener and can complete the handshake. The chosen action therefore takes effect at connection establishment, before any YANG model content or XML payload is evaluated. A successful TCP connect on the wrong port is therefore a misleading signal, because it proves reachability but not NETCONF readiness.
Alternative ports each terminate a different service on IOS XE
Port 22 is the ordinary SSH CLI and SCP listener; a NETCONF client sending XML RPCs there does not get the netconf subsystem and cannot establish a NETCONF session, so B breaks at the subsystem negotiation step. Port 443 is the HTTPS listener used by RESTCONF and web management; it expects TLS and HTTP verbs rather than an SSH transport and NETCONF framing, so C fails at the transport choice before any RPC can be parsed. Port 57400 is the gRPC listener associated with model-driven telemetry; it carries protobuf-encoded telemetry over HTTP/2 rather than NETCONF XML over SSH, so D would be appropriate for a telemetry collector but not for a NETCONF configuration session. None of these ports is a harmless alias for 830. A NETCONF client that falls back to an open management port wastes time interpreting XML errors or timeouts that originate from the wrong listener. Choosing B might make the TCP connection look familiar because SSH is involved, but familiarity of transport does not supply the NETCONF subsystem. Choosing C might be mistaken for 'secure management' because it is HTTPS, yet the client library is not speaking RESTCONF. Choosing D might follow from seeing 57400 in telemetry labs, but that is a different operational channel. Each wrong port forces a retry and obscures the actual configuration problem.
HTTPS on 443 becomes decisive only when the requirement asks for RESTCONF
The named alternative that most plausibly competes is C, port 443: Cisco IOS XE enables RESTCONF over HTTPS, and 443 is the conventional default for that API. It would be the right choice if the requirement were to retrieve or modify configuration with JSON/XML over HTTP, or if the requirement explicitly named RESTCONF. The condition is not met because the requirement names NETCONF and asks for its default port, and NETCONF over SSH is standardized on 830. Similarly, B would become correct only if the task concerned the default SSH CLI/SCP port or if a nondefault NETCONF binding to 22 had been configured; neither condition appears. D would become correct only for a requirement centered on the default gRPC telemetry port on IOS XE, not a NETCONF RPC endpoint. The distinction is not 'which port is secure' or 'which port is open'; all four can be enabled on a programmable device. The deciding variable is the protocol named in the requirement and the service registered for its default. Because that variable points to NETCONF, 443 remains a RESTCONF answer and cannot displace 830. Port choice follows the protocol contract, not the mere presence of a listening socket.
Official Reference
https://www.rfc-editor.org/rfc/rfc6242
This link opens the official vendor documentation in a new tab.
Exam Strategy
When a port question appears, map every candidate to a service before choosing: 22 to SSH CLI/SCP, 443 to HTTPS/RESTCONF, 57400 to gRPC telemetry, and 830 to NETCONF over SSH. Do not let the shared SSH transport push you to 22; NETCONF has its own IANA-assigned listener and SSH subsystem. If the prompt names a protocol, select that protocol's dedicated default and confirm whether the ask is a default or an explicitly configured value.
Related Analysis
Practice All 300-435 Questions
Access 150 questions with complete answers and detailed explanations.
View Full 300-435 Practice Test →