Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 93166 - iface 'lo' is not recognized
Summary: iface 'lo' is not recognized
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-19 02:42 UTC by Roel Groeneveld
Modified: 2005-05-19 11:40 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Roel Groeneveld 2005-05-19 02:42:29 UTC
I cannot access localhost (100% package loss when pinging localhost or
127.0.0.1), while my internet connection over eth0 just works. During boot, the
message 'Bringing lo up   [ok]' appears without errors, but once I login to
Gnome the localhost loopback seems to have disappeared. 

'Ifconfig lo up' just gives me: 
"lo: unknown interface: No such device"

(I did a strace on 'ping localhost', of which you can inspect the results here:
http://forums.gentoo.org/viewtopic-p-2416461.html#2416461 )

I tried re-emerging different packages, and have compiled a new kernel
(2.6.11-r9), but that doesn't seen to make a difference. 

Reproducible: Always
Steps to Reproduce:
1. Start pc
2. Start terminal
3. Do 'ifconfig', 'ifconfig -a' and ifconfig lo up'
Actual Results:  
marvin ~ # ifconfig
eth0      Link encap:Ethernet  HWaddr 00:0C:6E:C8:5C:EC  
          inet addr:10.0.0.150  Bcast:10.0.0.255  Mask:255.255.255.0
          UP BROADCAST NOTRAILERS RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2162 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2241 errors:1 dropped:0 overruns:0 carrier:1
          collisions:0 txqueuelen:1000 
          RX bytes:1403406 (1.3 Mb)  TX bytes:407350 (397.8 Kb)
          Interrupt:5 Base address:0x2000



marvin ~ # ifconfig -a   
eth0      Link encap:Ethernet  HWaddr 00:0C:6E:C8:5C:EC  
          inet addr:10.0.0.150  Bcast:10.0.0.255  Mask:255.255.255.0
          UP BROADCAST NOTRAILERS RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2157 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2235 errors:1 dropped:0 overruns:0 carrier:1
          collisions:0 txqueuelen:1000 
          RX bytes:1402693 (1.3 Mb)  TX bytes:406926 (397.3 Kb)
          Interrupt:5 Base address:0x2000 

eth1      Link encap:Ethernet  HWaddr 00:26:54:13:0D:54  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Interrupt:11 Base address:0x9000 

eth2      Link encap:UNSPEC  HWaddr
00-E0-18-00-00-37-8D-4A-00-00-00-00-00-00-00-00  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

sit0      Link encap:IPv6-in-IPv4  
          NOARP  MTU:1480  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

usb_kings Link encap:Local Loopback  
          LOOPBACK  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)



marvin ~ # ifconfig lo up
lo: unknown interface: No such device


marvin ~ # emerge info

Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.4.3, glibc-2.3.5-r0,
2.6.11-gentoo-r9 i686)
=================================================================
System uname: 2.6.11-gentoo-r9 i686 AMD Athlon(tm) XP 2600+
Gentoo Base System version 1.4.16
Python:             
dev-lang/python-2.2.3-r1,dev-lang/python-2.3.5,dev-lang/python-2.4.1 [2.4.1 (#1,
May 11 2005, 10:41:38)]
dev-lang/python:     2.2.3-r1, 2.3.5, 2.4.1
sys-apps/sandbox:    [Not Present]
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r9
sys-devel/libtool:   1.5.14
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.1/share/config
/usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config
/usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb
/usr/lib/mozilla/defaults/pref /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo
ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo rsync://ftp.snt.utwente.nl/gentoo"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/portage-gentopia"
SYNC="rsync://rsync.nl.gentoo.org/gentoo-portage"
USE="x86 3dnow X aalib alsa apm arts avi berkdb bitmap-fonts bluetooth bonobo
crypt cups curl dvd dvdr eds emboss encode esd evo fam flac foomaticdb fortran
gdbm gif gnome gnutls gphoto2 gpm gstreamer gtk gtk2 gtkhtml gtksharp hal
imagemagick imlib ipv6 java jpeg junit kde ldap libg++ libwww mad mikmod mmx
mono motif mozilla mp3 mpeg ncurses nls nptl nptlonly ogg oggvorbis opengl oss
pam pdflib perl png ppds python qt quicktime radeon readline ruby scanner sdl
slang spell sqlite ssl svga tcltk tcpd tetex tiff truetype truetype-fonts
type1-fonts usb vorbis xine xml xml2 xmms xv zlib userland_GNU kernel_linux
elibc_glibc"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LINGUAS
Comment 1 Roel Groeneveld 2005-05-19 02:45:33 UTC
One addition: the usb_kings device that shows up under 'ifconfig -a' is my usb
stick. Why did shows up there is beyond me, because it isn't plugged in.
Comment 2 SpanKY gentoo-dev 2005-05-19 08:01:55 UTC
what does `ls -l /etc/init.d/net.lo` show ?

