LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-29-2019, 06:10 AM   #1
greyarea
LQ Newbie
 
Registered: Jan 2008
Distribution: Centos5/RHEL5
Posts: 27

Rep: Reputation: 0
nmcli connection.id renaming not persistent across reboots.


Hi All,

On my system a nmcli con sh gives the following

Code:
NAME                  UUID                                  TYPE      DEVICE
bond0-slave-enp3s0f0  73f91656-7e0e-4fd9-9b93-95cb474436af  ethernet  enp3s0f0
bond0-slave-enp3s0f1  9f6ab107-4c1f-4b9d-a908-55562155ee97  ethernet  enp3s0f1
bond1-slave-ens1f1    3e1457de-b89a-40db-abb7-6f2ce9ba2314  ethernet  ens1f1
bond1-slave-ens2f1    7dc1759b-2841-485a-9d40-72bf02ef510e  ethernet  ens2f1
bond-bond0-mgmt       9cb8796b-3058-4f7f-8925-9d1023372fdc  bond      bond0
bond-bond1-sg         93f81b7b-605e-49d9-9096-25d472de27ac  bond      bond1
ens1f0                507b0ce8-78bb-4d01-8d79-ba5dcc07dc39  ethernet  ens1f0
iscsi2.ens2f0         20d55a9c-6655-4f74-ad1a-22d2299ee2ba  ethernet  ens2f0
enp4s0f0              037180c5-ea8d-42fe-9f16-e8ddfafe1a26  ethernet  --
enp4s0f1              a62f0a5e-d9f2-4c38-af6a-d5b1e8ba3298  ethernet  --
I rename the ens1f0 connection to match the convention for ens2f0, nmcli con sh then gives the following.

Code:
[root@host network-scripts]# nmcli con sh
NAME                  UUID                                  TYPE      DEVICE
bond0-slave-enp3s0f0  73f91656-7e0e-4fd9-9b93-95cb474436af  ethernet  enp3s0f0
bond0-slave-enp3s0f1  9f6ab107-4c1f-4b9d-a908-55562155ee97  ethernet  enp3s0f1
bond1-slave-ens1f1    3e1457de-b89a-40db-abb7-6f2ce9ba2314  ethernet  ens1f1
bond1-slave-ens2f1    7dc1759b-2841-485a-9d40-72bf02ef510e  ethernet  ens2f1
bond-bond0-mgmt       9cb8796b-3058-4f7f-8925-9d1023372fdc  bond      bond0
bond-bond1-sg         93f81b7b-605e-49d9-9096-25d472de27ac  bond      bond1
iscsi1.ens1f0         507b0ce8-78bb-4d01-8d79-ba5dcc07dc39  ethernet  ens1f0
iscsi2.ens2f0         20d55a9c-6655-4f74-ad1a-22d2299ee2ba  ethernet  ens2f0
enp4s0f0              037180c5-ea8d-42fe-9f16-e8ddfafe1a26  ethernet  --
enp4s0f1              a62f0a5e-d9f2-4c38-af6a-d5b1e8ba3298  ethernet  --
However, when I reboot the system it reverts back to the original configuraton. It's driving me mad - I've tried deleting the connection and allowing it to be recreated, manually setting "NAME=" in the config file - it always reverts.

What's going on?

Last edited by greyarea; 07-29-2019 at 06:12 AM.
 
Old 07-30-2019, 05:53 AM   #2
dc.901
Member
 
Registered: Aug 2018
Location: Atlanta, GA - USA
Distribution: CentOS 6-7; SuSE 8-12
Posts: 599

Rep: Reputation: 174Reputation: 174
Quote:
Originally Posted by greyarea View Post
However, when I reboot the system it reverts back to the original configuraton. It's driving me mad - I've tried deleting the connection and allowing it to be recreated, manually setting "NAME=" in the config file - it always reverts.
Which config file? And, can you share the content?

Anything in /var/log/boot.log or dmesg about this?
 
Old 08-07-2019, 05:17 AM   #3
greyarea
LQ Newbie
 
Registered: Jan 2008
Distribution: Centos5/RHEL5
Posts: 27

Original Poster
Rep: Reputation: 0
Quote:
Anything in /var/log/boot.log or dmesg about this?
Not that I can see, I forgot to mention that the interface is used for iSCSI boot so I wonder if it's locked somehow?

I tried to update it and rebuilt with dracut but didn't have any success. It's reproducable on all my iSCSI boot systems so seems like that's the likely reason.
 
Old 08-07-2019, 05:21 AM   #4
greyarea
LQ Newbie
 
Registered: Jan 2008
Distribution: Centos5/RHEL5
Posts: 27

Original Poster
Rep: Reputation: 0
Quote:
Which config file? And, can you share the content?
/etc/sysconfig/network-scripts/ifcfg-ens1f0

Code:
# Generated by dracut initrd
NAME="ens1f0"
HWADDR="90:e2:ba:46:05:34"
DEVICE="ens1f0"
ONBOOT=yes
NETBOOT=yes
UUID="09b80857-318f-4bb0-b2c0-38a421d23322"
IPV6INIT=yes
BOOTPROTO=none
IPADDR="192.168.10.31"
NETMASK="255.255.255.0"
TYPE=Ethernet
 
Old 08-07-2019, 05:51 AM   #5
dc.901
Member
 
Registered: Aug 2018
Location: Atlanta, GA - USA
Distribution: CentOS 6-7; SuSE 8-12
Posts: 599

Rep: Reputation: 174Reputation: 174
At first glance; the UUID does not match; your config file has: "09b80857-318f-4bb0-b2c0-38a421d23322"
But, output of nmcli shows "037180c5-ea8d-42fe-9f16-e8ddfafe1a26"
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
nmcli connection questions chickenjoy Linux - Networking 6 11-08-2017 01:40 AM
HD-Audio: ALSA settings not persistent across reboots. stf92 Slackware 18 01-09-2013 03:32 AM
making sys v message queues persistent across system reboots. avee137 Programming 2 08-01-2012 04:37 PM
[SOLVED] wicd not saving network connection info across reboots hellomynameisphil Linux - Wireless Networking 2 02-10-2012 11:46 PM
Persistent persistent Persistent Going Nuts Here Fcukinyahoo Linux - Newbie 6 11-17-2011 09:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration