Hi everyone - I'm going to be deploying several thousand 871s (12.4.15T1) using Zero Touch Deployment. Each router will have internet connectivity via some broadband service. I'm also going to be using SCEP to enroll each router to our PKI infrastructure. In order to do SCEP enrollment, our RA requires the router's public IP address. We're going to be sending techs out to each site, and I'd like to setup an IOS menu for them that will have an option to display the router's fast4 IP address. In some cases, the router will get a public address directly, in other cases it will be a private IP address. If fast4 does get a public address, I could solve this easily with a show ip int brief fast4, but if it gets a private address, that command won't do a whole lot of good.
Besides having the tech connect their laptop to the router and browsing to a website like myipaddress.com and reading the results, can anyone think of a good way to get that info via a cli command (or aliased command) so I can make a menu item for it?
The farthest I've gotten was to telnet to checkip.dyndns.org on tcp
80, and if I issue a GET, it will show the IP address (and other html code), but I'm not sure how to put all that together in a single command that could be executed via cli.TIA.