08-26-2013 02:14 PM - edited 03-04-2019 08:52 PM
I have a static public ip address that i have natted from a private ip address.
When i try to directly connect to that public ip address from inside my network it will not allow me to(Im using ssh). But when i connect via the hostname it will connect automatically.
IM having trouble understanding the reason why it will not work.
Thanks in advanced for any answers.
08-26-2013 11:39 PM
Hi
first disable telnet, then enable only ssh then it will work , you can login the device with hostname if you are using telnet,
just disable to the dns lookup
by using no ipdomain-lookup
08-27-2013 10:38 PM
You cannot connect to the public IP address from behind the router due to a limitation of NAT. It's called hairpinning, and it's not supported. When you connect via hostname, the router intercepts the DNS reply, and knowing there is a NAT for that public IP address, it rewrites the DNS reply with the internal IP before sending it to your workstation.
Regards,
Mike
Sent from Cisco Technical Support Android App
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: