Hello everyone. I am new to this list but I am in need of some help.
I have been running OpenBSD since 4.6 as my firewall and gateway with much success (transitioned from FreeBSD) and it was working out great as a light weight and secure OS for my Internet router and gateway. One of the uses of this box is to route IPv6 for my local subnet out to the Internet. It used to use a free tunnel service that worked great. But I have since transitioned to the IPv6 that my ISP provides me directly. This was a bit painful at first but I got it working with the help of some 3rd party software not available in the ports collection called Dibbler. This software is not perfect, but with the help of a script I fleshed out myself i got it to do what I needed. The client portion of that DHCPv6 program reaches out to the DHCPv6 server on my ISP's network and obtains all the information I need. The only thing it is currently able to do on it's own is plumb up the primary IPv6 address it obtains from the ISP. But I still have to add the requisite default route information. Also I have to then manually plumb up the delegated IPv6 prefix assigned to my subnet (that I request) to my internal interface. I then use rtadvd to advertise that route and allow for SLAAC to work on my internal network to all IPv6 aware hosts. This used to work just fine until I upgraded my router to 5.6 from 5.5. After adding 'inet6 autoconf' to my hostname.if files, it appeared I got my IPv6 functionality back. However, while the box itself is back on IPv6 Internet, the subnet it acts as a router for can no longer get onto the Internet. After looking into it further it appears there is something wrong with the routing table. There is no route for the subnet of the address I manually add via ifconfig to the internal interface. I do not know how to do this, nor was this previously necessary. The ifconfig command I call to add the address specified the prefixlen 64 which *should* imply the address is part of a /64 subnet where all other addresses within that subnet should be reachable via the same interface the address is plumbed up on. When I do a route show or a netstat -nr I do not see such a route nor have I been successful in figuring out how to call the route add command to add such a route. Thanks in advance. SlyM Here is my ifconfig output: vr0: flags=208843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,AUTOCONF6> mtu 1500 lladdr 00:40:63:e6:42:a5 priority: 0 groups: egress media: Ethernet autoselect (100baseTX full-duplex) status: active inet 50.186.155.188 netmask 0xffffff00 broadcast 50.186.155.255 inet6 fe80::240:63ff:fee6:42a5%vr0 prefixlen 64 scopeid 0x1 inet6 2001:558:6030:44:35cc:9a5e:65f7:c139 prefixlen 64 em0: flags=208b43<UP,BROADCAST,RUNNING,PROMISC,ALLMULTI,SIMPLEX,MULTICAST,AUTOCONF6> mtu 1500 lladdr 00:1b:21:4e:d4:a2 priority: 0 media: Ethernet autoselect (1000baseT full-duplex,rxpause,txpause) status: active inet 192.168.82.1 netmask 0xffffff00 broadcast 192.168.82.255 inet6 fe80::21b:21ff:fe4e:d4a2%em0 prefixlen 64 scopeid 0x2 inet6 2601:7:5780:c99::1 prefixlen 64 Here is my route show output: Routing tables Internet: Destination Gateway Flags Refs Use Mtu Prio Iface default 50.186.155.1 UGS 5 741497 - 8 vr0 50.186.155/24 link#1 UC 1 0 - 4 vr0 50.186.155.1 00:01:5c:6f:f6:46 UHLc 1 0 - 4 vr0 50.186.155.188 00:40:63:e6:42:a5 UHLl 0 0 - 1 lo0 127/8 127.0.0.1 UGRS 0 0 32768 8 lo0 127.0.0.1 127.0.0.1 UH 1 0 32768 4 lo0 192.168.82/24 link#2 UC 4 0 - 4 em0 192.168.82.1 00:1b:21:4e:d4:a2 HLl 0 0 - 1 lo0 192.168.82.200 80:ee:73:64:13:0c UHLc 4 512052 - 4 em0 192.168.82.251 08:3e:8e:07:e5:64 UHLc 0 0 - 4 em0 192.168.82.253 00:15:c5:f5:0d:b4 UHLc 2 6854 - 4 em0 192.168.82.254 00:24:2b:df:8f:2b UHLc 0 3722 - 4 em0 224/4 127.0.0.1 URS 0 0 32768 8 lo0 Internet6: Destination Gateway Flags Refs Use Mtu Prio Iface ::/104 ::1 UGRS 0 0 32768 8 lo0 ::/96 ::1 UGRS 0 0 32768 8 lo0 default 2001:558:6030:44::1 UGS 0 7716 - 8 vr0 ::1 ::1 UH 14 0 32768 4 lo0 ::127.0.0.0/104 ::1 UGRS 0 0 32768 8 lo0 ::224.0.0.0/100 ::1 UGRS 0 0 32768 8 lo0 ::255.0.0.0/104 ::1 UGRS 0 0 32768 8 lo0 ::ffff:0.0.0.0/96 ::1 UGRS 0 0 32768 8 lo0 2001:558:6030:44::/64 link#1 UC 1 0 - 4 vr0 2001:558:6030:44::1 00:01:5c:6f:f6:46 UHLc 1 359 - 4 vr0 2001:558:6030:44:35cc:9a5e:65f7:c139 00:40:63:e6:42:a5 UHLl 0 0 - 1 lo0 2002::/24 ::1 UGRS 0 0 32768 8 lo0 2002:7f00::/24 ::1 UGRS 0 0 32768 8 lo0 2002:e000::/20 ::1 UGRS 0 0 32768 8 lo0 2002:ff00::/24 ::1 UGRS 0 0 32768 8 lo0 2601:7:5780:c99::1 00:1b:21:4e:d4:a2 UHLl 0 5834 - 1 lo0 fe80::/10 ::1 UGRS 0 0 32768 8 lo0 fe80::%vr0/64 link#1 UC 1 0 - 4 vr0 fe80::201:5cff:fe6f:f646%vr0 00:01:5c:6f:f6:46 UHLc 0 88 - 4 vr0 fe80::240:63ff:fee6:42a5%vr0 00:40:63:e6:42:a5 UHLl 0 0 - 1 lo0 fe80::%em0/64 link#2 UC 6 0 - 4 em0 fe80::215:c5ff:fef5:db4%em0 00:15:c5:f5:0d:b4 UHLc 0 3 - 4 em0 fe80::21b:21ff:fe4e:d4a2%em0 00:1b:21:4e:d4:a2 HLl 0 0 - 1 lo0 fe80::16d6:4dff:fe27:4ffa%em0 14:d6:4d:27:4f:fa UHLc 0 0 - 4 em0 fe80::42b0:faff:fe6f:642f%em0 40:b0:fa:6f:64:2f UHLc 0 2 - 4 em0 fe80::82ee:73ff:fe64:130c%em0 80:ee:73:64:13:0c UHLc 0 121 - 4 em0 fe80::9218:7cff:feed:914e%em0 90:18:7c:ed:91:4e UHLc 0 22 - 4 em0 fe80::d2e7:82ff:fed5:c675%em0 d0:e7:82:d5:c6:75 UHLc 0 2 - 4 em0 fe80::%lo0/64 fe80::1%lo0 U 0 0 - 4 lo0 fe80::1%lo0 fe80::1%lo0 UHLl 0 0 - 1 lo0 fec0::/10 ::1 UGRS 0 0 32768 8 lo0 ff01::/16 ::1 UGRS 0 0 32768 8 lo0 ff01::%vr0/32 link#1 UC 0 0 - 4 vr0 ff01::%em0/32 link#2 UC 0 0 - 4 em0 ff01::%lo0/32 fe80::1%lo0 UC 0 0 - 4 lo0 ff02::/16 ::1 UGRS 0 0 32768 8 lo0 ff02::%vr0/32 link#1 UC 1 0 - 4 vr0 ff02::1:2%vr0 link#1 UHLc 1 2 - 4 vr0 ff02::%em0/32 link#2 UC 3 0 - 4 em0 ff02::1:ff64:130c%em0 link#2 UHLc 0 0 - 4 em0 ff02::1:ffd5:c675%em0 link#2 UHLc 0 0 - 4 em0 ff02::1:ffed:914e%em0 link#2 UHLc 0 0 - 4 em0 ff02::%lo0/32 fe80::1%lo0 UC 0 0 - 4 lo0 And here's my dmesg output from the last boot: OpenBSD 5.6 (GENERIC) #274: Fri Aug 8 00:05:13 MDT 2014 dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC cpu0: VIA Esther processor 1300MHz ("CentaurHauls" 686-class) 1.30 GHz cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,CMOV,PAT,CFLUSH,ACPI,MMX,FXSR,SSE,SSE2,TM,PBE,NXE,SSE3,EST,TM2 real mem = 1056403456 (1007MB) avail mem = 1026699264 (979MB) mpath0 at root scsibus0 at mpath0: 256 targets mainbus0 at root bios0 at mainbus0: AT/286+ BIOS, date 05/16/06, BIOS32 rev. 0 @ 0xfa950, SMBIOS rev. 2.3 @ 0xf0800 (39 entries) bios0: vendor Phoenix Technologies, LTD version "6.00 PG" date 05/16/2006 acpi0 at bios0: rev 0 acpi0: sleep states S0 S3 S4 S5 acpi0: tables DSDT FACP acpi0: wakeup devices SLPB(S5) PCI0(S5) USB0(S3) USB1(S3) USB2(S3) USB3(S3) USB4(S3) USB5(S3) USB6(S3) USB7(S3) LAN0(S5) AC97(S5) MC97(S5) UAR1(S5) acpitimer0 at acpi0: 3579545 Hz, 24 bits acpiprt0 at acpi0: bus 0 (PCI0) acpicpu0 at acpi0: C3, C2, PSS acpibtn0 at acpi0: PWRB acpibtn1 at acpi0: SLPB bios0: ROM list: 0xc0000/0xf200 0xd0000/0x8000! 0xd8000/0x1000 cpu0 at mainbus0: (uniprocessor) mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges cpu0: RNG AES AES-CTR SHA1 SHA256 RSA cpu0: Enhanced SpeedStep 1297 MHz: speeds: 1300, 400 MHz pci0 at mainbus0 bus 0: configuration mode 1 (bios) pchb0 at pci0 dev 0 function 0 "VIA CN700 Host" rev 0x00 viaagp0 at pchb0: v3 agp0 at viaagp0: aperture at 0xe8000000, size 0x10000000 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) pciide0 at pci0 dev 15 function 0 "VIA VT6420 SATA" rev 0x80: DMA pciide0: using irq 15 for native-PCI interrupt wd0 at pciide0 channel 0 drive 0: <KINGSTON SV100S232G> wd0: 16-sector PIO, LBA48, 30533MB, 62533296 sectors wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5 uhci0 at pci0 dev 16 function 0 "VIA VT83C572 USB" rev 0x81: irq 11 uhci1 at pci0 dev 16 function 1 "VIA VT83C572 USB" rev 0x81: irq 11 uhci2 at pci0 dev 16 function 2 "VIA VT83C572 USB" rev 0x81: irq 15 uhci3 at pci0 dev 16 function 3 "VIA VT83C572 USB" rev 0x81: irq 15 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: SMI iic0 at viapm0 spdmem0 at iic0 addr 0x50: 1GB DDR2 SDRAM non-parity PC2-4200CL5 auvia0 at pci0 dev 17 function 5 "VIA VT8233 AC97" rev 0x60: irq 10 ac97: codec id 0x56494182 (VIA Technologies <82>) ac97: codec features 18 bit DAC, 18 bit ADC, No 3D Stereo audio0 at auvia0 vr0 at pci0 dev 18 function 0 "VIA RhineII-2" rev 0x78: irq 11, address 00:40:63:e6:42:a5 ukphy0 at vr0 phy 1: Generic IEEE 802.3u media interface, rev. 10: OUI 0x004063, model 0x0032 em0 at pci0 dev 20 function 0 "Intel 82541GI" rev 0x05: irq 15, address 00:1b:21:4e:d4:a2 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 com0: console 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 spkr0 at pcppi0 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 vscsi0 at root scsibus1 at vscsi0: 256 targets softraid0 at root scsibus2 at softraid0: 256 targets root on wd0a (2864f309e4ec4b06.a) swap on wd0b dump on wd0b