I just happened to run into the same issue right after upgrading to 4.7
(however, you mention 4.6, so I'm uncertain we're dealing with the same
cause).

Basically, the issue I'm seeing is that portmap/rpc.bootparamd don't see
the incoming packets for 172.16.255.255 (my own network being
172.16.5.0/25, so broadcast is 172.16.5.127).

There were some changes made to sys/netinet/in.c, especially rev 1.56.

As far as I know, the diskless machine cannot learn its netmask through
RARP, so will assume a netmask based on the class of the network the
machine is in, hence the 172.16.255.255 broadcast. Before rev 1.56 of
netinet/in.c, it seems the kernel would accept broadcasts for the
broadcast address associated to your network "class". Or at least that's
the behavior I observe when running "portmap -d". After updating to 1.56
and up, portmap/rpc.bootparamd don't see the requests for
172.16.255.255.

As a workaround, I succeeded by either keeping a 4.6 kernel around to
answer the bootparam requests, or forcing a broadcast address of
172.16.255.255 on the bootparamd server. Not particularly clean, but it
did the trick.

As for a permanent fix, I am unsure. I don't know of any way other than
RARP to do diskless in OpenBSD, at least on i386/amd64.

Any thoughts?

--
Pascal



On Wed, May 12, 2010 at 12:30:39AM +0200, Stefan Unterweger wrote:
> * Fred Crowson on Tue, May 11, 2010 at 10:43:09PM +0100:
> > What does your dhcpd.conf look like on your server?
>
> I have several subnets served via DHCP, so I have reported only
> the relevant one together with the global options:
>
> | server-name "Neu-Sorpigal";
> | option domain-name "intranet.aleturo.com";
> | default-lease-time 86400;
> |
> | shared-network wired {
> |     option domain-name "wired.intranet.aleturo.com";
> |     option domain-name-servers 172.23.12.2;
> |     option netbios-name-servers 172.23.12.2;
> |     option routers 172.23.12.2;
> |
> |     filename "pxeboot";
> |     next-server 172.23.12.2;
> |     option root-path "/export/client/";
> |
> |     subnet 172.23.0.0 netmask 255.255.0.0 {
> |         allow unknown-clients;
> |         range 172.23.13.128 172.23.13.254;
> |     }
> | }
>
> I've added the options "next-server" and "root-path" just now,
> since I've seen mention of it in pxeboot(8). Prior to that, only
> the "filename" directive was there. Everything else however,
> including the tcpdumps, is not impressed by that.
>
> > It might be worth having -vv and -X on your tcpdump it might provide
> > more info as to the problem.
>
> I didn't include the dump from phase 2, where pxeboot and the
> kernel are served by tftp and whatelse, since that's an insane
> amount of data. This tcpdump was started just before the kernel
> tried to connect to NFS, that is, before the second burst.
>
> | $ tcpdump -X -vv -n -s 160 -i em0 host 172.23.13.138
> | tcpdump: listening on em0, link-type EN10MB
> | 00:19:48.612571 rarp reply 00:00:e2:87:e8:76 at 172.23.13.138
> |   0000: 0001 0800 0604 0004 000e 0c06 be26 ac17  ............>&,.
> |   0010: 0c02 0000 e287 e876 ac17 0d8a            ....b.hv,...
> |
> | 00:19:48.613207 arp who-has 172.23.13.138 tell 172.23.13.138
> |   0000: 0001 0800 0604 0001 0000 e287 e876 ac17  ..........b.hv,.
> |   0010: 0d8a 0000 0000 0000 ac17 0d8a 0000 0000  ........,.......
> |   0020: 0000 0000 0000 0000 0000 0000 0000       ..............
> |
> | 00:19:48.630322 172.23.13.138.718 > 172.23.255.255.111: [udp sum ok] udp
96 (ttl 64, id 65499, len 124)
> |   0000: 4500 007c ffdb 0000 4011 14dd ac17 0d8a  E..|...@..],...
> |   0010: ac17 ffff 02ce 006f 0068 eac4 90ad 0bca  ,..N.o.hjD.-.J
> |   0020: 0000 0000 0000 0002 0001 86a0 0000 0002  ........... ....
> |   0030: 0000 0005 0000 0001 0000 0014 0000 0000  ................
> |   0040: 0000 0000 0000 0000 0000 0000 0000 0000  ................
> |   0050: 0000 0000 0000 0000 0001 86ba 0000 0001  ...........:....
> |   0060: 0000 0001 0000 0014 0000 0001 0000 00ac  ...............,
> |   0070: 0000 0017 0000 000d 0000 008a            ............
> |
> | 00:19:49.620480 172.23.13.138.718 > 172.23.255.255.111: [udp sum ok] udp
96 (ttl 64, id 60019, len 124)
> |   0000: 4500 007c ea73 0000 4011 2a45 ac17 0d8a  E..|j...@.*e,...
> |   0010: ac17 ffff 02ce 006f 0068 eac4 90ad 0bca  ,..N.o.hjD.-.J
> |   0020: 0000 0000 0000 0002 0001 86a0 0000 0002  ........... ....
> |   0030: 0000 0005 0000 0001 0000 0014 0000 0000  ................
> |   0040: 0000 0000 0000 0000 0000 0000 0000 0000  ................
> |   0050: 0000 0000 0000 0000 0001 86ba 0000 0001  ...........:....
> |   0060: 0000 0001 0000 0014 0000 0001 0000 00ac  ...............,
> |   0070: 0000 0017 0000 000d 0000 008a            ............
> |
> | 00:19:51.620513 172.23.13.138.718 > 172.23.255.255.111: [udp sum ok] udp
96 (ttl 64, id 63711, len 124)
> |   0000: 4500 007c f8df 0000 4011 1bd9 ac17 0d8a  E..|x...@..y,...
> |   0010: ac17 ffff 02ce 006f 0068 eac4 90ad 0bca  ,..N.o.hjD.-.J
> |   0020: 0000 0000 0000 0002 0001 86a0 0000 0002  ........... ....
> |   0030: 0000 0005 0000 0001 0000 0014 0000 0000  ................
> |   0040: 0000 0000 0000 0000 0000 0000 0000 0000  ................
> |   0050: 0000 0000 0000 0000 0001 86ba 0000 0001  ...........:....
> |   0060: 0000 0001 0000 0014 0000 0001 0000 00ac  ...............,
> |   0070: 0000 0017 0000 000d 0000 008a            ............
> |
> | 00:19:54.620566 172.23.13.138.718 > 172.23.255.255.111: [udp sum ok] udp
96 (ttl 64, id 635, len 124)
> |   0000: 4500 007c 027b 0000 4011 123e ac17 0d8a  E..|....@..>,...
> |   0010: ac17 ffff 02ce 006f 0068 eac4 90ad 0bca  ,..N.o.hjD.-.J
> |   0020: 0000 0000 0000 0002 0001 86a0 0000 0002  ........... ....
> |   0030: 0000 0005 0000 0001 0000 0014 0000 0000  ................
> |   0040: 0000 0000 0000 0000 0000 0000 0000 0000  ................
> |   0050: 0000 0000 0000 0000 0001 86ba 0000 0001  ...........:....
> |   0060: 0000 0001 0000 0014 0000 0001 0000 00ac  ...............,
> |   0070: 0000 0017 0000 000d 0000 008a            ............
> |
> | 00:19:58.620632 172.23.13.138.718 > 172.23.255.255.111: [udp sum ok] udp
96 (ttl 64, id 40174, len 124)
> |   0000: 4500 007c 9cee 0000 4011 77ca ac17 0d8a  E..|....@.wj,...
> |   0010: ac17 ffff 02ce 006f 0068 eac4 90ad 0bca  ,..N.o.hjD.-.J
> |   0020: 0000 0000 0000 0002 0001 86a0 0000 0002  ........... ....
> |   0030: 0000 0005 0000 0001 0000 0014 0000 0000  ................
> |   0040: 0000 0000 0000 0000 0000 0000 0000 0000  ................
> |   0050: 0000 0000 0000 0000 0001 86ba 0000 0001  ...........:....
> |   0060: 0000 0001 0000 0014 0000 0001 0000 00ac  ...............,
> |   0070: 0000 0017 0000 000d 0000 008a            ............
> |
> | 00:20:03.620714 172.23.13.138.718 > 172.23.255.255.111: [udp sum ok] udp
96 (ttl 64, id 22772, len 124)
> |   0000: 4500 007c 58f4 0000 4011 bbc4 ac17 0d8a  E..|x...@.;D,...
> |   0010: ac17 ffff 02ce 006f 0068 eac4 90ad 0bca  ,..N.o.hjD.-.J
> |   0020: 0000 0000 0000 0002 0001 86a0 0000 0002  ........... ....
> |   0030: 0000 0005 0000 0001 0000 0014 0000 0000  ................
> |   0040: 0000 0000 0000 0000 0000 0000 0000 0000  ................
> |   0050: 0000 0000 0000 0000 0001 86ba 0000 0001  ...........:....
> |   0060: 0000 0001 0000 0014 0000 0001 0000 00ac  ...............,
> |   0070: 0000 0017 0000 000d 0000 008a            ............
> |
> | 00:20:08.620803 172.23.13.138.718 > 172.23.255.255.111: [udp sum ok] udp
96 (ttl 64, id 10126, len 124)
> |   0000: 4500 007c 278e 0000 4011 ed2a ac17 0d8a  E..|'....@.m*,...
> |   0010: ac17 ffff 02ce 006f 0068 eac4 90ad 0bca  ,..N.o.hjD.-.J
> |   0020: 0000 0000 0000 0002 0001 86a0 0000 0002  ........... ....
> |   0030: 0000 0005 0000 0001 0000 0014 0000 0000  ................
> |   0040: 0000 0000 0000 0000 0000 0000 0000 0000  ................
> |   0050: 0000 0000 0000 0000 0001 86ba 0000 0001  ...........:....
> |   0060: 0000 0001 0000 0014 0000 0001 0000 00ac  ...............,
> |   0070: 0000 0017 0000 000d 0000 008a            ............
> |
> | 00:20:13.620884 172.23.13.138.718 > 172.23.255.255.111: [udp sum ok] udp
96 (ttl 64, id 40136, len 124)
> |   0000: 4500 007c 9cc8 0000 4011 77f0 ac17 0d8a  E..|....@.wp,...
> |   0010: ac17 ffff 02ce 006f 0068 eac4 90ad 0bca  ,..N.o.hjD.-.J
> |   0020: 0000 0000 0000 0002 0001 86a0 0000 0002  ........... ....
> |   0030: 0000 0005 0000 0001 0000 0014 0000 0000  ................
> |   0040: 0000 0000 0000 0000 0000 0000 0000 0000  ................
> |   0050: 0000 0000 0000 0000 0001 86ba 0000 0001  ...........:....
> |   0060: 0000 0001 0000 0014 0000 0001 0000 00ac  ...............,
> |   0070: 0000 0017 0000 000d 0000 008a            ............
>
>
> s//un

Reply via email to