[c-nsp] SNMP: IP => vlan + mac
Liviu Pislaru
liviu.pislaru at rdsnet.ro
Thu Aug 26 18:13:58 EDT 2004
Hi everyone,
I have a 3750 Cisco router, i have vlan 80 defined on it.
Interface Vlan 80
ip address 10.11.12.1 255.255.255.0 secondary
ip address 10.5.16.1 255.255.255.0 secondary
ip address 10.4.3.1 255.255.255.0 secondary
ip address 10.12.230.1 255.255.255.0 secondary
ip address 45.46.47.1 255.255.255.0
Routing entry for 10.5.16.0/24
* directly connected, via Vlan80
Protocol Address Age (min) Hardware Addr Type Interface
Internet 10.5.16.7 47 0007.eb95.9b80 ARPA Vlan80
-----------------------------------------------------------
My question here is:
Is there a posibility to obtain via SNMP a mac-address (0007.eb95.9b80) from
arp table for IP address 10.5.16.7 ?
I know that you can obtain that via SNMP if you know vlan number.
snmpwalk -v2c -c public my-router.domain.com .1.3.6.1.2.1.4.22.1.2.
[vlan].[ip]
snmpwalk -v2c -c public
my-router.domain.com .1.3.6.1.2.1.4.22.1.2.80.10.5.16.7
But How can I obtain the vlan number via SNMP if i know an IP address ?
Example: for 10.5.16.7 to obtain vlan80.
Routing entry for 10.5.16.0/24
* directly connected, via Vlan80
I'll appreciate any support, thancks !
More information about the cisco-nsp
mailing list