[server] automatically bring ethernet connection back up when router is rebooted

Hi everyone :slight_smile:

I’ve been using Debian based distros on my server and laptop for a few years now but I’m very new to opensuse, so please forgive me if I’m asking silly questions.

I installed opensuse 13.2 on my backup server a couple of months ago, which is an Intel NUC connected to a home router with an ethernet cable.

The problem is that if the router is rebooted or the connection drops, the ethernet connection doesn’t automatically reconnect.

I originally configured the ethernet adapter in Yast. Exploring Yast further, it seems that all the network settings are handled by Wicked.

Am I right in thinking that all I need to do is:

sudo cp /etc/wicked/common.xml /etc/wicked/local.xml

…and then in the new file, change

<use-nanny>false</use-nanny>

to

<use-nanny>true</use-nanny>

…and then

sudo wicked ifup all

?

I want to be sure because I don’t have physical access to the server right now, so if I mess it up I’ll be stuck.

Also, where are the actual configuration files for the ethernet adapter I configured in Yast? E.g. with NetworkManager they would be in /etc/network/interfaces ?

Thanks!

Hi
AFAIK, all you need to do is change the use-nanny option in common.xml and ensure the wickedd-nanny service is enabled and running…

To see theethernet info use;


wicked show all

Thanks! I’ll give it a shot.

I have another related question…

My first instinct was to install NetworkManager because I know it handles reconnection fine, but it seems I can’t do that because one of the dependencies conflicts with the minimal installation. I don’t want to install a whole DE on the server.

sam@NUC:~$ sudo zypper in networkmanager
Loading repository data...
Reading installed packages...
Resolving package dependencies...

Problem: NetworkManager-0.9.10.0-3.14.1.x86_64 requires libsoup-2.4.so.1()(64bit), but this requirement cannot be provided
  uninstallable providers: libsoup-2_4-1-2.48.0-1.1.x86_64[repo-oss]
                   libsoup-2_4-1-2.48.1-4.1.x86_64[repo-update]
 Solution 1: deinstallation of patterns-openSUSE-minimal_base-conflicts-20141007-5.1.x86_64
 Solution 2: do not install NetworkManager-0.9.10.0-3.14.1.x86_64
 Solution 3: do not install NetworkManager-0.9.10.0-3.14.1.x86_64
 Solution 4: break NetworkManager-0.9.10.0-3.14.1.x86_64 by ignoring some of its dependencies

Choose from above solutions by number or cancel [1/2/3/4/c] (c): 1
Resolving dependencies...
Resolving package dependencies...

