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 1276710 - Command 'ip n show' does not show items with NUD noarp or none
Summary: Command 'ip n show' does not show items with NUD noarp or none
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: iproute
Version: 7.2
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Phil Sutter
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-10-30 15:11 UTC by Jaroslav Aster
Modified: 2015-11-03 10:55 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1276724 (view as bug list)
Environment:
Last Closed: 2015-11-03 10:55:43 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Jaroslav Aster 2015-10-30 15:11:37 UTC
Description of problem:

If I change NUD to noarp or none, the item is not shown by command 'ip n show', but item still exists and I can work with it.


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

iproute-3.10.0-54.el7
iproute-3.16.0-4.fc22

How reproducible:

100%

Steps to Reproduce:

# ip l add test-iface type dummy
# ip l set dev test-iface up
# ip n show dev test-iface
# ip n add 192.168.100.2 lladdr 00:c0:7b:7d:00:c9 dev test-iface nud permanent
# ip n show dev test-iface
192.168.100.2 lladdr 00:c0:7b:7d:00:c9 PERMANENT
# ip n change 192.168.100.2 dev test-iface nud noarp
# ip n show dev test-iface
# ip n add 192.168.100.2 lladdr 00:c0:7b:7d:00:c9 dev test-iface nud permanent
RTNETLINK answers: File exists
# ip n change 192.168.100.2 dev test-iface nud permanent
# ip n show dev test-iface
192.168.100.2 lladdr 00:c0:7b:7d:00:c9 PERMANENT
# ip l del test-iface

The similar issues is with NUD none, but in this case I can not change only nud state, but item exists. I can only replace all item or change everything.

# ip l add test-iface type dummy
# ip l set dev test-iface up
# ip n show dev test-iface
# ip n add 192.168.100.2 lladdr 00:c0:7b:7d:00:c9 dev test-iface nud permanent
# ip n show dev test-iface
192.168.100.2 lladdr 00:c0:7b:7d:00:c9 PERMANENT
# ip n change 192.168.100.2 dev test-iface nud none
# ip n show dev test-iface
# ip n add 192.168.100.2 lladdr 00:c0:7b:7d:00:c9 dev test-iface nud permanent
RTNETLINK answers: File exists
# ip n change 192.168.100.2 dev test-iface nud permanent
RTNETLINK answers: Invalid argument
# ip n change 192.168.100.2 lladdr 00:c0:7b:7d:00:c9 dev test-iface nud permanent
# ip n show dev test-iface
192.168.100.2 lladdr 00:c0:7b:7d:00:c9 PERMANENT
# ip n change 192.168.100.2 dev test-iface nud none
# ip n replace 192.168.100.2 lladdr 00:c0:7b:7d:00:c9 dev test-iface nud permanent
# ip n show dev test-iface
192.168.100.2 lladdr 00:c0:7b:7d:00:c9 PERMANENT
# ip l del test-iface

Actual results:

Items with noarp or none are not shown.

Expected results:

Items are shown.

Additional info:

Comment 2 Jaroslav Aster 2015-11-03 10:55:43 UTC
My fault, this is not bug. I can not read :-(.

nud NUD_STATE
              only list neighbour entries in this state.  NUD_STATE takes values listed below or the special value all which means all states.  This option may occur more than once.  If this option is
              absent, ip lists all entries except for none and noarp.


Note You need to log in before you can comment on or make changes to this bug.