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 1144614

Summary: Adding static route makes interface disappear from NetworkManager list of interfaces
Product: Red Hat Enterprise Linux 6 Reporter: Tuan Hoang <tqhoang>
Component: NetworkManagerAssignee: Lubomir Rintel <lrintel>
Status: CLOSED ERRATA QA Contact: Desktop QE <desktop-qa-list>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.5CC: danw, dcbw, jklimes, lrintel, mdomonko, rkhan, thaller, tpelka, tqhoang
Target Milestone: rc   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: NetworkManager-0.8.1-77.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-07-22 05:58:14 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:
Attachments:
Description Flags
eth0 configuration
none
eth0 static route none

Description Tuan Hoang 2014-09-19 22:05:22 UTC
Description of problem:
Adding static route(s) to an interface cause the interface to get removed from the list of interfaces managed by NetworkManager.

Version-Release number of selected component (if applicable):
NetworkManager-0.8.1-66.el6.i686

How reproducible:
Always

Steps to Reproduce:
1. Configure static IP for eth0.
2. Add static route for eth0.
   Ex: ADDRESS0=224.0.0.0
       NETMASK0=240.0.0.0
       GATEWAY0=0.0.0.0
3. Save settings and exit.


Actual results:
1. NetworkManager no longer displays eth0 in list of interfaces.
2. Also the network service cannot start eth0 because it is still NM_CONTROLLED=yes and has a UUID entry.  So if you reboot, the box is not configuring eth0 anymore and offline.


Workaround:
1. Don't use static routes (i.e. remove route-eth0 file).
    OR
2. Use network service (edit ifcfg-eth0 and set NM_CONTROLLED=no and comment-out UUID).


Expected results:
1. NetworkManager still manages eth0 and static routes work.


Additional info:
I am using kernel param "biosdevname=0" to preserve the eth0 network interface naming because I have software licenses tied to "eth0" MAC address.

Comment 2 Dan Winship 2014-09-20 14:12:07 UTC
Can you attach the exact ifcfg/route files that you're using? And what does NM log to /var/log/messages when this happens? Presumably it's disappearing because NM can't parse the config now.

Comment 3 Jirka Klimes 2014-09-22 13:37:06 UTC
I think it may be a duplicate of bug 1111672.

Comment 4 Tuan Hoang 2014-09-23 20:28:34 UTC
Created attachment 940604 [details]
eth0 configuration

Comment 5 Tuan Hoang 2014-09-23 20:28:59 UTC
Created attachment 940605 [details]
eth0 static route

Comment 6 Tuan Hoang 2014-09-23 20:30:51 UTC
I attached my ifcfg-eth0 and route-eth0 files.  If you simply drop the route-eth0 file into /etc/sysconfig/network-scripts folder, the interface disappears from NetworkManager.

Also if I remove the file, NetworkManager doesn't reload the interface unless I "touch ifcfg-eth0".

Comment 7 Tuan Hoang 2014-09-24 12:59:54 UTC
(In reply to Jirka Klimes from comment #3)
> I think it may be a duplicate of bug 1111672.

I can't see that bug#...not authorized.

Comment 8 Dan Winship 2014-09-24 13:16:15 UTC
It is the same bug, and we have a patch for it. I'll update this bug when we have a test package available.

Comment 9 Tuan Hoang 2014-09-25 21:23:23 UTC
(In reply to Dan Winship from comment #8)
> It is the same bug, and we have a patch for it. I'll update this bug when we
> have a test package available.

Thanks.  Look forward to testing it.

Comment 10 Tuan Hoang 2014-10-06 14:21:04 UTC
Any progress on this?  If there is a patched version in Fedora, can you direct me to it?

Comment 12 Lubomir Rintel 2014-10-31 09:46:28 UTC
(In reply to Tuan Hoang from comment #10)
> Any progress on this?  If there is a patched version in Fedora, can you
> direct me to it?

The package with the patch applied is here.
http://people.freedesktop.org/~lkundrak/rh1144614-NetworkManager-0.8.1-76.el6/

Comment 13 Tuan Hoang 2014-10-31 17:56:51 UTC
Thank you.  I'm currently on out of the office, but will try to get this tested by Nov 11th.

Comment 14 Tuan Hoang 2014-11-11 22:21:57 UTC
The patch works great.  Please push this out to production.

Comment 15 Dan Williams 2014-12-02 19:19:36 UTC
POST because we have a patch, though this bug is really a duplicate of bug 1111672.

Comment 19 errata-xmlrpc 2015-07-22 05:58:14 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-2015-1257.html