On Sun, Jan 18, 2009 at 2:05 AM, Michael Mdder <m...@moik.org> wrote:
> here is the dmesg:
> OpenBSD 4.4 (GENERIC) #1021: Tue Aug 12 17:16:55 MDT 2008
>     dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
...

Okay, so you're using a stock 4.4 kernel.  Good!  But we still don't know:
1) what your route table looks like.  What's the output of
      netstat -nr -finet
   ?
2) what the state of the loopback interface is.  On a correctly operating
   system, bringing up lo0 with the 127.0.0.1 IP gives you the correct route.
   So what's the output of
      ifconfig lo0
   ?

For comparison, booting my laptop into single-user mode I see this:

# fsck -p
...
# mount /usr
# ifconfig lo0
lo0: flags=8008<LOOPBACK,MULTICAST> mtu 33204
        priority: 0
        groups: lo
# netstat -nrfinet
Routing tables
# ifconfig lo0 inet 127.0.0.1
# netstat -nrfinet
Routing tables

Internet:
Destination        Gateway            Flags   Refs      Use   Mtu  Prio Iface
127.0.0.1          127.0.0.1          UH         0        0 33204     4 lo0
# ifconfig lo0
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 33204
        priority: 0
        groups: lo
        inet 127.0.0.1 netmask 0xff000000
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3

Note that the route added by bringing up lo0 is *NOT* the same as one
generated by the 'route' command you mentioned: the flags are different.

That suggests item #3 for you to try:
3) boot your box into single-user mode, do the same steps above and compare
   the output.

If you see similar output when you boot single-user, but the route vanishes
when you go multiuser, then you need to check your network config files and
start scripts for a possible guilty 'route' invocation or anything
else that could
be dropping that route: /etc/hostname.*, /etc/bridgename.*, and
/etc/rc*.local.

You don't happen to run bgpd or ospfd or some other routing daemon, do you?


Philip Guenther

Reply via email to