Bug 752397

Summary: arping uses eth0 as default interface when none was specified
Product: [Fedora] Fedora Reporter: Jiri Popelka <jpopelka>
Component: iputilsAssignee: Jiri Skala <jskala>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 16CC: aglotov, jskala
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: iputils-20101006-11.fc16 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-11-14 00:49:26 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
Require -I option to be specified none

Description Jiri Popelka 2011-11-09 11:55:30 UTC
Created attachment 532548 [details]
Require -I option to be specified

Description of problem:
arping(8) says that the '-I interface' option is required but
arping allows not to specify it.

Version-Release number of selected component (if applicable):
iputils-20101006-10.fc16.x86_64

Steps to Reproduce:
1. Having no eth0 interface
2. arping 10.34.18.1
  
Actual results:
arping: unknown iface eth0

Expected results:
arping: device (option -I) is required
Usage: ...

Additional info:
Attached patch fixes the problem for me.

Comment 1 Fedora Update System 2011-11-10 09:34:02 UTC
iputils-20101006-11.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/iputils-20101006-11.fc16

Comment 2 Fedora Update System 2011-11-11 01:26:43 UTC
Package iputils-20101006-11.fc16:
* should fix your issue,
* was pushed to the Fedora 16 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing iputils-20101006-11.fc16'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2011-15755
then log in and leave karma (feedback).

Comment 3 Jiri Popelka 2011-11-11 13:28:55 UTC
Yes, it does now what you had described in bug #741195, comment #3 (including the bridge difficulties).

On my machine I have a br0 bridge and also em1 interface which is added to the br0 device.
1) When I run arping without -I specified it takes em1 as default interface (and I would like it to be br0 because em1 doesn't work in this case).
2) arping(8) still says that -I option is required which still doesn't match the reallity.

Note: There's still my proposed solution, which solves these problems (and could be better acceptable for upstream)  ;-)

Comment 4 Fedora Update System 2011-11-14 00:49:26 UTC
iputils-20101006-11.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.