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 905868

Summary: Kernel removes ::1 but not 127.0.0.1 when setting lo down
Product: Red Hat Enterprise Linux 7 Reporter: Pavel Šimerda (pavlix) <psimerda>
Component: kernelAssignee: Jiri Pirko <jpirko>
Status: CLOSED WONTFIX QA Contact: Red Hat Kernel QE team <kernel-qe>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.0CC: jpirko, rkhan
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-03-08 10:07:02 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: 880347    

Description Pavel Šimerda (pavlix) 2013-01-30 11:01:39 UTC
Kernel removes ::1 but not 127.0.0.1 when setting lo down:

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN 
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever

# ip link set lo down

1: lo: <LOOPBACK> mtu 65536 qdisc noqueue state DOWN 
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo

Expected results:

As loopback addresses are automatically set up on activation of the loopback interface, I would expect both of them to be removed.

Actual results:

IPv6 loopback address is removed but IPv4 loopback address isn't.

Tested with:

kernel-3.7.4-204.fc18.x86_64
iproute-3.6.0-5.fc18.x86_64

Comment 2 Jiri Pirko 2013-02-05 14:22:12 UTC
This is not only for lo. All devices behave like this

Comment 3 Pavel Šimerda (pavlix) 2013-02-05 14:37:42 UTC
I was also surprised by learning that statically assigned IPv6 addresses are removed on 'ip link set .... down' which probably shouldn't be (IPv4 addresses have never been removed).

Comment 4 Pavel Šimerda (pavlix) 2013-02-05 15:25:15 UTC
(In reply to comment #2)
> This is not only for lo. All devices behave like this

Adding information after IRC talk:

For IPv4, only loopback address is an automatically assigned address by kernel. Therefore behavior regarding the loopback address is not comparable to the addresses assigned by userspace software.

I personally think, that kernel should automatically remove all (and only) addresses that it configured, when the interface is set down and that there shouldn't be any difference between IPv4 and IPv6 addresses, as they are the same in all other aspects.

Comment 5 Jiri Pirko 2013-03-08 10:07:02 UTC
Although I agree with you, I do not believe this behaviour can be changed upstream. It would break apps/scripts which expect all ipv6 addresses are removed on down. Closing this as wontfix. Please feel free to reopen if something changes.