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.
Description of problem:
using old style ifcfg-eno1 (using dhcp) and ifcfg-eno1:1 (adding a secondary static ip) as configuration files in /etc/sysconfig.
Starting with the old network.service, the dhcp address is the primary ip and the static configured ip is secondary.
Starting with the NetworkManager.service, the dhcp address becomes the secondary ip.
Version-Release number of selected component (if applicable):
NetworkManager-1.4.0-14.el7_3.x86_64
initscripts-9.49.37-1.el7.x86_64
How reproducible:
always
Steps to Reproduce:
1. place /etc/sysconfig/network/scripts-ifcfg-eno1
DEVICE="eno1"
NAME="eno1"
ONBOOT="yes"
BOOTPROTO="dhcp"
PERSISTENT_DHCLIENT="yes"
IPV6INIT="no"
PEERDNS="yes"
2. place /etc/sysconfig/network/scripts-ifcfg-eno1:1
DEVICE="eno1:1"
NAME="eno1:1"
ONBOOT="yes"
IPADDR="192.168.10.100"
NETMASK="255.255.255.0"
IPV6INIT="no"
3. systemctl enable NetworkManager.service
4. reboot
Actual results:
ip a
2: eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
link/ether x brd ff:ff:ff:ff:ff:ff
inet 192.168.10.100/24 brd 192.168.10.255 scope global primary eno1:1
valid_lft forever preferred_lft forever
inet 192.168.10.2/24 brd 192.168.10.255 scope global secondary dynamic
valid_lft 517796sec preferred_lft 517796sec
Expected results:
ip a
2: eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
link/ether x brd ff:ff:ff:ff:ff:ff
inet 192.168.10.2/24 brd 192.168.10.255 scope global primary dynamic
valid_lft 517796sec preferred_lft 517796sec
inet 192.168.10.100/24 brd 192.168.10.255 scope global secondary eno1:1
valid_lft forever preferred_lft forever
I think this is a duplicate of bug 1394500.
Beniamino?
Comment 3Beniamino Galvani
2017-01-27 13:00:34 UTC
(In reply to Thomas Haller from comment #1)
> I think this is a duplicate of bug 1394500.
> Beniamino?
Yes, it's the same bug; IP addresses are being sorted by source/value before they are applied.
I'm closing this as duplicate.
*** This bug has been marked as a duplicate of bug 1394500 ***
Description of problem: using old style ifcfg-eno1 (using dhcp) and ifcfg-eno1:1 (adding a secondary static ip) as configuration files in /etc/sysconfig. Starting with the old network.service, the dhcp address is the primary ip and the static configured ip is secondary. Starting with the NetworkManager.service, the dhcp address becomes the secondary ip. Version-Release number of selected component (if applicable): NetworkManager-1.4.0-14.el7_3.x86_64 initscripts-9.49.37-1.el7.x86_64 How reproducible: always Steps to Reproduce: 1. place /etc/sysconfig/network/scripts-ifcfg-eno1 DEVICE="eno1" NAME="eno1" ONBOOT="yes" BOOTPROTO="dhcp" PERSISTENT_DHCLIENT="yes" IPV6INIT="no" PEERDNS="yes" 2. place /etc/sysconfig/network/scripts-ifcfg-eno1:1 DEVICE="eno1:1" NAME="eno1:1" ONBOOT="yes" IPADDR="192.168.10.100" NETMASK="255.255.255.0" IPV6INIT="no" 3. systemctl enable NetworkManager.service 4. reboot Actual results: ip a 2: eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000 link/ether x brd ff:ff:ff:ff:ff:ff inet 192.168.10.100/24 brd 192.168.10.255 scope global primary eno1:1 valid_lft forever preferred_lft forever inet 192.168.10.2/24 brd 192.168.10.255 scope global secondary dynamic valid_lft 517796sec preferred_lft 517796sec Expected results: ip a 2: eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000 link/ether x brd ff:ff:ff:ff:ff:ff inet 192.168.10.2/24 brd 192.168.10.255 scope global primary dynamic valid_lft 517796sec preferred_lft 517796sec inet 192.168.10.100/24 brd 192.168.10.255 scope global secondary eno1:1 valid_lft forever preferred_lft forever