i have streng line now /etc/init.d/net.eth1 stop * Bringing down interface eth1 RTNETLINK answers: No such file or directory Error talking to the kernel previous stable version not shown it before
Does "ip link show" display eth1 as a valid interface name?
ip link show 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000 link/ether 1c:6f:65:eb:3a:a8 brd ff:ff:ff:ff:ff:ff 3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000 link/ether 84:c9:b2:43:1c:df brd ff:ff:ff:ff:ff:ff 4: vboxnet0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN mode DEFAULT group default qlen 1000 link/ether 0a:00:27:00:00:00 brd ff:ff:ff:ff:ff:ff
emerge --info Portage 2.3.0 (python 3.4.5-final-0, default/linux/amd64/13.0/desktop, gcc-4.9.3, glibc-2.22-r4, 4.4.35-gentoo x86_64) ================================================================= System uname: Linux-4.4.35-gentoo-x86_64-Pentium-R-_Dual-Core_CPU_E6600_@_3.06GHz-with-gentoo-2.2 KiB Mem: 4042736 total, 381292 free KiB Swap: 3145724 total, 2995968 free Timestamp of repository gentoo: Tue, 06 Dec 2016 20:54:35 +0000 sh bash 4.3_p48-r1 ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1 ccache version 3.2.4 [enabled] app-shells/bash: 4.3_p48-r1::gentoo dev-java/java-config: 2.2.0-r3::gentoo dev-lang/perl: 5.22.2::gentoo dev-lang/python: 2.7.12::gentoo, 3.4.5::gentoo dev-util/ccache: 3.2.4::gentoo dev-util/cmake: 3.5.2-r1::gentoo dev-util/pkgconfig: 0.28-r2::gentoo sys-apps/baselayout: 2.2::gentoo sys-apps/openrc: 0.22.4::gentoo sys-apps/sandbox: 2.10-r1::gentoo sys-devel/autoconf: 2.13::gentoo, 2.69::gentoo sys-devel/automake: 1.11.6-r1::gentoo, 1.14.1::gentoo, 1.15::gentoo sys-devel/binutils: 2.25.1-r1::gentoo sys-devel/gcc: 4.9.3::gentoo sys-devel/gcc-config: 1.7.3::gentoo sys-devel/libtool: 2.4.6::gentoo sys-devel/make: 4.1-r1::gentoo sys-kernel/linux-headers: 4.3::gentoo (virtual/os-headers) sys-libs/glibc: 2.22-r4::gentoo Repositories: gentoo location: /mnt/mirror/portage sync-type: git sync-uri: git://github.com/gentoo-mirror/gentoo priority: -1000 rion location: /var/lib/layman/rion sync-type: laymansync sync-uri: git://github.com/rion-overlay/rion-overlay.git masters: gentoo priority: 50 steam-overlay location: /var/lib/layman/steam-overlay sync-type: laymansync sync-uri: git://github.com/anyc/steam-overlay.git masters: gentoo priority: 50 local-crossdev location: /mnt/mirror/portage-crossdev masters: gentoo priority: 9999 ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=core2 -O2 -pipe -mssse3 -fomit-frame-pointer" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt /var/bind" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-march=core2 -O2 -pipe -mssse3 -fomit-frame-pointer" DISTDIR="/mnt/mirror/gentoo-distfiles/distfiles/" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs buildpkg ccache config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news nodoc parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://mirror.yandex.ru/gentoo-distfiles/" LANG="ru_RU.utf8" LC_ALL="" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j 2" PKGDIR="/mnt/mirror/gentoo-distfiles/packages/" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync_excludes" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git" PORTAGE_TMPDIR="/var/tmp" USE="X a52 aac aacplus acl acpi alsa amd64 bash-completion berkdb branding bzip2 cairo cdda cdr cli consolekit cpudetection cracklib crypt cue cxx dbus djvu dri dts dvd dvdr emboss encode exif faac fam ffmpeg firefox flac gdbm gif glamor gnome-keyring gstreamer gtk gtk3 gtkstyle iconv jpeg lcms libnotify lzma mad matroska mmx mmxext mng modplug modules mp3 mp4 mpeg multilib musepack mysqli natspec ncurses networkmanager nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio rar readline sdl seccomp session spell sse sse2 sse3 ssl ssse3 startup-notification svg theora tiff truetype twolame udev udisks unicode upower usb v4l vaapi vdpau vorbis vpx wavpack wxwidgets x264 xattr xcb xml xv xvid xvmc zlib" ABI_X86="64" ALSA_CARDS="hda-intel" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="prefork" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 sse3 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev" KERNEL="linux" L10N="ru" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="ru" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" QEMU_USER_TARGETS="x86_64" RUBY_TARGETS="ruby20" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, USE_PYTHON setting from /etc/conf.d/net config_eth1="192.168.1.2 netmask 255.255.255.0" ~ # /etc/init.d/net.eth1 start * Bringing up interface eth1 * 192.168.1.2 ... ~ # /etc/init.d/net.eth1 stop * Bringing down interface eth1 RTNETLINK answers: No such file or directory Error talking to the kernel
verbose output dzen ~ # /etc/init.d/net.eth1 start * Caching service dependencies ... [ ok ] * Executing: /lib64/rc/sh/openrc-run.sh /lib64/rc/sh/openrc-run.sh /etc/init.d/net.eth1 start * Bringing up interface eth1 * Skipping module adsl due to missing program: /usr/sbin/adsl-start /usr/sbin/pppoe-start * Skipping module br2684ctl due to missing program: br2684ctl * Skipping module clip due to missing program: /usr/sbin/atmsigd * Skipping module netplugd due to missing program: /sbin/netplugd * Skipping module ifplugd due to missing program: /usr/sbin/ifplugd * Skipping module ipppd due to missing program: /usr/sbin/ipppd * Skipping module iwconfig due to missing program: /sbin/iwconfig * Skipping module firewalld due to missing program: firewall-cmd * Skipping module pump due to missing program: /sbin/pump * Skipping module dhcpcd due to missing program: dhcpcd * Loaded modules: apipa arping bonding l2tp tuntap bridge ccwgroup ethtool dummy hsr macvlan macchanger macnet wpa_supplicant ssidnet iproute2 pppd system vlan dhclient ip6rd ip6to4 * ip link set dev eth1 up * Configuring eth1 for MAC address 84:C9:B2:43:1C:DF ... [ ok ] * 192.168.0.1/24 ... * ip addr add 192.168.0.1/24 broadcast + dev eth1 [ ok ] * ip -4 route flush table cache dev eth1 dzen ~ # /etc/init.d/net.eth1 stop * Executing: /lib64/rc/sh/openrc-run.sh /lib64/rc/sh/openrc-run.sh /etc/init.d/net.eth1 stop * Bringing down interface eth1 * Skipping module adsl due to missing program: /usr/sbin/adsl-start /usr/sbin/pppoe-start * Skipping module clip due to missing program: /usr/sbin/atmsigd * Skipping module iwconfig due to missing program: /sbin/iwconfig * Skipping module firewalld due to missing program: firewall-cmd * Skipping module pump due to missing program: /sbin/pump * Loaded modules: ip6to4 ip6rd dhcpcd udhcpc dhclient vlan system pppd iproute2 ifconfig ssidnet wpa_supplicant ipppd ifplugd netplugd macnet macchanger macvlan hsr dummy ethtool ccwgroup bridge tuntap l2tp br2684ctl bonding arping apipa * ip addr flush dev eth1 scope global * ip addr flush dev eth1 scope site * ip addr flush dev eth1 scope host * ip -4 route flush table cache dev eth1 RTNETLINK answers: No such file or directory Error talking to the kernel * ip link set dev eth1 down
Thanks for that verbose output - very helpful.
I think the routing cache may be a red herring. I get a similar message and I traced it to the poststop routine in the l2tp module. The test routine _is_l2tp uses: ip l2tp show session which gives off the RTNETLINK answers: No such file or directory Error talking to the kernel message. I'm guessing that it's because their is no L2TP support in my kernel although I haven't tested that yet.
Just tested the kernel options, ip needs l2tpv3 enabled to stop the error message. I tried upgrading to iproute-4.10.0 on the off chance that would fix it but no good. I guess just swallowing the error message with 2>/dev/null should do the trick as I for one don't want to enable l2tp on a hardened kernel for no reason.
(In reply to David Williams from comment #6) > I think the routing cache may be a red herring. I get a similar message and > I traced it to the poststop routine in the l2tp module. The test routine > _is_l2tp uses: > > ip l2tp show session > > which gives off the > > RTNETLINK answers: No such file or directory > Error talking to the kernel > > message. I'm guessing that it's because their is no L2TP support in my > kernel although I haven't tested that yet. One problem is that _is_l2tp() function uses "&>/dev/null" as redirect which is not supported by all shells (like app-shells/dash). In order to get this command silenced unter these shell, we need two redirects: "2>/dev/null 1>/dev/null". I have prepared a patch that I will push to netifrc repo soon.
https://github.com/gentoo/netifrc/commit/90482eddc3e792809bb220320672816000f727e3