Use SNMP to edit (Add/Remove/modify) ARP table

Source: Internet
Author: User
Tags rfc1213 snmp

Introduced

This tool displays and modifies the ip/Physical Address table (ARP table) like the Windows command-line tool Arp.exe.

The tool will do two things:

1) Display ARP table

2) Add, delete, modify ARP table

These two tasks are accomplished through the SNMP (Simple Network Management Protocol) extension library.

Handling IP and MAC addresses via SNMP

You can read or modify the ARP table through SNMP to get or set object information through SNMP. The request and response of SNMP commands are based on the MIB (Management information Base).

MIB is a tree-mounted structure, MIB has all the manageable objects for us, more information can refer to RFC1213 (http://www.ietf.org/rfc/rfc1213.txt),

You can also view files:%systemroot%\system32\*.mib, which you can use Notepad.exe to open and view all entries in the%systemroot%\system32\mib_ii.mib.

The following is the MIB Ipnettomediaentry entry

ipNetToMediaEntry OBJECT-TYPE
       SYNTAX IpNetToMediaEntry
       ACCESS not-accessible
       STATUS mandatory
       DESCRIPTION
           "Each entry contains one IpAddress to 'physical'
           address equivalence."
       INDEX  { ipNetToMediaIfIndex,
            ipNetToMediaNetAddress }
       ::= { ipNetToMediaTable 1 }

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.