Skip to content

SNMP: NETMASK MIB Enhancement #353

@ssithaia-ebay

Description

@ssithaia-ebay

Problem Statement:
-- Adding support of NETMASK MIB [ OID: 1.3.6.1.2.1.4.34.1.5.1] in snmp-subagent. This MIB returns the mapping between the assigned IP address and its network IP along with the netmask and IfIndex.

Root Cause:
-- New enhancement

Code changes:
-- Updated rfc1213.py from snmp-subagent to accomodate NETMASK MIB implementation.

Testing logs:

Interface     Master   IPv4 address/mask  Admin/Oper  BGP Neighbor  Neighbor IP
-----------   -------  ------------------ ------------ ------------- -------------
Ethernet8               192.168.10.5/32     down/down   N/A           N/A
Ethernet56              192.168.11.5/32     down/down   N/A           N/A
Ethernet200             192.168.12.5/32     down/down   N/A           N/A
docker0                 240.127.1.1/24      up/down     N/A           N/A
eth0                    192.168.1.1/24      up/up       N/A           N/A
lo                      

$ snmpwalk -v2c -c public 192.168.1.1 1.3.6.1.2.1.4.34.1.5.1
iso.3.6.1.2.1.4.34.1.5.1.4.192.168.1.1 = OID: iso.3.6.1.2.1.4.32.1.5.10000.1.4.192.168.1.0.24
iso.3.6.1.2.1.4.34.1.5.1.4.192.168.10.5 = OID: iso.3.6.1.2.1.4.32.1.5.9.1.4.192.168.10.5.32
iso.3.6.1.2.1.4.34.1.5.1.4.192.168.11.5 = OID: iso.3.6.1.2.1.4.32.1.5.57.1.4.192.168.11.5.32
iso.3.6.1.2.1.4.34.1.5.1.4.192.168.12.5 = OID: iso.3.6.1.2.1.4.32.1.5.201.1.4.192.168.12.5.32

iso.3.6.1.2.1.4.34.1.5.1.4.240.127.1.1 = OID: iso.3.6.1.2.1.4.32.1.5.7.1.4.240.127.1.0.24
iso.3.6.1.2.1.4.34.1.5.1.4.240.127.1.255 = OID: iso.3.6.1.2.1.4.32.1.5.7.1.4.240.127.1.0.24

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions