Re: Missing route for localhost

2009-01-18 Thread Michael Mäder
Hello

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
cpu0: VIA Esther processor 1000MHz (CentaurHauls 686-class) 1.01 GHz
cpu0:  
FPU 
,V86 
,DE 
,PSE 
,TSC 
,MSR 
,PAE 
,MCE 
,CX8 
,APIC 
,SEP,MTRR,PGE,CMOV,PAT,CFLUSH,ACPI,MMX,FXSR,SSE,SSE2,TM,SBF,SSE3,EST,TM2
cpu0: RNG AES AES-CTR SHA1 SHA256 RSA
real mem  = 468152320 (446MB)
avail mem = 444112896 (423MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 10/27/06, BIOS32 rev. 0 @  
0xf9ee0, SMBIOS rev. 2.3 @ 0xf0800 (33 entries)
bios0: vendor Phoenix Technologies, LTD version 6.00 PG date  
10/27/2006
apm0 at bios0: Power Management spec V1.2 (slowidle)
apm0: AC on, battery charge unknown
acpi at bios0 function 0x0 not configured
pcibios0 at bios0: rev 2.1 @ 0xf/0xd964
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfd860/240 (13 entries)
pcibios0: bad IRQ table checksum
pcibios0: PCI BIOS has 14 Interrupt Routing table entries
pcibios0: PCI Exclusive IRQs: 5 10 11
pcibios0: PCI Interrupt Router at 000:17:0 (VIA VT8237 ISA rev 0x00)
pcibios0: PCI bus #1 is the last bus
bios0: ROM list: 0xc/0xfe00
cpu0 at mainbus0
cpu0: unknown Enhanced SpeedStep CPU, msr 0x08100a1308000a13
cpu0: using only highest and lowest power states
cpu0: Enhanced SpeedStep 1000 MHz (1004 mV): speeds: 1000, 800 MHz
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 VIA CN700 Host rev 0x00
pchb1 at pci0 dev 0 function 1 VIA CN700 Host rev 0x00
pchb2 at pci0 dev 0 function 2 VIA CN700 Host rev 0x00
pchb3 at pci0 dev 0 function 3 VIA PT890 Host rev 0x00
pchb4 at pci0 dev 0 function 4 VIA CN700 Host rev 0x00
pchb5 at pci0 dev 0 function 7 VIA CN700 Host rev 0x00
ppb0 at pci0 dev 1 function 0 VIA VT8377 AGP rev 0x00
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 VIA S3 Unichrome PRO IGP rev 0x01
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
agp0 at vga1: v3, aperture at 0xe800, size 0x1000
drm at vga1 unsupported
rl0 at pci0 dev 5 function 0 Realtek 8139 rev 0x10: irq 5, address  
00:30:18:49:ff:29
rlphy0 at rl0 phy 0: RTL internal PHY
rl1 at pci0 dev 6 function 0 Realtek 8139 rev 0x10: irq 11, address  
00:30:18:49:ff:28
rlphy1 at rl1 phy 0: RTL internal PHY
rl2 at pci0 dev 7 function 0 Realtek 8139 rev 0x10: irq 10, address  
00:30:18:49:ff:27
rlphy2 at rl2 phy 0: RTL internal PHY
pciide0 at pci0 dev 15 function 0 VIA VT6420 SATA rev 0x80: DMA
pciide0: using irq 11 for native-PCI interrupt
pciide1 at pci0 dev 15 function 1 VIA VT82C571 IDE rev 0x06: ATA133,  
channel 0 configured to compatibility, channel 1 configured to  
compatibility
pciide1: channel 0 disabled (no drives)
wd0 at pciide1 channel 1 drive 0: SanDisk SDCFX3-1024
wd0: 4-sector PIO, LBA, 977MB, 2001888 sectors
wd0(pciide1:1:0): using PIO mode 4, DMA mode 2
uhci0 at pci0 dev 16 function 0 VIA VT83C572 USB rev 0x81: irq 5
uhci1 at pci0 dev 16 function 1 VIA VT83C572 USB rev 0x81: irq 5
uhci2 at pci0 dev 16 function 2 VIA VT83C572 USB rev 0x81: irq 11
uhci3 at pci0 dev 16 function 3 VIA VT83C572 USB rev 0x81: irq 11
ehci0 at pci0 dev 16 function 4 VIA VT6202 USB rev 0x86: irq 10
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 VIA EHCI root hub rev 2.00/1.00 addr 1
viapm0 at pci0 dev 17 function 0 VIA VT8237 ISA rev 0x00
iic0 at viapm0
spdmem0 at iic0 addr 0x50: 512MB DDR2 SDRAM non-parity PC2-5300CL5
auvia0 at pci0 dev 17 function 5 VIA VT8233 AC97 rev 0x60: irq 10
ac97: codec id 0x56494161 (VIA Technologies VT1612A)
ac97: codec features headphone, 18 bit DAC, 18 bit ADC, KS Waves 3D
audio0 at auvia0
usb1 at uhci0: USB revision 1.0
uhub1 at usb1 VIA UHCI root hub rev 1.00/1.00 addr 1
usb2 at uhci1: USB revision 1.0
uhub2 at usb2 VIA UHCI root hub rev 1.00/1.00 addr 1
usb3 at uhci2: USB revision 1.0
uhub3 at usb3 VIA UHCI root hub rev 1.00/1.00 addr 1
usb4 at uhci3: USB revision 1.0
uhub4 at usb4 VIA UHCI root hub rev 1.00/1.00 addr 1
isa0 at mainbus0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: PC speaker
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
viasio0 at isa0 port 0x2e/2: VT1211 rev 0x02, HM, WDG not activated
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
biomask ff65 netmask ff65 ttymask 
umass0 at uhub0 port 7 configuration 1 interface 0 Freecom Freecom  
Hard Drive rev 2.00/0.00 addr 2
umass0: using SCSI over Bulk-Only
scsibus0 at umass0: 2 targets, initiator 0
sd0 at scsibus0 targ 1 lun 0: SAMSUNG, HD250HJ,  SCSI2 0/direct fixed
sd0: 238475MB, 30401 cyl, 255 head, 63 sec, 512 bytes/sec, 488397168  
sec total
softraid0 at root
root on wd0a swap on wd0b dump on wd0b


Cheers
  Michael

Am 17.01.2009 um 22:57 

Re: Missing route for localhost

2009-01-18 Thread Philip Guenther
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=8008LOOPBACK,MULTICAST mtu 33204
priority: 0
groups: lo
# netstat -nrfinet
Routing tables
# ifconfig lo0 inet 127.0.0.1
# netstat -nrfinet
Routing tables

Internet:
DestinationGatewayFlags   Refs  Use   Mtu  Prio Iface
127.0.0.1  127.0.0.1  UH 00 33204 4 lo0
# ifconfig lo0
lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST mtu 33204
priority: 0
groups: lo
inet 127.0.0.1 netmask 0xff00
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



Missing route for localhost

2009-01-17 Thread Michael Mäder

Hello

I am using 4.4 (updated from 4.3) and have a problem with the localhost.

Trying to ping localhost gives my an error: host unreachable

Comparing with a fresh BSD installation I remarked that the following  
routing entry is missing:


route add -inet 127.0.0.1/32 127.0.0.1

Even after a reboot this is missing. Does anybody has a hint, why?

Thanks
 Mike



Re: Missing route for localhost

2009-01-17 Thread Philip Guenther
On Sat, Jan 17, 2009 at 3:42 AM, Michael Mdder m...@moik.org wrote:
 I am using 4.4 (updated from 4.3) and have a problem with the localhost.

It's obvious from your dmesg that, umm, nevermind.

It's clear from the steps you took when updating that, uh, nope.


 Trying to ping localhost gives my an error: host unreachable

 Comparing with a fresh BSD installation I remarked that the following
 routing entry is missing:

 route add -inet 127.0.0.1/32 127.0.0.1

 Even after a reboot this is missing. Does anybody has a hint, why?

That route is added automatically when the loopback address is
initially assigned its address and brought up.

Since you didn't give any actual data, I'll guess that your update
procedure was broken such that your kernel and userland don't match,
probably giving you a -current kernel with -stable userland.  Pick one
and use it for both.


Philip Guenther