Re: Route Shows Unexpected Behaviour?

2009-10-30 Thread Philip Guenther
On Sun, Oct 25, 2009 at 5:57 AM, Insan Praja insan.pr...@gmail.com wrote:
 on i386 current I got these..
 $ route -nv get 202.90.abc.de

That's a bogus address!

...
  202.90.abc.de link#0
  route to: 202.90.abc.de
 destination: 202.90.abc.de
 interface: lo0
...
 $ netstat -nr | grep 202.90.abc.de
 202.90.abc.de 00:07:e9:0f:44:37  UHLc   0  415 - 4 lo0

 Actually:
 $ ifconfig vlan2
 vlan2: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
...
inet 202.90.abc.de netmask 0xffe0 broadcast 202.90.abc.def

 Please enlighten me,

It all looks reasonable to me.  What was your question?  Why did you
think what you saw was a problem?

(Yes, it is finding a route to a locally assigned IP via the loopback.
 How is that a problem?)


Philip Guenther



Route Shows Unexpected Behaviour?

2009-10-25 Thread Insan Praja
Hi Misc@
on i386 current I got these..

$ route -nv get 202.90.abc.de
so_dst: inet 202.90.abc.de; so_ifp: link ; RTM_GET: Report Metrics:
len 124, priority 0, table 0, pid: 0, seq 1, errno 0
flags:UP,GATEWAY,HOST,STATIC
locks:  inits:
sockaddrs: DST,IFP
 202.90.abc.de link#0
   route to: 202.90.abc.de
destination: 202.90.abc.de
  interface: lo0
 if address: 202.90.abc.de
   priority: 4 (connected)
  flags: UP,HOST,DONE,LLINFO,CLONED
 use   mtuexpire
 415 0 0

locks:  inits:
sockaddrs: DST,GATEWAY,IFP,IFA
 202.90.abc.de 00:07:e9:0f:44:37 lo0 202.90.abc.de

Netstat:
$ netstat -nr | grep 202.90.abc.de
202.90.abc.de 00:07:e9:0f:44:37  UHLc   0  415 - 4 lo0

Actually:
$ ifconfig vlan2
vlan2: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
lladdr 00:07:e9:0f:44:37
description: DISTRIB_IF
priority: 0
vlan: 2 priority: 0 parent interface: em1
groups: vlan
inet6 fe80::207:e9ff:fe0f:4437%vlan2 prefixlen 64 scopeid 0xb
inet 202.90.abc.de netmask 0xffe0 broadcast 202.90.abc.def


Please enlighten me,

TIA


Insan Praja


OpenBSD 4.6-current (GENERIC.MP) #4: Mon Oct 19 20:29:14 WIT 2009

r...@netcorerouter.mygreenlinks.net:/usr/src/sys/arch/i386/compile/GENERIC.MP
RTC BIOS diagnostic error efixed_disk,invalid_time
cpu0: Intel(R) Xeon(R) CPU E3110 @ 3.00GHz (GenuineIntel 686-class) 3 GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,SMX,EST,TM2,CX16,xTPR
real mem  = 2143834112 (2044MB)
avail mem = 2068721664 (1972MB)
RTC BIOS diagnostic error efixed_disk,invalid_time
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 12/12/07, SMBIOS rev. 2.5 @
0x7fdfd000 (63 entries)
bios0: vendor Intel Corporation version
S3200X38.86B.00.00.0045.082820081329 date 08/28/2008
bios0: Intel Corporation S3210SH
acpi0 at bios0: rev 2
acpi0: tables DSDT SLIC FACP APIC WDDT MCFG HPET SPCR SSDT SSDT SSDT
SSDT SSDT HEST BERT ERST EINJ DMAR
acpi0: wakeup devices SLPB(S5) NPE1(S5) NPE6(S5) P32_(S5) PS2M(S1)
PS2K(S1) ILAN(S5) PEX0(S5) PEX1(S5) PEX2(S5) PEX3(S5) PEX4(S5)
PEX5(S5) UHC1(S1) UHC2(S1) UHC3(S1) UHC4(S1) EHCI(S1) EHC2(S1)
UH42(S1) UHC5(S1) UHC6(S1) AZAL(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: apic clock running at 332MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Xeon(R) CPU E3110 @ 3.00GHz (GenuineIntel 686-class) 3 GHz
cpu1: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,SMX,EST,TM2,CX16,xTPR
ioapic0 at mainbus0: apid 5 pa 0xfec0, version 20, 24 pins
ioapic0: misconfigured as apic 0, remapped to apid 5
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (NPE1)
acpiprt2 at acpi0: bus -1 (NPE6)
acpiprt3 at acpi0: bus 3 (P32_)
acpiprt4 at acpi0: bus 1 (PEX0)
acpiprt5 at acpi0: bus -1 (PEX1)
acpiprt6 at acpi0: bus -1 (PEX2)
acpiprt7 at acpi0: bus -1 (PEX3)
acpiprt8 at acpi0: bus 2 (PEX4)
acpiprt9 at acpi0: bus -1 (PEX5)
acpicpu0 at acpi0: PSS
acpicpu1 at acpi0: PSS
acpibtn0 at acpi0: SLPB
acpibtn1 at acpi0: PWRB
bios0: ROM list: 0xc/0x8000 0xc8000/0x1000 0xc9000/0x1800 0xca800/0x1000
ipmi at mainbus0 not configured
cpu0: Enhanced SpeedStep 2993 MHz: speeds: 3000, 2000 MHz
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 Intel 3200/3210 Host rev 0x00
em0 at pci0 dev 25 function 0 Intel ICH9 IGP AMT rev 0x02: apic 5
int 20 (irq 11), address 00:15:17:8d:4c:c5
uhci0 at pci0 dev 26 function 0 Intel 82801I USB rev 0x02: apic 5
int 18 (irq 9)
uhci1 at pci0 dev 26 function 1 Intel 82801I USB rev 0x02: apic 5
int 21 (irq 10)
ehci0 at pci0 dev 26 function 7 Intel 82801I USB rev 0x02: apic 5
int 17 (irq 10)
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 Intel EHCI root hub rev 2.00/1.00 addr 1
ppb0 at pci0 dev 28 function 0 Intel 82801I PCIE rev 0x02: apic 5
int 17 (irq 11)
pci1 at ppb0 bus 1
ppb1 at pci0 dev 28 function 4 Intel 82801I PCIE rev 0x02: apic 5
int 17 (irq 11)
pci2 at ppb1 bus 2
vga1 at pci2 dev 0 function 0 Matrox MGA G200e (ServerEngines) rev 0x02
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
uhci2 at pci0 dev 29 function 0 Intel 82801I USB rev 0x02: apic 5
int 23 (irq 11)
uhci3 at pci0 dev 29 function 1 Intel 82801I USB rev 0x02: apic 5
int 19 (irq 11)
uhci4 at pci0 dev 29 function 2 Intel 82801I USB rev 0x02: apic 5
int 18 (irq 9)
ehci1 at pci0 dev 29 function 7 Intel 82801I USB rev 0x02: apic 5
int 23 (irq 11)
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 Intel EHCI root hub rev 2.00/1.00 addr 1
ppb2 at pci0 dev 30 function 0 Intel 82801BA Hub-to-PCI rev 0x92
pci3 at ppb2 bus 3
em1 at pci3 dev 0 function 0 Intel PRO/1000MT (82540EM) rev 0x02: