On 16/7/24 10:31 am, Todd Zullinger wrote:
fed...@eyal.emu.id.au wrote:
How do I check that these keyfiles were created?

This is a handy command for checking what file defines a connection:

     $ nmcli -f name,filename,device connection

NAME                FILENAME                                                    
                                          DEVICE
Wired connection 2  /run/NetworkManager/system-connections/Wired connection 
2.nmconnection                                enp2s0
System eth1         /etc/NetworkManager/system-connections/System 
eth1.nmconnection                                       --
System eth1         /etc/NetworkManager/system-connections/System 
eth1-9c92fad9-6ecb-3e6c-eb4d-8a47c6f50c04.nmconnection  --
Wired connection 1  /etc/NetworkManager/system-connections/Wired connection 
1.nmconnection                                --
[ignoring 'lo' and 'virbr0')

$ ls -l /run/NetworkManager/system-connections/* 
/etc/NetworkManager/system-connections/*
-rw------- 1 root root 271 Jul 14 20:17 
'/etc/NetworkManager/system-connections/System 
eth1-9c92fad9-6ecb-3e6c-eb4d-8a47c6f50c04.nmconnection'
-rw------- 1 root root 318 Jul 13 12:59 
'/etc/NetworkManager/system-connections/System eth1.nmconnection'
-rw------- 1 root root 306 Jul 13 12:59 
'/etc/NetworkManager/system-connections/Wired connection 1.nmconnection'
-rw------- 1 root root 272 Jul 14 16:51 
'/run/NetworkManager/system-connections/Wired connection 2.nmconnection'

And nm-connection-editor shows ether connections:
                                Last Used       Device
        Wired connection 2      2 days ago      enp2s0
        System eth1             3 days ago      eth1 (00:1B:21:3A:56:72)
        Wired connection 1      4 years ago     B4:2E:99:83:6D:7D               
# note: this is eth0 MAC
        System eth1             never           eth1 (00:1B:21:3A:56:72)
Interestingly the first two both refer to my eth1 (00:1B:21:3A:56:72).

Drilling down, the 'Device' drop down list offers 3 values:
        eth1 (00:1B:21:3A:56:72)
        enp2s0 (00:1B:21:3A:56:72)
        eth0 (B4:2E:99:83:6D:7D)

Should I remove the last (very old) connections? Maybe not because I will end 
up with two eth1 connections.

What I really want is:
        Wired connection 1      eth0 (B4:2E:99:83:6D:7D)        # like it is now
        Wired connection 2      eth1 (00:1B:21:3A:56:72)        # adjusted

Can I simply do this using the GUI?

--
Eyal at Home (fed...@eyal.emu.id.au)

--
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to