The following 260 NEW packages are going to be installed:
  adwaita-icon-theme at-spi2-atk-common at-spi2-atk-gtk2 at-spi2-core avahi-autoipd
  bundle-lang-gnome-en cantarell-fonts cifs-utils cups-libs desktop-translations dhcp
  dhcp-client dnsmasq fontconfig fuse gcr-data gcr-prompter gcr-viewer gdk-pixbuf-lang
  gdk-pixbuf-query-loaders glib-networking glib-networking-lang gnome-keyring
  gnome-keyring-pam gnome-online-accounts gptfdisk gsettings-desktop-schemas gstreamer
  gstreamer-plugins-base gtk2-branding-openSUSE gtk2-data gtk2-immodule-amharic
  gtk2-immodule-inuktitut gtk2-immodule-thai gtk2-immodule-vietnamese gtk2-metatheme-adwaita
  gtk2-theming-engine-adwaita gtk2-tools gtk3-branding-openSUSE gtk3-data
  gtk3-immodule-amharic gtk3-immodule-inuktitut gtk3-immodule-thai gtk3-immodule-vietnamese
  gtk3-metatheme-adwaita gtk3-tools gvfs gvfs-backend-afc gvfs-backends gvfs-fuse
  hicolor-icon-theme hicolor-icon-theme-branding-openSUSE hunspell hunspell-tools iso-codes
  libarchive13 libasound2 libaspell15 libatasmart4 libatk-1_0-0 libatk-bridge-2_0-0 libatspi0
  libavahi-client3 libavahi-common3 libavahi-glib1 libbluetooth3 libbluray1 libcairo2
  libcairo-gobject2 libcanberra0 libcanberra-gtk0 libcanberra-gtk2-module libcanberra-gtk3-0
  libcanberra-gtk3-module libcanberra-gtk-module-common libcdda_interface0 libcdda_paranoia0
  libcdio14 libcdio_cdda1 libcdio_paranoia1 libcolord2 libdaemon0 libdcerpc0
  libdcerpc-binding0 libdrm2 libdrm_intel1 libdrm_nouveau2 libdrm_radeon1 libenchant1
  libexif12 libFLAC8 libfreebl3 libgbm1 libgck-1-0 libgck-modules-gnome-keyring libgcr-3-1
  libgd3 libgdk_pixbuf-2_0-0 libgensec0 libgeoclue0 libgnutls28 libgoa-1_0-0
  libgoa-backend-1_0-1 libgphoto2-6 libgraphite2-3 libgstapp-1_0-0 libgstaudio-1_0-0
  libgstfft-1_0-0 libgstpbutils-1_0-0 libgstreamer-1_0-0 libgstriff-1_0-0 libgsttag-1_0-0
  libgstvideo-1_0-0 libgthread-2_0-0 libgtk-2_0-0 libgtk-3-0 libharfbuzz0 libharfbuzz-icu0
  libhogweed2 libicu53_1 libicu53_1-ledata libiniparser0 libjasper1
  libjavascriptcoregtk-3_0-0 libjbig2 libjpeg8 libjson-c2 libjson-glib-1_0-0 liblcms2-2
  libldb1 libLLVM liblockdev1 libltdl7 libmbim-glib0 libmm-glib0 libmtp9 libndp0 libndr0
  libndr-krb5pac0 libndr-nbt0 libndr-standard0 libnetapi0 libnettle4 libnewt0_52 libnm-glib4
  libnm-glib-vpn1 libnm-gtk0 libnm-util2 libnotify4 libogg0 libopenobex2 liborc-0_4-0
  libpackagekit-glib2-18 libpango-1_0-0 libpcap1 libpciaccess0 libpdb0 libpixman-1-0
  libproxy1-networkmanager libproxy1-pacrunner-webkit libpulse0 libqmi-glib1 libqmi-tools
  libregistry0 librest0 libsamba-credentials0 libsamba-hostconfig0 libsamba-util0 libsamdb0
  libsecret-1-0 libslang2 libsmbclient0 libsmbclient-raw0 libsmbconf0 libsmbldap0 libsndfile1
  libsoftokn3 libsoup-2_4-1 libspeex1 libsqlite3-0 libtalloc2 libtdb1 libtelepathy-glib0
  libtevent0 libtevent-util0 libtheoradec1 libtheoraenc1 libtiff5 libudisks2-0 libvisual
  libvorbis0 libvorbisenc2 libvorbisfile3 libvpx1 libwayland-client0 libwayland-cursor0
  libwayland-server0 libwbclient0 libwebkitgtk-3_0-0 libwebkitgtk3-lang libwebp5 libX11-xcb1
  libxcb-dri2-0 libxcb-dri3-0 libxcb-glx0 libxcb-present0 libxcb-render0 libxcb-shm0
  libxcb-sync1 libxcb-xfixes0 libXcomposite1 libXcursor1 libXdamage1 libXevie1 libXfixes3
  libXft2 libXi6 libXinerama1 libxkbcommon-0_4_3 libXpm4 libXrandr2 libXrender1 libxshmfence1
  libxslt1 libXtst6 libXv1 libXxf86vm1 lockdev Mesa Mesa-libEGL1 Mesa-libGL1 Mesa-libglapi0
  metatheme-adwaita-common mobile-broadband-provider-info ModemManager mozilla-nss
  mozilla-nss-certs NetworkManager NetworkManager-gnome notification-daemon obex-data-server
  PackageKit PackageKit-backend-zypp PackageKit-branding-openSUSE PackageKit-gstreamer-plugin
  PackageKit-gtk3-module pango-tools ppp pytalloc python rp-pppoe samba-client samba-libs
  samba-winbind sound-theme-freedesktop tcl udisks2 usb_modeswitch usb_modeswitch-data
  wpa_supplicant

The following package is going to be REMOVED:
  patterns-openSUSE-minimal_base-conflicts

The following pattern is going to be REMOVED:
  minimal_base-conflicts

The following 31 recommended packages were automatically selected:
  avahi-autoipd bundle-lang-gnome-en cantarell-fonts dnsmasq gcr-viewer gdk-pixbuf-lang
  glib-networking-lang gnome-keyring-pam gnome-online-accounts gtk3-branding-openSUSE
  gtk3-immodule-amharic gtk3-immodule-inuktitut gtk3-immodule-thai gtk3-immodule-vietnamese
  gvfs gvfs-backend-afc gvfs-backends gvfs-fuse hunspell-tools libqmi-tools
  libwebkitgtk3-lang ModemManager NetworkManager-gnome notification-daemon obex-data-server
  PackageKit PackageKit-gstreamer-plugin rp-pppoe samba-winbind udisks2 usb_modeswitch

260 new packages to install, 1 to remove.
Overall download size: 91.1 MiB. Already cached: 0 B  After the operation, additional 315.3
MiB will be used.
Continue? [y/n/? shows all options] (y): n

If I did choose to install NetworkManager, how could I solve the NM dependency problem without installing a whole DE (I’d like to understand how to work around problems like this one even if it’s not required right now).

Thanks!

For the record, if you create local.xml by copying common.xml, you need to remove the self-reference at the bottom of the file (this part):

<include name="local.xml" optional="true" />

Probably easier to just create the file from scratch and fill it with:

<config>
  <use-nanny>true</use-nanny>
</config>

For your specific scenario
I’d recommend (untried!)

Installing the MinimalX “Desktop.”

The Minimal X (aka IceWM) is hardly more than the text-only “server” option but is less adamant about that “patterns-openSUSE-minimal_base-conflicts” which is a problem you might run into often without any Desktop.

You won’t get a bloated Desktop, in fact you’ll find that if you do log in to the Minimal X desktop you won’t find much of anything installed by default… mainly a window manager and a console and nothing more.

TSU

Thanks, I hadn’t considered doing something like that!

If I install Minimal X, I guess I can also run programs like Firefox with SSH + X forwarding? That might just be the perfect balance!