08-21-2019 02:06 AM
i need help understanding what IP domain-name does like what is its purpose and on domain name in dhcp whats the purpose of putting cisco.com or random name.
Solved! Go to Solution.
08-21-2019 02:13 AM
Hello waffi1234,
with ip domain-name global command you are telling the router on which domain it is the device itself.
The device will consider itself as hostname.mydomain.com instead of only hostname.
Commands under ip dhcp pool are commands to provide info as DHCP options to DHCP clients.
To make an important example you need to set an ip domain-name in order to generate RSA keys to be used for SSH sessions on VTY lines.
Hope to help
Giuseppe
08-21-2019 02:13 AM
Hello waffi1234,
with ip domain-name global command you are telling the router on which domain it is the device itself.
The device will consider itself as hostname.mydomain.com instead of only hostname.
Commands under ip dhcp pool are commands to provide info as DHCP options to DHCP clients.
To make an important example you need to set an ip domain-name in order to generate RSA keys to be used for SSH sessions on VTY lines.
Hope to help
Giuseppe
08-21-2019 02:47 AM
so for the ip domain name for ssh. for example if i am trying to ssh to my router i can use cats.com to ssh to it?
08-21-2019 05:09 AM
Hello waffi1234,
I'm sorry I have been not so clear before.
You need to configure the ip domain-name before issuing the crypto key generate rsa command.
The reason is that the RSA keys will get a name from the hostname + domain.name.
when you want to SSH to your device you need to use an SSH client like Putty and use a router IP address as the destination address.
You can SSH to hostname.cats.com if you have registered the DNS record (A record for IPv4) with your DNS server.
Otherwise you need to still SSH to the router's IP address.
Hope to help
Giuseppe
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide