[Bug 1177930] Wicked can not set static IP v4 address but works with DHCP
http://bugzilla.opensuse.org/show_bug.cgi?id=1177930 http://bugzilla.opensuse.org/show_bug.cgi?id=1177930#c2 Marius Tomaschewski <mt@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mt@suse.com --- Comment #2 from Marius Tomaschewski <mt@suse.com> --- (In reply to Krasimir Ivanov from comment #0)
Based on above I believe there must be a bug in Wiked, preventing to set successfuly static addresses if openSUSE Leap 15.2 will be installed as server.
I don't think so, but without to provide any config and logs as described at https://en.opensuse.org/openSUSE:Bugreport_wicked, we can't do anything to help you except of being in the dark. (In reply to Jonathan Brielmaier from comment #1)
Can you share the output of: $ ip addr $ wicked ifstatus all $ ls /etc/sysconfig/network/
I think I have the same issue when using Leap 15.2 in QEMU (Hetzner Cloud).
Yes, I think so. Either an installer or a no-carrier issue: Wicked will wait for carrier (L2 setup) before it starts (L3 setup) to apply any IP address on interfaces and will also check all (also IPv4) addresses for duplicates. See also `man 5 ifcfg` and https://github.com/openSUSE/wicked/wiki/FAQ.
My system has /etc/sysconfig/network/ifcfg-eth{0,1} but wicked sets up eth2 and eth3. Which don't have those config files. If I copy e.g. ifcfg-eth0 to ifcfg-eth2, I get this interface working.
Yes, this would be the installer / wrong interface configuration issue. Hint: don't copy but mv the ifcfg file to the right name (or wicked will wait for the not-existing one without any reason). Wicked never writes any /etc/sysconfig/network/ifcfg-* files, nor generates any or renames the interfaces. It's done by udev (regardless if wicked, the NetworkManager, systemd-networkd or whatever else is used for setup). The net.ifnames=1 systemd predictable network interface names (enp67s0 & Co) are assigned via /usr/lib/udev/rules.d/75-net-description.rules rule file. The (net.ifnames=0) persistent names (ethX as used here) are assigned in /usr/lib/udev/rules.d/75-persistent-net-generator.rules and generate the /etc/udev/rules.d/70-persistent-net.rules -- which may be also created by yast2-network, kiwi or other tools that configure things. Both cause to rename the more or less randomly assigned (eth++) names by the kernel drivers during the asynchronous interface detection to their final names and this has to match the /etc/sysconfig/network/ifcfg-${NAME}. While the installation, linuxrc is configuring the networks and (together with yast2) creates the configuration. See https://en.opensuse.org/SDB:Linuxrc (https://github.com/openSUSE/linuxrc) for more informations how to provide parameters to the installer. Note, that using or assuming e.g. `eth0` or `eth1` (e.g. `ifcfg=eth0=...`) will usually not work on systems with multiple network interfaces. Use `ifcfg=$IF_NAME=dhcp` for dhcp or `ifcfg=$IF_NAME=hostip,gateway,nameserver,domain` for static setup or `ifcfg=12:34:56:78:9A:BC=hostip,gateway,nameserver,domain` to use an interface with the above MAC address, for the installation. Linuxrc & yast2 on 15.2 are creating matching ifcfg-${NAME} files IMO, but there is a possibility later in the proposal to break this by deleting + creating further config for not-exising interface -- instead to change it. -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com