what happens if you do this:
ifconfig lo 127.0.0.1 up
ifconfig lo
Comment 3 Roel Groeneveld 2005-05-19 08:07:38 UTC
(In reply to comment #2)
> what does `ls -l /etc/init.d/net.lo` show ?
> 
> what happens if you do this:
> ifconfig lo 127.0.0.1 up
> ifconfig lo

Well: 

marvin ~ # ls -l /etc/init.d/net.lo 
-rwxr-xr-x  1 root root 512 Dec 17 10:56 /etc/init.d/net.lo

marvin ~ # ifconfig lo 127.0.0.1 up
SIOCSIFADDR: No such device
lo: unknown interface: No such device
lo: unknown interface: No such device

marvin ~ # ifconfig lo
lo: error fetching interface information: Device not found
Comment 4 SpanKY gentoo-dev 2005-05-19 08:32:59 UTC
chances are good your kernel is configured wrong then
Comment 5 Daniel Drake (RETIRED) gentoo-dev 2005-05-19 08:52:53 UTC
Does /sys/class/net/lo/ exist?
Comment 6 Roel Groeneveld 2005-05-19 08:55:16 UTC
(In reply to comment #5)
> Does /sys/class/net/lo/ exist?

No, it doesn't. 
Comment 7 Roel Groeneveld 2005-05-19 09:24:41 UTC
(In reply to comment #6)
> (In reply to comment #5)
> > Does /sys/class/net/lo/ exist?
> 
> No, it doesn't. 

Anyway, I did some more testing with a more linux and gentoo savvy friend (icq
support rulez). The following did work: 

ifconfig usb_kingston 127.0.0.1 up 

After that command, I can reach localhost again. Just pinging, and also managing
cups via localhost:631 
Now I'll try to figure out why this is happening and why lo just doesn't come
up. Any pointers are welcome. 
Comment 8 Daniel Drake (RETIRED) gentoo-dev 2005-05-19 09:36:54 UTC
Ah- something is renaming lo to "usb_kingston". Probably udev or nameif - remove
any customizations you have made.
Comment 9 Roel Groeneveld 2005-05-19 10:44:37 UTC
(In reply to comment #8)
> Ah- something is renaming lo to "usb_kingston". Probably udev or nameif - remove
> any customizations you have made.

I removed my local udev rules, rebooted, and now lo is up. 
So it must have been something related to that. 

I'll try to find the part of the rules that caused this and post it back here,
in case someone else has the same issue in the future. fyi, this is what I had
in 10-local.rules 

BUS="usb", SYSFS{serial}="L98040406292041500",
SYSFS{manufacturer}="EPSON", NAME="%k", SYMLINK="printers/epson_stylus",
GROUP="plugdev"
BUS="usb", SYSFS{serial}="0831564033A0D1B3",
SYSFS{manufacturer}="Kingston", SYSFS{product}="DataTraveler2.0",
NAME="usb_kingston", SYMLINK="usbstorage/kingston_datatraveler",
GROUP="plugdev"
BUS="usb", SYSFS{serial}="000A27001013446F", SYSFS{manufacturer}="Apple", NAME=$
SYMLINK="ipod/shuffle", GROUP="plugdev"
Comment 10 Daniel Drake (RETIRED) gentoo-dev 2005-05-19 11:13:03 UTC
closing
Comment 11 Roel Groeneveld 2005-05-19 11:40:10 UTC
(In reply to comment #9)
> (In reply to comment #8)
> > Ah- something is renaming lo to "usb_kingston". Probably udev or nameif - remove
> > any customizations you have made.
> 
> I removed my local udev rules, rebooted, and now lo is up. 
> So it must have been something related to that. 
> 
> I'll try to find the part of the rules that caused this and post it back here,
> in case someone else has the same issue in the future. fyi, this is what I had
> in 10-local.rules 
> 
> BUS="usb", SYSFS{serial}="L98040406292041500",
> SYSFS{manufacturer}="EPSON", NAME="%k", SYMLINK="printers/epson_stylus",
> GROUP="plugdev"
> BUS="usb", SYSFS{serial}="0831564033A0D1B3",
> SYSFS{manufacturer}="Kingston", SYSFS{product}="DataTraveler2.0",
> NAME="usb_kingston", SYMLINK="usbstorage/kingston_datatraveler",
> GROUP="plugdev"
> BUS="usb", SYSFS{serial}="000A27001013446F", SYSFS{manufacturer}="Apple", NAME=$
> SYMLINK="ipod/shuffle", GROUP="plugdev"
> 

Since the Kingston rule is the only rule where I defined a NAME, and this NAME
is the usb_kingston that showed up with an ifconfig, it must be related to that. 

Thanks for the help, dsd and SpanKY.  :)