Hello List,
my vServer hosting provider states the IPv6 default gateway as fe80::1.
To get IPv6 traffic flowing it's necessary to ping fe80::1 fist.
For now I help myself with the following line in crontab
@reboot sleep 10 && ping6 -c 10 fe80::1\%vio0 > /dev/null
It doesn't feel right though. Is there a better way?
ndp -s doesn't work because I'm unable to set set the R flag.
Apologies for the following information overload:
Freshly booted system:
# cat /etc/hostname.vio0
inet 5.45.103.6 255.255.252.0
!route add default 5.45.100.1
inet6 2a03:4000:6:f0::47/64
inet6 alias 2a03:4000:6:f0::47:e/64
!route add -inet6 default fe80::1%vio0
# ifconfig
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 32768
priority: 0
groups: lo
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
inet6 ::1 prefixlen 128
inet 127.0.0.1 netmask 0xff000000
vio0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
lladdr 52:54:cf:85:a9:c9
priority: 0
groups: egress
media: Ethernet autoselect
status: active
inet 5.45.103.6 netmask 0xfffffc00 broadcast 5.45.103.255
inet6 fe80::5054:cfff:fe85:a9c9%vio0 prefixlen 64 scopeid 0x1
inet6 2a03:4000:6:f0::47 prefixlen 64
inet6 2a03:4000:6:f0::47:e prefixlen 64
enc0: flags=0<>
priority: 0
groups: enc
status: active
pflog0: flags=141<UP,RUNNING,PROMISC> mtu 33144
priority: 0
groups: pflog
# ndp -na
Neighbor Linklayer Address Netif Expire S Flags
2a03:4000:6:f0::47 52:54:cf:85:a9:c9 vio0 permanent R l
2a03:4000:6:f0::47:e 52:54:cf:85:a9:c9 vio0 permanent R l
fe80::1%vio0 (incomplete) vio0 expired N
fe80::5054:cfff:fe85:a9c9%vio0 52:54:cf:85:a9:c9 vio0 permanent R l
# route -n show -inet6
Routing tables
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 fe80::1%vio0 UGS 0 0 -
8 vio0
::1 ::1 UHl 14 0 32768
1 lo0
::1 ::1 UH 0 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
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
2a03:4000:6:f0::/64 link#1 UC 0 0 -
4 vio0
2a03:4000:6:f0::47 52:54:cf:85:a9:c9 UHLl 0 0 -
1 lo0
2a03:4000:6:f0::47:e 52:54:cf:85:a9:c9 UHLl 0 0 -
1 lo0
fe80::/10 ::1 UGRS 0 0 32768
8 lo0
fe80::%vio0/64 link#1 UC 1 0 -
4 vio0
fe80::1%vio0 link#1 UHLc 1 0 -
4 vio0
fe80::5054:cfff:fe85:a9c9%vio0 52:54:cf:85:a9:c9 UHLl 0 0 -
1 lo0
fe80::%lo0/64 fe80::1%lo0 U 0 0 32768
4 lo0
fe80::1%lo0 fe80::1%lo0 UHl 0 0 32768
1 lo0
fec0::/10 ::1 UGRS 0 0 32768
8 lo0
ff01::/16 ::1 UGRS 0 0 32768
8 lo0
ff01::%vio0/32 link#1 UC 0 0 -
4 vio0
ff01::%lo0/32 ::1 UC 0 0 32768
4 lo0
ff02::/16 ::1 UGRS 0 0 32768
8 lo0
ff02::%vio0/32 link#1 UC 0 0 -
4 vio0
ff02::%lo0/32 ::1 UC 0 0 32768
4 lo0
# ping6 -vc 4 heise.de
PING6(56=40+8+8 bytes) 2a03:4000:6:f0::47:e --> 2a02:2e0:3fe:1001:302::
32 bytes from 2a03:4000:6::1: Neighbor Advertisement
32 bytes from 2a03:4000:6::1: Neighbor Advertisement
32 bytes from 2a03:4000:6::1: Neighbor Advertisement
64 bytes from 2a03:4000:6:f0::47:e: Destination Host Unreachable
Vr TC Flow Plen Nxt Hlim
6 00 00000 0010 3a 40
2a03:4000:6:f0::47:e->2a02:2e0:3fe:1001:302::
ICMP6: type = 128, code = 0
32 bytes from 2a03:4000:6::1: Neighbor Advertisement
32 bytes from 2a03:4000:6::1: Neighbor Advertisement
32 bytes from 2a03:4000:6::1: Neighbor Advertisement
64 bytes from 2a03:4000:6:f0::47:e: Destination Host Unreachable
Vr TC Flow Plen Nxt Hlim
6 00 00000 0010 3a 40
2a03:4000:6:f0::47:e->2a02:2e0:3fe:1001:302::
ICMP6: type = 128, code = 0
--- heise.de ping6 statistics ---
4 packets transmitted, 0 packets received, 100.0% packet loss
# ping6 -vc 4 fe80::1%vio0
PING6(56=40+8+8 bytes) fe80::5054:cfff:fe85:a9c9%vio0 --> fe80::1%vio0
32 bytes from fe80::1%vio0: Neighbor Advertisement
16 bytes from fe80::1%vio0, icmp_seq=0 hlim=64
dst=fe80::5054:cfff:fe85:a9c9%vio0 time=2.091 ms
16 bytes from fe80::1%vio0, icmp_seq=1 hlim=64
dst=fe80::5054:cfff:fe85:a9c9%vio0 time=0.859 ms
16 bytes from fe80::1%vio0, icmp_seq=2 hlim=64
dst=fe80::5054:cfff:fe85:a9c9%vio0 time=0.874 ms
16 bytes from fe80::1%vio0, icmp_seq=3 hlim=64
dst=fe80::5054:cfff:fe85:a9c9%vio0 time=0.831 ms
--- fe80::1%vio0 ping6 statistics ---
4 packets transmitted, 4 packets received, 0.0% packet loss
round-trip min/avg/max/std-dev = 0.831/1.164/2.091/0.536 ms
# ping6 -vc 4 heise.de
PING6(56=40+8+8 bytes) 2a03:4000:6:f0::47:e --> 2a02:2e0:3fe:1001:302::
32 bytes from fe80::5e5e:ab00:6603:66c0%vio0: Neighbor Solicitation
16 bytes from 2a02:2e0:3fe:1001:302::, icmp_seq=0 hlim=60
dst=2a03:4000:6:f0::47:e%1 time=280.947 ms
16 bytes from 2a02:2e0:3fe:1001:302::, icmp_seq=1 hlim=60
dst=2a03:4000:6:f0::47:e%1 time=4.858 ms
16 bytes from 2a02:2e0:3fe:1001:302::, icmp_seq=2 hlim=60
dst=2a03:4000:6:f0::47:e%1 time=4.314 ms
16 bytes from 2a02:2e0:3fe:1001:302::, icmp_seq=3 hlim=60
dst=2a03:4000:6:f0::47:e%1 time=4.328 ms
--- heise.de ping6 statistics ---
4 packets transmitted, 4 packets received, 0.0% packet loss
round-trip min/avg/max/std-dev = 4.314/73.612/280.947/119.705 ms
# ndp -na
Neighbor Linklayer Address Netif Expire S Flags
2a03:4000:6:f0::47 52:54:cf:85:a9:c9 vio0 permanent R l
2a03:4000:6:f0::47:e 52:54:cf:85:a9:c9 vio0 permanent R l
fe80::1%vio0 00:00:5e:00:02:02 vio0 23h58m11s S R
fe80::5054:cfff:fe85:a9c9%vio0 52:54:cf:85:a9:c9 vio0 permanent R l
fe80::5e5e:ab00:6603:66c0%vio0 5c:5e:ab:03:66:c0 vio0 23h58m11s S R
# route -n show -inet6
Routing tables
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 fe80::1%vio0 UGS 0 12 -
8 vio0
::1 ::1 UHl 14 0 32768
1 lo0
::1 ::1 UH 0 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
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
2a03:4000:6:f0::/64 link#1 UC 0 0 -
4 vio0
2a03:4000:6:f0::47 52:54:cf:85:a9:c9 UHLl 0 0 -
1 lo0
2a03:4000:6:f0::47:e 52:54:cf:85:a9:c9 UHLl 0 0 -
1 lo0
fe80::/10 ::1 UGRS 0 0 32768
8 lo0
fe80::%vio0/64 link#1 UC 2 0 -
4 vio0
fe80::1%vio0 00:00:5e:00:02:02 UHLc 1 6 -
4 vio0
fe80::5054:cfff:fe85:a9c9%vio0 52:54:cf:85:a9:c9 UHLl 0 0 -
1 lo0
fe80::5e5e:ab00:6603:66c0%vio0 5c:5e:ab:03:66:c0 UHLc 0 2 -
4 vio0
fe80::%lo0/64 fe80::1%lo0 U 0 0 32768
4 lo0
fe80::1%lo0 fe80::1%lo0 UHl 0 0 32768
1 lo0
fec0::/10 ::1 UGRS 0 0 32768
8 lo0
ff01::/16 ::1 UGRS 0 0 32768
8 lo0
ff01::%vio0/32 link#1 UC 0 0 -
4 vio0
ff01::%lo0/32 ::1 UC 0 0 32768
4 lo0
ff02::/16 ::1 UGRS 0 0 32768
8 lo0
ff02::%vio0/32 link#1 UC 1 0 -
4 vio0
ff02::1:ff00:1%vio0 link#1 UHLc 0 0 -
4 vio0
ff02::%lo0/32 ::1 UC 0 0 32768
4 lo0
# dmesg
OpenBSD 5.7-beta (GENERIC) #770: Wed Jan 28 09:37:39 MST 2015
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC
real mem = 1056956416 (1007MB)
avail mem = 1025036288 (977MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xfd9c0 (10 entries)
bios0: vendor Bochs version "Bochs" date 01/01/2007
bios0: Bochs Bochs
acpi0 at bios0: rev 0
acpi0: sleep states S3 S4 S5
acpi0: tables DSDT FACP SSDT APIC HPET SSDT
acpi0: wakeup devices
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Xeon(R) CPU E5645 @ 2.40GHz, 2394.24 MHz
cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,SS,SSE3,PCLMUL,SSSE3,CX16,SSE4.1,SSE4.2,POPCNT,AES,HV,NXE,PAGE1GB,LONG,LAHF
cpu0: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB
64b/line 16-way L2 cache
cpu0: ITLB 255 4KB entries direct-mapped, 255 4MB entries direct-mapped
cpu0: DTLB 255 4KB entries direct-mapped, 255 4MB entries direct-mapped
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 1000MHz
ioapic0 at mainbus0: apid 1 pa 0xfec00000, version 11, 24 pins
ioapic0: misconfigured as apic 0, remapped to apid 1
acpihpet0 at acpi0: 100000000 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpicpu0 at acpi0
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 82371SB IDE" rev 0x00: DMA,
channel 0 wired to compatibility, channel 1 wired 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: <QEMU, QEMU DVD-ROM, 1.1.> ATAPI 5/cdrom
removable
cd0(pciide0:1:0): using PIO mode 4, DMA mode 2
uhci0 at pci0 dev 1 function 2 "Intel 82371SB USB" rev 0x01: apic 1 int 11
piixpm0 at pci0 dev 1 function 3 "Intel 82371AB Power" rev 0x03: apic 1
int 10
iic0 at piixpm0
iic0: addr 0x18 00=00 01=00 02=00 03=00 04=00 05=00 06=00 07=00 08=00
words 00=0000 01=0000 02=0000 03=0000 04=0000 05=0000 06=0000 07=0000
iic0: addr 0x1a 00=00 01=00 02=00 03=00 04=00 05=00 06=00 07=00 08=00
words 00=0000 01=0000 02=0000 03=0000 04=0000 05=0000 06=0000 07=0000
iic0: addr 0x29 00=00 01=00 02=00 03=00 04=00 05=00 06=00 07=00 08=00
words 00=0000 01=0000 02=0000 03=0000 04=0000 05=0000 06=0000 07=0000
iic0: addr 0x2b 00=00 01=00 02=00 03=00 04=00 05=00 06=00 07=00 08=00
words 00=0000 01=0000 02=0000 03=0000 04=0000 05=0000 06=0000 07=0000
iic0: addr 0x4c 00=00 01=00 02=00 03=00 04=00 05=00 06=00 07=00 08=00
words 00=0000 01=0000 02=0000 03=0000 04=0000 05=0000 06=0000 07=0000
iic0: addr 0x4e 00=00 01=00 02=00 03=00 04=00 05=00 06=00 07=00 08=00
words 00=0000 01=0000 02=0000 03=0000 04=0000 05=0000 06=0000 07=0000
vga1 at pci0 dev 2 function 0 "Cirrus Logic CL-GD5446" 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:
Virtio Network Device
vio0 at virtio0: address 52:54:cf:85:a9:c9
virtio0: apic 1 int 11
virtio1 at pci0 dev 4 function 0 "Qumranet Virtio Storage" rev 0x00:
Virtio Block Device
vioblk0 at virtio1
scsibus2 at vioblk0: 2 targets
sd0 at scsibus2 targ 0 lun 0: <VirtIO, Block Device, > SCSI3 0/direct fixed
sd0: 59392MB, 512 bytes/sector, 121634816 sectors
virtio1: apic 1 int 11
virtio2 at pci0 dev 5 function 0 "Qumranet Virtio Memory" rev 0x00:
Virtio Memory Balloon Device
viomb0 at virtio2
virtio2: apic 1 int 10
isa0 at pcib0
isadma0 at isa0
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
fd0 at fdc0 drive 0: density unknown
fd1 at fdc0 drive 1: density unknown
com0 at isa0 port 0x3f8/8 irq 4: 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
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
usb0 at uhci0: USB revision 1.0
uhub0 at usb0 "Intel UHCI root hub" rev 1.00/1.00 addr 1
nvram: invalid checksum
uhidev0 at uhub0 port 1 configuration 1 interface 0 "QEMU 1.1.2 QEMU USB
Tablet" rev 1.00/0.00 addr 2
uhidev0: iclass 3/0
ums0 at uhidev0: 3 buttons, Z dir
wsmouse1 at ums0 mux 0
vscsi0 at root
scsibus3 at vscsi0: 256 targets
softraid0 at root
scsibus4 at softraid0: 256 targets
root on sd0a (f804d3b0cbb67257.a) swap on sd0b dump on sd0b
clock: unknown CMOS layout
Thanks