Hello,
I'm using an old Soekris as switch/access point. For this I'm using the
following /etc/hostname.*:
/etc/hostname.ath0
mediaopt hostap
nwid "rfc1918 2"
wpakey xxxxxxxx
up
/etc/hostname.bridge0
add ath0
add vr0
add vr1
add vr2
add vr3
up
/etc/hostname.vr0
dhcp
/etc/hostname.vr1
up
/etc/hostname.vr2
up
/etc/hostname.vr3
up
Until recently this worked as expected: vr0 would get an IP via a dhcp request
and was reachable via this IP address. Devices on vr{1,2,3} and ath0 would also
get an IP address via dhcp from the same dhcp server as vr0.
Today I updated to a new snapshot. It seems that something has changed as
devices on vr{1,2,3} and ath0 are unable to retrieve an IP via dhcp. Using
tcpdump I'm able to see that these devices are sending out a request:
tcpdump -i bridge0 port 67 or port 68
tcpdump: listening on bridge0, link-type EN10MB
15:32:43.481615 0.0.0.0.bootpc > 255.255.255.255.bootps: xid:0xa1b766a4 [|bootp]
15:32:45.668895 0.0.0.0.bootpc > 255.255.255.255.bootps: xid:0x5dee0000 [|bootp]
15:32:54.668290 0.0.0.0.bootpc > 255.255.255.255.bootps: xid:0xa1b766a5 [|bootp]
15:32:54.668503 0.0.0.0.bootpc > 255.255.255.255.bootps: xid:0xa1b766a5 [|bootp]
15:32:56.646297 0.0.0.0.bootpc > 255.255.255.255.bootps: xid:0xa1b766a5 secs:2
[|bootp]
15:32:56.646507 0.0.0.0.bootpc > 255.255.255.255.bootps: xid:0xa1b766a5 secs:2
[|bootp]
15:32:59.505877 0.0.0.0.bootpc > 255.255.255.255.bootps: xid:0xa1b766a5 secs:5
[|bootp]
15:32:59.506090 0.0.0.0.bootpc > 255.255.255.255.bootps: xid:0xa1b766a5 secs:5
[|bootp]
15:33:03.613177 0.0.0.0.bootpc > 255.255.255.255.bootps: xid:0xa1b766a5 secs:9
[|bootp]
15:33:03.613387 0.0.0.0.bootpc > 255.255.255.255.bootps: xid:0xa1b766a5 secs:9
[|bootp]
Unfortunately there is no reply. Setting up the devices on vr{1,2,3} and ath0
with a fixed address results in expected behaviour: the devices are reachable.
vr0 however still gets a reply and thus an IP address via dhcp.
I did not make any changes in my network configuration. As a test however I
disabled pf without a change in behaviour.
It seems something has changed in the bridge functionality.
dmesg and route table are included below.
Kind regards,
--
Björn Ketelaars
GPG key: 0x4F0E5F21
$ dmesg
OpenBSD 6.0-current (GENERIC) #2000: Thu Sep 1 09:05:19 MDT 2016
[email protected]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Geode(TM) Integrated Processor by AMD PCS ("AuthenticAMD" 586-class) 500
MHz
cpu0: FPU,DE,PSE,TSC,MSR,CX8,SEP,PGE,CMOV,CFLUSH,MMX,MMXX,3DNOW2,3DNOW
real mem = 536363008 (511MB)
avail mem = 513437696 (489MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: date 20/80/26, BIOS32 rev. 0 @ 0xfac40
pcibios0 at bios0: rev 2.0 @ 0xf0000/0x10000
pcibios0: pcibios_get_intr_routing - function not supported
pcibios0: PCI IRQ Routing information unavailable.
pcibios0: PCI bus #0 is the last bus
bios0: ROM list: 0xc8000/0xa800
cpu0 at mainbus0: (uniprocessor)
mtrr: K6-family MTRR support (2 registers)
amdmsr0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
0:20:0: io address conflict 0x6100/0x100
0:20:0: io address conflict 0x6200/0x200
pchb0 at pci0 dev 1 function 0 "AMD Geode LX" rev 0x33
glxsb0 at pci0 dev 1 function 2 "AMD Geode LX Crypto" rev 0x00: RNG AES
vr0 at pci0 dev 6 function 0 "VIA VT6105M RhineIII" rev 0x96: irq 11, address
00:00:24:cb:aa:38
ukphy0 at vr0 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI 0x004063,
model 0x0034
vr1 at pci0 dev 7 function 0 "VIA VT6105M RhineIII" rev 0x96: irq 5, address
00:00:24:cb:aa:39
ukphy1 at vr1 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI 0x004063,
model 0x0034
vr2 at pci0 dev 8 function 0 "VIA VT6105M RhineIII" rev 0x96: irq 9, address
00:00:24:cb:aa:3a
ukphy2 at vr2 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI 0x004063,
model 0x0034
vr3 at pci0 dev 9 function 0 "VIA VT6105M RhineIII" rev 0x96: irq 12, address
00:00:24:cb:aa:3b
ukphy3 at vr3 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI 0x004063,
model 0x0034
ath0 at pci0 dev 17 function 0 "Atheros AR5212" rev 0x01: irq 15
ath0: AR5213 5.6 phy 4.1 rf5111 1.7 rf2111 2.3 eeprom 3.4, WOR0W, address
00:0b:cd:5a:c3:c4
glxpcib0 at pci0 dev 20 function 0 "AMD CS5536 ISA" rev 0x03: rev 3, 32-bit
3579545Hz timer, watchdog, gpio, i2c
gpio0 at glxpcib0: 32 pins
iic0 at glxpcib0
pciide0 at pci0 dev 20 function 2 "AMD CS5536 IDE" rev 0x01: DMA, channel 0
wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: <TS4GCF133>
wd0: 1-sector PIO, LBA, 3823MB, 7831152 sectors
wd1 at pciide0 channel 0 drive 1: <WDC WD10JPVX-00JC3T0>
wd1: 16-sector PIO, LBA48, 953869MB, 1953525168 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
wd1(pciide0:0:1): using PIO mode 4, Ultra-DMA mode 2
pciide0: channel 1 ignored (disabled)
ohci0 at pci0 dev 21 function 0 "AMD CS5536 USB" rev 0x02: irq 7, version 1.0,
legacy support
ehci0 at pci0 dev 21 function 1 "AMD CS5536 USB" rev 0x02: irq 7
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "AMD EHCI root hub" rev 2.00/1.00 addr 1
isa0 at glxpcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
com0: console
com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
pckbc0 at isa0 port 0x60/5 irq 1 irq 12
pckbc0: unable to establish interrupt for irq 12
pckbd0 at pckbc0 (kbd slot)
wskbd0 at pckbd0: console keyboard
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
nsclpcsio0 at isa0 port 0x2e/2: NSC PC87366 rev 9: GPIO VLM TMS
gpio1 at nsclpcsio0: 29 pins
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
usb1 at ohci0: USB revision 1.0
uhub1 at usb1 "AMD OHCI root hub" rev 1.00/1.00 addr 1
vscsi0 at root
scsibus1 at vscsi0: 256 targets
softraid0 at root
scsibus2 at softraid0: 256 targets
root on wd0a (4cbdfbe18ce5a24a.a) swap on wd0b dump on wd0b
$ route -nv show
Routing tables
Internet:
Destination Gateway Flags Refs Use Mtu Prio Iface
Label
default 10.0.0.1 UGS 3 654 - 8 vr0
DHCLIENT 50062
224/4 127.0.0.1 URS 0 1928 32768 8 lo0
10.0.0/24 10.0.0.17 UCn 2 1560 - 4 vr0
10.0.0.1 00:0d:b9:33:8e:a5 UHLch 1 715 - 4 vr0
10.0.0.11 d0:bf:9c:46:de:14 UHLc 1 192 - 4 vr0
10.0.0.17 00:00:24:cb:aa:38 UHLl 0 96 - 1 vr0
10.0.0.255 10.0.0.17 UHb 0 241 - 1 vr0
127/8 127.0.0.1 UGRS 0 0 32768 8 lo0
127.0.0.1 127.0.0.1 UHhl 1 2 32768 1 lo0
Internet6:
Destination Gateway Flags Refs
Use Mtu Prio Iface Label
::/96 ::1 UGRS 0
0 32768 8 lo0
::/104 ::1 UGRS 0
0 32768 8 lo0
::1 ::1 UHhl 14
28 32768 1 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
fe80::/10 ::1 UGRS 0
0 32768 8 lo0
fec0::/10 ::1 UGRS 0
0 32768 8 lo0
fe80::1%lo0 fe80::1%lo0 UHl 0
0 32768 1 lo0
ff01::/16 ::1 UGRS 0
0 32768 8 lo0
ff01::%lo0/32 ::1 Um 0
1 32768 4 lo0
ff02::/16 ::1 UGRS 0
0 32768 8 lo0
ff02::%lo0/32 ::1 Um 0
1 32768 4 lo0