Route Shows Unexpected Behaviour?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Route Shows Unexpected Behaviour?

Insan Praja SW
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       mtu    expire
     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=8843<UP,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 0xffffffe0 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
    [hidden email]:/usr/src/sys/arch/i386/compile/GENERIC.MP
RTC BIOS diagnostic error e<fixed_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 e<fixed_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 0xfee00000: 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 0xfec00000, 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: 0xc0000/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:
apic 5 int 16 (irq 11), address 00:07:e9:0f:44:37
skc0 at pci3 dev 1 function 0 "D-Link Systems DGE-530T B1" rev 0x11,
Yukon Lite (0x9): apic 5 int 17 (irq 10)
sk0 at skc0 port A: address 00:1b:11:10:07:6e
eephy0 at sk0 phy 0: 88E1011 Gigabit PHY, rev. 5
em2 at pci3 dev 2 function 0 "Intel PRO/1000MT (82541GI)" rev 0x05:
apic 5 int 18 (irq 9), address 00:15:17:8d:4c:c3
ichpcib0 at pci0 dev 31 function 0 "Intel 82801IR LPC" rev 0x02: PM disabled
pciide0 at pci0 dev 31 function 2 "Intel 82801I SATA" rev 0x02: DMA,
channel 0 configured to native-PCI, channel 1 configured to native-PCI
pciide0: using apic 5 int 21 (irq 10) for native-PCI interrupt
wd0 at pciide0 channel 0 drive 0: <MAXTOR STM380215AS>
wd0: 16-sector PIO, LBA48, 76318MB, 156299375 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5
ichiic0 at pci0 dev 31 function 3 "Intel 82801I SMBus" rev 0x02: apic
5 int 18 (irq 9)
iic0 at ichiic0
spdmem0 at iic0 addr 0x50: 1GB DDR2 SDRAM ECC PC2-5300CL5
spdmem1 at iic0 addr 0x52: 1GB DDR2 SDRAM ECC PC2-5300CL5
pciide1 at pci0 dev 31 function 5 "Intel 82801I SATA" rev 0x02: DMA,
channel 0 wired to native-PCI, channel 1 wired to native-PCI
pciide1: using apic 5 int 21 (irq 10) for native-PCI interrupt
usb2 at uhci0: USB revision 1.0
uhub2 at usb2 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb3 at uhci1: USB revision 1.0
uhub3 at usb3 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb4 at uhci2: USB revision 1.0
uhub4 at usb4 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb5 at uhci3: USB revision 1.0
uhub5 at usb5 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb6 at uhci4: USB revision 1.0
uhub6 at usb6 "Intel UHCI root hub" rev 1.00/1.00 addr 1
isa0 at ichpcib0
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
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
mtrr: Pentium Pro MTRR support
vscsi0 at root
scsibus0 at vscsi0: 256 targets
softraid0 at root
root on wd0a swap on wd0b dump on wd0b

Reply | Threaded
Open this post in threaded view
|

Re: Route Shows Unexpected Behaviour?

Philip Guenther-2
On Sun, Oct 25, 2009 at 5:57 AM, Insan Praja <[hidden email]> 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=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
...
>        inet 202.90.abc.de netmask 0xffffffe0 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