[nzlug] wan ip address

Jim Cheetham jim at gonzul.net
Fri Jul 28 12:42:31 NZST 2006


On Fri, Jul 28, 2006 at 12:22:31PM +1200, Robin Sheat wrote:
> On Friday 28 July 2006 11:51, Sid Bachtiar wrote:
> > 1. Find out if the router supports SNMP
$ nmap -sV <router>
(assuming a recent version of nmap, and that the SNMP service is active,
rather than just being possible. Or read the router documentation, or
connect to its admin interface and have a look there)

or just try a direct v1 default query - 
$ snmpwalk -v 1 -c public <routerIP] 1.3.6.1.2.1.1.3.0

> > 2. Find out whats the wan ip address of that router

Errm, that'll be in the IP-MIB I think ...
$ snmpwalk -v 1 -c public <routerIP] 1.3.6.1.2.1.4.20

-jim





More information about the NZLUG mailing list