On FC31 I can't persistently rename the interfaces, see: https://bugzilla.redhat.com/show_bug.cgi?id=1777893
So I want to use FC31 interface names : enp1s0 and enp0s20u3.
I've used nmtui to set up the interfaces. But NM won't activate them because they are "strictly unmanaged" !!
How do I fix that ?
Is there some other way to persistently activate the interface ?
sean
cat /etc/sysconfig/network-scripts/ifcfg-enp* TYPE=Ethernet PROXY_METHOD=none BROWSER_ONLY=no BOOTPROTO=none IPADDR=10.10.11.251 PREFIX=24 DNS1=10.10.11.251 DEFROUTE=no IPV4_FAILURE_FATAL=no IPV6INIT=no IPV6_AUTOCONF=yes IPV6_DEFROUTE=yes IPV6_FAILURE_FATAL=no IPV6_ADDR_GEN_MODE=stable-privacy NAME=enp0s20u3 UUID=bf8aa45c-31e4-403a-9c14-c1a59bf0f2b2 ONBOOT=yes DEVICE=enp0s20u3
TYPE=Ethernet PROXY_METHOD=none BROWSER_ONLY=no BOOTPROTO=dhcp DEFROUTE=yes IPV4_FAILURE_FATAL=no IPV6INIT=yes IPV6_AUTOCONF=yes IPV6_DEFROUTE=yes IPV6_FAILURE_FATAL=no IPV6_ADDR_GEN_MODE=stable-privacy NAME=enp1s0 UUID=a1b089e9-5a13-4df7-8f09-9f54ebc56cea DEVICE=enp1s0 ONBOOT=yes
On 1/25/20 9:06 AM, sean darcy wrote:
On FC31 I can't persistently rename the interfaces, see: https://bugzilla.redhat.com/show_bug.cgi?id=1777893
So I want to use FC31 interface names : enp1s0 and enp0s20u3.
I've used nmtui to set up the interfaces. But NM won't activate them because they are "strictly unmanaged" !!
How do I fix that ?
Is there some other way to persistently activate the interface ?
What does "nmcli d" show?
On 1/25/20 3:33 PM, Samuel Sieb wrote:
On 1/25/20 9:06 AM, sean darcy wrote:
On FC31 I can't persistently rename the interfaces, see: https://bugzilla.redhat.com/show_bug.cgi?id=1777893
So I want to use FC31 interface names : enp1s0 and enp0s20u3.
I've used nmtui to set up the interfaces. But NM won't activate them because they are "strictly unmanaged" !!
How do I fix that ?
Is there some other way to persistently activate the interface ?
What does "nmcli d" show? _______________________________________________
It shows the state as unmanaged.
sean
On 1/25/20 5:18 PM, sean darcy wrote:
On 1/25/20 3:33 PM, Samuel Sieb wrote:
On 1/25/20 9:06 AM, sean darcy wrote:
On FC31 I can't persistently rename the interfaces, see: https://bugzilla.redhat.com/show_bug.cgi?id=1777893
So I want to use FC31 interface names : enp1s0 and enp0s20u3.
I've used nmtui to set up the interfaces. But NM won't activate them because they are "strictly unmanaged" !!
How do I fix that ?
Is there some other way to persistently activate the interface ?
What does "nmcli d" show? _______________________________________________
It shows the state as unmanaged.
sean
I can't cut and paste the output because I can't access the machine when it's on the FC31 kernel, since no interfaces are up. I have to manually reboot and use the keyboard, and then reboot to the Fc30 kernel.
Sigh.
sean
On 2020-01-26 06:34, sean darcy wrote:
I can't cut and paste the output because I can't access the machine when it's on the FC31 kernel, since no interfaces are up. I have to manually reboot and use the keyboard, and then reboot to the Fc30 kernel.
Sure you can....
Cut and Paste to a file and save it.
Boot to F30.
The file is still there.
On 1/25/20 5:38 PM, Ed Greshko wrote:
On 2020-01-26 06:34, sean darcy wrote:
I can't cut and paste the output because I can't access the machine when it's on the FC31 kernel, since no interfaces are up. I have to manually reboot and use the keyboard, and then reboot to the Fc30 kernel.
Sure you can....
Cut and Paste to a file and save it.
Boot to F30.
The file is still there.
Yes, of course. But it's more difficult when the machine is an hour away.
On 1/25/20 2:18 PM, sean darcy wrote:
On 1/25/20 3:33 PM, Samuel Sieb wrote:
On 1/25/20 9:06 AM, sean darcy wrote:
On FC31 I can't persistently rename the interfaces, see: https://bugzilla.redhat.com/show_bug.cgi?id=1777893
So I want to use FC31 interface names : enp1s0 and enp0s20u3.
I've used nmtui to set up the interfaces. But NM won't activate them because they are "strictly unmanaged" !!
How do I fix that ?
Is there some other way to persistently activate the interface ?
What does "nmcli d" show? _______________________________________________
It shows the state as unmanaged.
Try "nmcli d set enp1s0 managed on". I'm not sure if that's a persistent change though.
On 1/25/20 5:59 PM, Samuel Sieb wrote:
On 1/25/20 2:18 PM, sean darcy wrote:
On 1/25/20 3:33 PM, Samuel Sieb wrote:
On 1/25/20 9:06 AM, sean darcy wrote:
On FC31 I can't persistently rename the interfaces, see: https://bugzilla.redhat.com/show_bug.cgi?id=1777893
So I want to use FC31 interface names : enp1s0 and enp0s20u3.
I've used nmtui to set up the interfaces. But NM won't activate them because they are "strictly unmanaged" !!
How do I fix that ?
Is there some other way to persistently activate the interface ?
What does "nmcli d" show? _______________________________________________
It shows the state as unmanaged.
Try "nmcli d set enp1s0 managed on". I'm not sure if that's a persistent change though.
Well that didn't work:
# nmcli d DEVICE TYPE STATE CONNECTION eth1 ethernet connected eth1 wlan0 wifi unavailable -- eth0 ethernet unmanaged -- lo loopback unmanaged -- # nmcli d set eth0 managed on # nmcli d \DEVICE TYPE STATE CONNECTION eth1 ethernet connected eth1 wlan0 wifi unavailable -- eth0 ethernet unmanaged -- lo loopback unmanaged --
#nmcli d connect eth0 Error: Failed to add/activate new connection: Connection 'eth0' is not available on device eth0 because device is strictly unmanaged
I've now set net.iframes=0 on the kernel command line to keep udev from touching the interfaces. So I get eth0 and eth1. eth1 , a usb ethernet dongle works. But eth0 . a hw ethernet port, does not. I've inserted a [device] stanza in NetworkManager.conf to force eth0 manage, without success.
Here's syslog, with NetworkManager loglevel set to TRACE:
NetworkManager[983]: <info> [1580343605.6412] NetworkManager (version 1.20.10-1.fc31) is starting... (after a restart) NetworkManager[983]: <info> [1580343605.6412] Read config: /etc/NetworkManager/NetworkManager.conf (etc: 05-manage-enp-devices.conf, 10-dns.conf, 10-globally-managed-devices.conf, 10-manage-eth-devices.conf) NetworkManager[983]: <debug> [1580343605.6413] CONFIG: config-data[0x55d3ade6e190]: 4 groups NetworkManager[983]: <debug> [1580343605.6413] CONFIG: NetworkManager[983]: <debug> [1580343605.6413] CONFIG: [main] NetworkManager[983]: <debug> [1580343605.6413] CONFIG: dns=unbound NetworkManager[983]: <debug> [1580343605.6413] CONFIG: NetworkManager[983]: <debug> [1580343605.6414] CONFIG: [keyfile] NetworkManager[983]: <debug> [1580343605.6414] CONFIG: unmanaged-devices=none NetworkManager[983]: <debug> [1580343605.6414] CONFIG: NetworkManager[983]: <debug> [1580343605.6414] CONFIG: [logging] NetworkManager[983]: <debug> [1580343605.6414] CONFIG: level=TRACE NetworkManager[983]: <debug> [1580343605.6414] CONFIG: domains=ALL NetworkManager[983]: <debug> [1580343605.6415] CONFIG: NetworkManager[983]: <debug> [1580343605.6415] CONFIG: [device] NetworkManager[983]: <debug> [1580343605.6415] CONFIG: match-device=interface-name:eth0 NetworkManager[983]: <debug> [1580343605.6415] CONFIG: managed=1 NetworkManager[983]: <debug> [1580343605.6601] config: state: successfully read state file "/var/lib/NetworkManager/NetworkManager.state" ........... NetworkManager[983]: <trace> [1580343608.7972] settings: storage[5fb06bd0-0bb0-7ffb-45f1-d6edd65f3e03,71dd34028f47f61f/ifcfg-rh]: change event with connection "eth0" (file "/etc/sysconfig/network-scripts/ifcfg-eth0") NetworkManager[983]: <trace> [1580343619.3273] settings: update[5fb06bd0-0bb0-7ffb-45f1-d6edd65f3e03]: adding connection "eth0" (71dd34028f47f61f/ifcfg-rh) NetworkManager[983]: <trace> [1580343619.3275] settings-connection[3389af911e72c732,5fb06bd0-0bb0-7ffb-45f1-d6edd65f3e03]: update system secrets: secrets set NetworkManager[983]: <trace> [1580343619.3277] settings-connection[3389af911e72c732,5fb06bd0-0bb0-7ffb-45f1-d6edd65f3e03]: update agent secrets: secrets set NetworkManager[983]: <trace> [1580343619.3277] settings-connection[3389af911e72c732,5fb06bd0-0bb0-7ffb-45f1-d6edd65f3e03]: no timestamp from keyfile database "/var/lib/NetworkManager/timestamps" NetworkManager[983]: <trace> [1580343619.3277] settings-connection[3389af911e72c732,5fb06bd0-0bb0-7ffb-45f1-d6edd65f3e03]: no seen-bssids from keyfile database "/var/lib/NetworkManager/seen-bssids" NetworkManager[983]: <trace> [1580343619.3278] settings-connection[3389af911e72c732,5fb06bd0-0bb0-7ffb-45f1-d6edd65f3e03]: update settings-connection flags to visible (was none) NetworkManager[983]: <trace> [1580343619.3278] dbus-object[3389af911e72c732]: export: "/org/freedesktop/NetworkManager/Settings/6" NetworkManager[983]: <debug> [1580343619.3280] ++ connection 'new connection' (0x55d3adf05500/NMSimpleConnection/"802-3-ethernet"): [/org/freedesktop/NetworkManager/Settings/6] NetworkManager[983]: <debug> [1580343619.3280] ++ connection [ 0x55d3adf02330 ] NetworkManager[983]: <debug> [1580343619.3280] ++ connection.id = 'eth0' NetworkManager[983]: <debug> [1580343619.3280] ++ connection.interface-name = 'eth0' NetworkManager[983]: <debug> [1580343619.3280] ++ connection.permissions = [] NetworkManager[983]: <debug> [1580343619.3281] ++ connection.type = '802-3-ethernet' NetworkManager[983]: <debug> [1580343619.3281] ++ connection.uuid = '5fb06bd0-0bb0-7ffb-45f1-d6edd65f3e03' NetworkManager[983]: <debug> [1580343619.3281] ++ 802-3-ethernet [ 0x55d3adf04430 ] NetworkManager[983]: <debug> [1580343619.3281] ++ 802-3-ethernet.mac-address-blacklist = [] NetworkManager[983]: <trace> [1580343619.5332] ethtool[2]: ETHTOOL_GLINK, eth0: success NetworkManager[983]: <debug> [1580343619.5333] device[0x55d3adf56910] (eth0): constructed (NMDeviceEthernet) NetworkManager[983]: <debug> [1580343619.5333] device[0x55d3adf56910] (eth0): start setup of NMDeviceEthernet, kernel ifindex 2 NetworkManager[983]: <debug> [1580343619.5333] platform-linux: error reading net:/sys/class/net/eth0/phys_port_id: error reading 4096 bytes fro m file descriptor: Operation not supported NetworkManager[983]: <debug> [1580343619.5334] platform-linux: sysctl: reading 'net:/sys/class/net/eth0/dev_id': '0x0' NetworkManager[983]: <trace> [1580343619.5334] ethtool[2]: ETHTOOL_GDRVINFO, eth0: success NetworkManager[983]: <debug> [1580343619.5335] platform-linux: error reading net:/sys/class/net/eth0/device/sriov_totalvfs: Failed to open file "device/sriov_totalvfs" with openat: No such file or directory NetworkManager[983]: <trace> [1580343619.5335] ethtool[2]: ETHTOOL_GLINK, eth0: success NetworkManager[983]: <debug> [1580343619.5336] device[0x55d3adf56910] (eth0): hw-addr: hardware address now 50:7B:9D:0B:8A:AB NetworkManager[983]: <debug> [1580343619.5336] device[0x55d3adf56910] (eth0): hw-addr: update initial MAC address 50:7B:9D:0B:8A:AB NetworkManager[983]: <info> [1580343619.5336] device (eth0): carrier: link connected NetworkManager[983]: <trace> [1580343619.5336] ethtool[2]: ETHTOOL_GSET, eth0: success NetworkManager[983]: <debug> [1580343619.5337] device[0x55d3adf56910] (eth0): speed is now 1000 Mb/s NetworkManager[983]: <debug> [1580343619.5337] device[0x55d3adf56910] (eth0): unmanaged: flags set to [platform-init,!user-explicit=0x10/0x30/unmanaged/unrealized], set-managed [user-explicit=0x20]) NetworkManager[983]: <debug> [1580343619.5337] device[0x55d3adf56910] (eth0): unmanaged: flags set to [platform-init,!by-type,!user-explicit=0x10/0x38/unmanaged/unrealized], set-managed [by-type=0x8]) NetworkManager[983]: <debug> [1580343619.5337] device[0x55d3adf56910] (eth0): unmanaged: flags set to [platform-init,!by-type,!user-explicit,!user-conf=0x10/0x238/unmanaged/unrealized], set-managed [user-conf=0x200]) NetworkManager[983]: <debug> [1580343619.5338] device[0x55d3adf56910] (eth0): unmanaged: flags set to [platform-init,!sleeping,!by-type,!user-explicit,!user-conf=0x10/0x239/unmanaged/unrealized], set-managed [sleeping=0x1]) NetworkManager[983]: <trace> [1580343619.5338] dbus-object[2038a3692ce29462]: export: "/org/freedesktop/NetworkManager/Devices/4" NetworkManager[983]: <info> [1580343619.5341] manager: (eth0): new Ethernet device (/org/freedesktop/NetworkManager/Devices/4)
Any help really appreciated.
sean
On Thu, 30 Jan 2020 18:17:23 -0500 sean darcy wrote:
Any help really appreciated.
Install network-scripts, make a ifcfg file with NM_CONTROLLED=no, enable the "network" service, and get NetworkManager completely out of the picture.
That's what I've been doing for years every time NetworkManager fails to function on yet another fedora release.
On 1/30/20 6:33 PM, Tom Horsley wrote:
On Thu, 30 Jan 2020 18:17:23 -0500 sean darcy wrote:
Any help really appreciated.
Install network-scripts, make a ifcfg file with NM_CONTROLLED=no, enable the "network" service, and get NetworkManager completely out of the picture.
That's what I've been doing for years every time NetworkManager fails to function on yet another fedora release. _______________________________________________
BINGO !
systemctl enable network
NM_CONTROLLED=no in ifcfg-eth0.
And "It Works".
I owe you a beer, At least one!
But why should NetworkManager be so difficult?
sean
On 1/30/20 3:17 PM, sean darcy wrote:
On 1/25/20 5:59 PM, Samuel Sieb wrote:
On 1/25/20 2:18 PM, sean darcy wrote:
On 1/25/20 3:33 PM, Samuel Sieb wrote:
On 1/25/20 9:06 AM, sean darcy wrote:
On FC31 I can't persistently rename the interfaces, see: https://bugzilla.redhat.com/show_bug.cgi?id=1777893
So I want to use FC31 interface names : enp1s0 and enp0s20u3.
I've used nmtui to set up the interfaces. But NM won't activate them because they are "strictly unmanaged" !!
How do I fix that ?
Is there some other way to persistently activate the interface ?
What does "nmcli d" show? _______________________________________________
It shows the state as unmanaged.
Try "nmcli d set enp1s0 managed on". I'm not sure if that's a persistent change though.
Well that didn't work:
Usually booleans can be expressed as 0/1, false/true, off/on, no/yes, among others.
However, the nmcli manpage specifically states:
nmcli device set <device> managed { yes | no }
Just for spit and giggles try:
nmcli device set eth0 managed yes
My hunch is the manpage is incomplete. Let us know.
Mike Wright
On 1/30/20 6:54 PM, Mike Wright wrote:
nmcli device set eth0 managed yes
Good idea, but no, alas :
#nmcli d DEVICE TYPE STATE CONNECTION eth1 ethernet connected eth1 wlan0 wifi unavailable -- eth0 ethernet unmanaged -- lo loopback unmanaged -- # nmcli device set eth0 managed yes # nmcli d DEVICE TYPE STATE CONNECTION eth1 ethernet connected eth1 wlan0 wifi unavailable -- eth0 ethernet unmanaged -- lo loopback unmanaged --
On 1/30/20 6:54 PM, Mike Wright wrote:
On 1/30/20 3:17 PM, sean darcy wrote:
On 1/25/20 5:59 PM, Samuel Sieb wrote:
On 1/25/20 2:18 PM, sean darcy wrote:
On 1/25/20 3:33 PM, Samuel Sieb wrote:
On 1/25/20 9:06 AM, sean darcy wrote:
On FC31 I can't persistently rename the interfaces, see: https://bugzilla.redhat.com/show_bug.cgi?id=1777893
So I want to use FC31 interface names : enp1s0 and enp0s20u3.
I've used nmtui to set up the interfaces. But NM won't activate them because they are "strictly unmanaged" !!
How do I fix that ?
Is there some other way to persistently activate the interface ?
What does "nmcli d" show? _______________________________________________
It shows the state as unmanaged.
Try "nmcli d set enp1s0 managed on". I'm not sure if that's a persistent change though.
Well that didn't work:
Usually booleans can be expressed as 0/1, false/true, off/on, no/yes, among others.
However, the nmcli manpage specifically states:
nmcli device set <device> managed { yes | no }
Just for spit and giggles try:
nmcli device set eth0 managed yes
My hunch is the manpage is incomplete. Let us know.
Mike Wright _______________________________________________
Good idea, but alas, no :
#nmcli d DEVICE TYPE STATE CONNECTION eth1 ethernet connected eth1 wlan0 wifi unavailable -- eth0 ethernet unmanaged -- lo loopback unmanaged -- # nmcli device set eth0 managed yes # nmcli d DEVICE TYPE STATE CONNECTION eth1 ethernet connected eth1 wlan0 wifi unavailable -- eth0 ethernet unmanaged -- lo loopback unmanaged --