I don't know if I read this whole thing wrong, but I hope you're not missing out on something quite fundamental for IP searching to work.
NAV depends on having typically your routers or core switches added in order to be able to search for IPs. Typically your L2 switches does not contain any client ARP tables as your client VLAN normally is being routed on your core switch (or router, depending on your routing setup ofcourse) In short terms, you will need to have whatever is holding/routing your client VLAN added in NAV in order to see your clients IP addresses.
For example, lets say you get your guest VLAN delivered on L2 from another provider - you will never be able to search for the guest VLANs IPs as the CAM/ARP table is being held by your providers router/switch.
If your network is typically flat (with no VLANs or routing) - there is no link between your MAC addresses and IP addresses.
I hope that makes sense, and is somewhat helpful :)
Have a great weekend everyone!
------------------------------------------------------ Vidar Stokkenes Networking Consulant Networking and telecom Department Helse Nord IKT
Tlf: 76 16 61 87 / 77 66 99 55 Cell: 95 87 99 42 e-mail: vidar.stokkenes@hn-ikt.no
Before printing, think about the environment
-----Original Message----- From: Erik Weber [mailto:twiztar@gmail.com] Sent: 20. februar 2009 16:11 To: Morten Brekkevold Cc: nav-users@uninett.no Subject: Re: Seaching for IP/MAC-address
Erik Weber wrote:
Morten Brekkevold wrote:
On Fri, 20 Feb 2009 09:22:34 +0100 Erik Weber twiztar@gmail.com wrote:
They have 80-96 snmpoids each, and they all seem to have ipNetToMediaPhysAddress
Could try to verify that there are any ARP entries recorded at all, using psql:
sudo -u postgres psql nav
then in psql:
SELECT * FROM arp;
The sysname column documents which router the record was pulled from.
There's records there, but not those I wanted. Snmpwalking IP-MIB::ipNetToMediaPhysAddress doesn't reveal any more records either, so I guess there's where the problem lies.
I might have a flaw, these are primarily used as layer 2 switches and doesn't actually do any routing or other fancy stuff, I guess that's why there's no IP to ARP records on them..
-- Erik