I created a simple ospf test lab, but i ran into the following error:

The setup:


rdomain 2

area {
        interface vio2

route -T2 -n show
Routing tables

Destination        Gateway            Flags   Refs      Use   Mtu  Prio
default            UGBS       0        0 32768     8 lo2
127/8              UGRS       0        0 32768     8 lo2          UHl        0        9 32768     1 lo2
172.16.2/24         UC         0        0     -     4 vio2         08:00:27:1b:ce:55  UHLl       0        5     -     1 vio2         UHb        0        0     -     1 vio2
224/4              URS        0        0 32768     8 lo2


lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 32768
        priority: 0
        groups: lo
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5
        inet netmask 0xff000000
        lladdr 08:00:27:48:6a:16
        priority: 0
        groups: egress
        media: Ethernet autoselect
        status: active
        inet netmask 0xffffff00 broadcast
        lladdr 08:00:27:e8:94:dc
        priority: 0
        media: Ethernet autoselect
        status: active
        inet netmask 0xffffff00 broadcast
vio2: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> rdomain 2 mtu 1500
        lladdr 08:00:27:1b:ce:55
        priority: 0
        media: Ethernet autoselect
        status: active
        inet netmask 0xffffff00 broadcast
enc0: flags=0<>
        priority: 0
        groups: enc
        status: active
pflog0: flags=141<UP,RUNNING,PROMISC> mtu 33144
        priority: 0
        groups: pflog
lo2: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> rdomain 2 mtu 32768
        priority: 0
        groups: lo
        inet netmask 0xff000000

ospfd -dvv -f /etc/ospfd2.conf

WARNING: IP forwarding NOT enabled, running as stub router
password = "secret"
warning: macro 'password' not used
if_join_group: error IP_ADD_MEMBERSHIP, interface vio2 address
Can't assign requested address
if_fsm: error changing state for interface vio2, event UP, state DOWN
error starting interface vio2

 ospfctl show interfaces

Interface   Address            State  HelloTimer Linkstate  Uptime    nc  ac
vio2      DOWN   -          active     00:00:00   0   0

 ospfctl show fib

flags: * = valid, O = OSPF, C = Connected, S = Static
Flags  Prio Destination          Nexthop
*S        8  
*C        0          link#0
*S        8
*         1
*C        4        link#3
*S        8

ospfctl show summary

Router ID:
Uptime: 00:01:33
RFC1583 compatibility flag is disabled
SPF delay is 1000 msec(s), hold time between two SPFs is 5000 msec(s)
Number of external LSA(s) 0 (Checksum sum 0x0)
Number of areas attached to this router: 1

Area ID:
  Number of interfaces in this area: 1
  Number of fully adjacent neighbors in this area: 0
  SPF algorithm executed 0 time(s)
  Number LSA(s) 0 (Checksum sum 0x0)

I miss something, or this is a bug?


OpenBSD 5.9-beta (GENERIC) #1658: Sun Dec 27 17:03:23 MST 2015
real mem = 520028160 (495MB)
avail mem = 500244480 (477MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.5 @ 0xe1000 (10 entries)
bios0: vendor innotek GmbH version "VirtualBox" date 12/01/2006
bios0: innotek GmbH VirtualBox
acpi0 at bios0: rev 2
acpi0: sleep states S0 S5
acpi0: tables DSDT FACP APIC SSDT
acpi0: wakeup devices
acpitimer0 at acpi0: 3579545 Hz, 32 bits
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM) i5-4310U CPU @ 2.00GHz, 2594.82 MHz
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: smt 0, core 0, package 0
mtrr: CPU supports MTRRs but not enabled by BIOS
cpu0: apic clock running at 1000MHz
cpu0: mwait min=64, max=64
ioapic0 at mainbus0: apid 1 pa 0xfec00000, version 11, 24 pins
acpiprt0 at acpi0: bus 0 (PCI0)
acpicpu0 at acpi0: C1(@1 halt!)
acpibat0 at acpi0: BAT0 model "1" serial 0 type VBOX oem "innotek"
acpiac0 at acpi0: AC unit online
acpivideo0 at acpi0: GFX0
pvbus0 at mainbus0: KVM
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel 82441FX" rev 0x02
pcib0 at pci0 dev 1 function 0 "Intel 82371SB ISA" rev 0x00
pciide0 at pci0 dev 1 function 1 "Intel 82371AB IDE" rev 0x01: DMA, channel
0 configured to compatibility, channel 1 configured to compatibility
pciide0: channel 0 disabled (no drives)
atapiscsi0 at pciide0 channel 1 drive 0
scsibus1 at atapiscsi0: 2 targets
cd0 at scsibus1 targ 0 lun 0: <VBOX, CD-ROM, 1.0> ATAPI 5/cdrom removable
cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2
vga1 at pci0 dev 2 function 0 "InnoTek VirtualBox Graphics Adapter" rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
virtio0 at pci0 dev 3 function 0 "Qumranet Virtio Network" rev 0x00
vio0 at virtio0: address 08:00:27:48:6a:16
virtio0: apic 1 int 19
"InnoTek VirtualBox Guest Service" rev 0x00 at pci0 dev 4 function 0 not
auich0 at pci0 dev 5 function 0 "Intel 82801AA AC97" rev 0x01: apic 1 int
21, ICH AC97
ac97: codec id 0x83847600 (SigmaTel STAC9700)
audio0 at auich0
ohci0 at pci0 dev 6 function 0 "Apple Intrepid USB" rev 0x00: apic 1 int
22, version 1.0
piixpm0 at pci0 dev 7 function 0 "Intel 82371AB Power" rev 0x08: SMBus
virtio1 at pci0 dev 8 function 0 "Qumranet Virtio Network" rev 0x00
vio1 at virtio1: address 08:00:27:e8:94:dc
virtio1: apic 1 int 16
virtio2 at pci0 dev 9 function 0 "Qumranet Virtio Network" rev 0x00
vio2 at virtio2: address 08:00:27:1b:ce:55
virtio2: apic 1 int 17
mpi0 at pci0 dev 20 function 0 "Symbios Logic 53c1030" rev 0x00: apic 1 int
mpi0: VBox MPT Fusion, firmware
scsibus2 at mpi0: 16 targets, initiator 7
sd0 at scsibus2 targ 0 lun 0: <VBOX, HARDDISK, 1.0> SCSI3 0/direct fixed
sd0: 2048MB, 512 bytes/sector, 4194304 sectors
mpi0: target 0 Async at 0MHz width 8bit offset 0 QAS 0 DT 0 IU 0
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5 irq 1 irq 12
pckbd0 at pckbc0 (kbd slot)
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
wsmouse0 at pms0 mux 0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
usb0 at ohci0: USB revision 1.0
uhub0 at usb0 "Apple OHCI root hub" rev 1.00/1.00 addr 1
vscsi0 at root
scsibus3 at vscsi0: 256 targets
softraid0 at root
scsibus4 at softraid0: 256 targets
root on sd0a (0b0e9c09ae81800d.a) swap on sd0b dump on sd0b

Reply via email to