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 1292875

Summary: ifdown on an alias interface removes all IP addresses
Product: Red Hat Enterprise Linux 6 Reporter: Patrick Talbert <ptalbert>
Component: initscriptsAssignee: Lukáš Nykrýn <lnykryn>
Status: CLOSED ERRATA QA Contact: qe-baseos-daemons
Severity: urgent Docs Contact:
Priority: urgent    
Version: 6.7CC: aiyengar, haldir.junk, jnikolak, lpol, mpathan, psklenar, rmanes, tlavigne, wbachman
Target Milestone: rcKeywords: Regression, ZStream
Target Release: 6.8   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: initscripts-9.03.50-1.el6 Doc Type: Bug Fix
Doc Text:
Previously, when an alias interface was brought down using the ifdown command, the LABEL variable was not set due to a typo in the ifdown-eth script. Consequently, instead of removing just addresses belonging to the alias interface, all IP addresses on the device were removed. This bug has been fixed, and the script now correctly removes only IP addresses of the alias interface in this scenario.
Story Points: ---
Clone Of:
: 1300971 (view as bug list) Environment:
Last Closed: 2016-05-11 01:07:51 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1172231, 1300971    

Description Patrick Talbert 2015-12-18 15:43:20 UTC
Description of problem:
Running ifdown on an alias interface removes every IPv4 address from the interface.


Version-Release number of selected component (if applicable):
9.03.49-1.el6 to 9.03.49-1.el6_7.3


How reproducible:
Always.


Steps to Reproduce:
1. Create two aliases:

/etc/sysconfig/network-scripts/ifcfg-eth0
-------------------------------------------
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=static
IPADDR=192.168.122.101
NETMASK=255.255.255.0
GATEWAY=192.168.122.1
DNS1=192.168.122.1
DEFROUTE=yes

/etc/sysconfig/network-scripts/ifcfg-eth0:1
-------------------------------------------
DEVICE=eth0:1
BOOTPROTO=none
IPADDR=192.168.122.102
NETMASK=255.255.255.0
ONPARENT=no

/etc/sysconfig/network-scripts/ifcfg-eth0:2
-------------------------------------------
DEVICE=eth0:2
BOOTPROTO=none
IPADDR=192.168.122.103
NETMASK=255.255.255.0
ONPARENT=no



2. Bring them up with ifup:

# ip addr show eth0
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether 52:54:00:d8:c5:ea brd ff:ff:ff:ff:ff:ff
    inet 192.168.122.101/24 brd 192.168.122.255 scope global eth0
    inet 192.168.122.102/24 brd 192.168.122.255 scope global secondary eth0:1
    inet 192.168.122.103/24 brd 192.168.122.255 scope global secondary eth0:2
    inet6 fe80::5054:ff:fed8:c5ea/64 scope link 
       valid_lft forever preferred_lft forever



3. Bring one of them down with ifdown:

# ifdown eth0:1



Actual results:

All the IPv4 addresses are removed.



Expected results:

Only the eth0:1 secondary IP should be removed.



Additional info:

Appears to be related to the fix put in for BZ 1266861 ?

Comment 11 errata-xmlrpc 2016-05-11 01:07:51 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2016-0951.html