How to find the public IP within IOS

cisco-ios

I have access to a router. I want to know its internet IP address through its ISP. I thought about using ifconfig.me but it won't let me.

#copy http://ifconfig.me/ip flash:ip.txt
Destination filename [ip.txt]? 
Accessing http://ifconfig.me/ip...
%Error opening http://ifconfig.me/ip (I/O error)

I think I am very close. What am I missing?

Best Answer

Very simple method:

more http://ifconfig.me/ip/

or if you don't have DNS lookup configured:

more http://153.121.72.212/ip/

Related Topic