Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 627564

Summary: net-snmp does not report newly activated IPV6 interfaces
Product: Red Hat Enterprise Linux 6 Reporter: Olivier Fourdan <ofourdan>
Component: net-snmpAssignee: Jan Safranek <jsafrane>
Status: CLOSED ERRATA QA Contact: BaseOS QE Security Team <qe-baseos-security>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.0CC: kem, ksrot, myamazak, rvokal
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-05-19 14:13:19 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Olivier Fourdan 2010-08-26 12:22:37 UTC
Description of problem:

When using IPV6-MIB to query the count and description of IPV6 interfaces, only the interfaces up at the time of startup or first query are reported, any interface activated after is not reported.

Version-Release number of selected component (if applicable):

net-snmp-5.5-19.el6

How reproducible:

Always

Steps to Reproduce:

1. Make multiple network interfaces are configured on the system, but only one is active

2. Start wnmpd

    # service snmpd start

2. Query the description of IPV6 interfaces

    # snmpwalk -c public -v 1 localhost ipv6IfDescr
    IPV6-MIB::ipv6IfDescr.1 = STRING: lo
    IPV6-MIB::ipv6IfDescr.2 = STRING: eth0

3. Check that against /proc/net/if_inet6 and verify that all interfaces are listed:

    # cat /proc/net/if_inet6
    00000000000000000000000000000001 01 80 10 80       lo
    fe80000000000000565200fffe62b298 02 40 20 80     eth0
  
4. Start another network interface

    # ifup eth1
    Determining IP information for eth1... done.

5. Verify that the itnerface is now listed in /proc/net/if_inet6

    # cat /proc/net/if_inet6
    00000000000000000000000000000001 01 80 10 80       lo
    fe80000000000000565200fffe62b298 02 40 20 80     eth0
    fe80000000000000565200fffe7fb5b4 03 40 20 80     eth1

6. Redo the snmpwalk query

    # snmpwalk -c public -v 1 localhost ipv6IfDescr
    IPV6-MIB::ipv6IfDescr.1 = STRING: lo
    IPV6-MIB::ipv6IfDescr.2 = STRING: eth0

Actual results:

The last started interface (eth1) is not listed

Expected results:

All IPV6 interfaces are listed

Additional info:

The same goes for the count if interfaces (snmpwalk -c public -v 1 localhost ipv6Interfaces)

However, an existing interface being taken down is not reported:

1. Start with 3 interfaces:

    # cat /proc/net/if_inet6
    00000000000000000000000000000001 01 80 10 80       lo
    fe80000000000000565200fffe62b298 02 40 20 80     eth0
    fe80000000000000565200fffe7fb5b4 03 40 20 80     eth1

2. Restart snmpd to sure all 3 interfaces are known:

    # service snmpd restart
    # snmpwalk -c public -v 1 localhost ipv6IfDescr
    IPV6-MIB::ipv6IfDescr.1 = STRING: lo
    IPV6-MIB::ipv6IfDescr.2 = STRING: eth0
    IPV6-MIB::ipv6IfDescr.3 = STRING: eth1

3. Bring one interfce down

   # ifdown eth1

4. Check /proc/net/if_inet6 again

    # cat /proc/net/if_inet6
    00000000000000000000000000000001 01 80 10 80       lo
    fe80000000000000565200fffe62b298 02 40 20 80     eth0

5. Check ipv6IfAdminStatus

    # snmpwalk -c public -v 1 localhost ipv6IfAdminStatus
    IPV6-MIB::ipv6IfAdminStatus.1 = INTEGER: up(1)
    IPV6-MIB::ipv6IfAdminStatus.2 = INTEGER: up(1)
    IPV6-MIB::ipv6IfAdminStatus.3 = INTEGER: down(2)

This time eth1 is reported as "down" as expected. So the problem is that the list of interfaces is not refreshed when a new interface is activated.

Note: This issue seems to be affecting el5 as well.

Comment 2 Jan Safranek 2010-10-06 15:04:46 UTC
ipv6IfTable is indeed broken, its rows are never updated - i.e. when an new interface shows up, it is not added to the table. The only thing that updates is state of the rows.

It applies also to current upstream SVN trunk.

Comment 19 errata-xmlrpc 2011-05-19 14:13:19 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2011-0729.html