[opensuse] Eth interface has no static ipv4 assigned and usable when there is no link during interface upbringing?
Hello. Some machine today had power problems of an attached ethernet switch, and the ethx interface of the 13.2 x64 machine only had some ipv6 linklocal or so address assigned even when the switch came back. There used to be commands such as rcnetwork restart ethx I am unsure if this is because of some lackings of wicked components that there is this odd behavior. I also tried wicked ifreload or similar commands but I couldnt make it to restart reinitialise the network interface that had problem. Can I not set an ip address without the actual network cord being plugged in and having an ethernet link with a partner ethernet device? I can remember older Suse versions where I never had such problems. At the end I needed to reboot the whole machine just to have that ipv4 address on that interface again working. Thank you for helping. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
cagsm wrote:
Hello.
Some machine today had power problems of an attached ethernet switch, and the ethx interface of the 13.2 x64 machine only had some ipv6 linklocal or so address assigned even when the switch came back.
There used to be commands such as rcnetwork restart ethx
I am unsure if this is because of some lackings of wicked components that there is this odd behavior.
I think you need to enable the wicked nanny. I had something similar happen to me a couple of weeks ago. I had an interface with dhcp that was not connected at startup, therefore it got no IP address.
Can I not set an ip address without the actual network cord being plugged in and having an ethernet link with a partner ethernet device?
You probably can with "ip addr add", but I suspect wicked will only do it on start-up or when the cable is plugged in (for startmode=ifplug), otherwise with the nanny.
At the end I needed to reboot the whole machine just to have that ipv4 address on that interface again working.
From memory:
ip link set dev ethx up ip addr add x.x.x.x dev ethx -- Per Jessen, Zürich (12.7°C) http://www.dns24.ch/ - your free DNS host, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
* Per Jessen <per@computer.org> [03-24-15 07:44]:
cagsm wrote:
Hello.
Some machine today had power problems of an attached ethernet switch, and the ethx interface of the 13.2 x64 machine only had some ipv6 linklocal or so address assigned even when the switch came back.
There used to be commands such as rcnetwork restart ethx
I am unsure if this is because of some lackings of wicked components that there is this odd behavior.
I think you need to enable the wicked nanny. I had something similar happen to me a couple of weeks ago. I had an interface with dhcp that was not connected at startup, therefore it got no IP address.
Can I not set an ip address without the actual network cord being plugged in and having an ethernet link with a partner ethernet device?
You probably can with "ip addr add", but I suspect wicked will only do it on start-up or when the cable is plugged in (for startmode=ifplug), otherwise with the nanny.
At the end I needed to reboot the whole machine just to have that ipv4 address on that interface again working.
From memory:
ip link set dev ethx up ip addr add x.x.x.x dev ethx
On my Tw, "ifup ethx" still works with dwicked :^) -- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.org openSUSE Community Member facebook/ptilopteri http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 Registered Linux User #207535 @ http://linuxcounter.net -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Patrick Shanahan wrote:
* Per Jessen <per@computer.org> [03-24-15 07:44]:
cagsm wrote:
Hello.
Some machine today had power problems of an attached ethernet switch, and the ethx interface of the 13.2 x64 machine only had some ipv6 linklocal or so address assigned even when the switch came back.
There used to be commands such as rcnetwork restart ethx
I am unsure if this is because of some lackings of wicked components that there is this odd behavior.
I think you need to enable the wicked nanny. I had something similar happen to me a couple of weeks ago. I had an interface with dhcp that was not connected at startup, therefore it got no IP address.
Can I not set an ip address without the actual network cord being plugged in and having an ethernet link with a partner ethernet device?
You probably can with "ip addr add", but I suspect wicked will only do it on start-up or when the cable is plugged in (for startmode=ifplug), otherwise with the nanny.
At the end I needed to reboot the whole machine just to have that ipv4 address on that interface again working.
From memory:
ip link set dev ethx up ip addr add x.x.x.x dev ethx
On my Tw, "ifup ethx" still works with dwicked :^)
You're right, I kind of assumed cagsm had already tried that. -- Per Jessen, Zürich (12.9°C) http://www.dns24.ch/ - free dynamic DNS, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Per Jessen wrote:
cagsm wrote:
Hello.
Some machine today had power problems of an attached ethernet switch, and the ethx interface of the 13.2 x64 machine only had some ipv6 linklocal or so address assigned even when the switch came back.
There used to be commands such as rcnetwork restart ethx
I am unsure if this is because of some lackings of wicked components that there is this odd behavior.
I think you need to enable the wicked nanny. I had something similar happen to me a couple of weeks ago. I had an interface with dhcp that was not connected at startup, therefore it got no IP address.
https://bugzilla.opensuse.org/show_bug.cgi?id=915025 See comment4 for an explanation of why the wicked nanny wasn't enabled by default. -- Per Jessen, Zürich (12.9°C) http://www.hostsuisse.com/ - virtual servers, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
cagsm wrote:
Hello.
Some machine today had power problems of an attached ethernet switch, and the ethx interface of the 13.2 x64 machine only had some ipv6 linklocal or so address assigned even when the switch came back.
There used to be commands such as rcnetwork restart ethx
how about ifup/ifdown? if those don't work /etc/rc.d/network restart used to be the easy way... *cough*... Can't sysd be told to rerun the network setup? Isn't sysd's reliability in responding to errors and restarting services one of the main reasons for using it? Seems like it should be monitoring the state of the net and resetting/restarting it as soon as it sees a link light... I know the old init scripts used to be at least that capable. There has to be a way for sysd to be config'ed to do that automatically.... now if there was only a way of finding how in the documenation... If that doesn't work, you might want to learn the 'ip' command... (sigh) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (4)
-
cagsm
-
Linda Walsh
-
Patrick Shanahan
-
Per Jessen