What Is a Hostname?
a Hostname — the human-readable name given to a device on a network — like "R1" on a router or "web-server-01" — making devices identifiable without memorising IP addresses.
How it works
A hostname labels a device for humans. On Cisco gear, the hostname appears in the command prompt (R1#) and identifies the device in CDP/LLDP discovery and logs. On the internet, hostnames combine with domain names (server.example.com) and resolve to IPs via DNS. Good hostname conventions make large networks manageable.
Why it matters
Setting a meaningful hostname is the first configuration step on any device (and required before generating SSH keys). Consistent naming conventions are a real operational discipline — "which device is this?" should be answerable from the prompt alone. See SSH configuration where the hostname is a prerequisite.
Frequently asked questions
What is a hostname?
The human-readable name assigned to a device — like R1 or web-server-01 — identifying it without needing to remember its IP address.
Why set a hostname on a Cisco device?
It appears in the command prompt and logs, identifies the device in CDP/LLDP discovery, and is required before generating SSH RSA keys.
What is the difference between a hostname and a domain name?
A hostname identifies a single device; a domain name identifies an organisation's namespace. Together (host.domain.com) they form a fully-qualified domain name.
Related articles
Want hands-on training?
Learn this on real Cisco lab devices with placement support at Attila Technologies, Ahmedabad.