From owner-freebsd-questions@FreeBSD.ORG Fri Jul 8 09:08:48 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E25D71065670 for ; Fri, 8 Jul 2011 09:08:47 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: from dirg.bris.ac.uk (dirg.bris.ac.uk [137.222.10.102]) by mx1.freebsd.org (Postfix) with ESMTP id 9DA8B8FC17 for ; Fri, 8 Jul 2011 09:08:47 +0000 (UTC) Received: from ncsc.bris.ac.uk ([137.222.10.41]) by dirg.bris.ac.uk with esmtp (Exim 4.72) (envelope-from ) id 1Qf730-0005Qa-4N; Fri, 08 Jul 2011 10:08:40 +0100 Received: from mech-cluster241.men.bris.ac.uk ([137.222.187.241]) by ncsc.bris.ac.uk with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1Qf72g-00043I-LX; Fri, 08 Jul 2011 10:08:10 +0100 Received: from mech-cluster241.men.bris.ac.uk (localhost [127.0.0.1]) by mech-cluster241.men.bris.ac.uk (8.14.4/8.14.4) with ESMTP id p6898AbJ034632; Fri, 8 Jul 2011 10:08:10 +0100 (BST) (envelope-from mexas@bristol.ac.uk) Received: (from mexas@localhost) by mech-cluster241.men.bris.ac.uk (8.14.4/8.14.4/Submit) id p6898AHs034631; Fri, 8 Jul 2011 10:08:10 +0100 (BST) (envelope-from mexas@bristol.ac.uk) X-Authentication-Warning: mech-cluster241.men.bris.ac.uk: mexas set sender to mexas@bristol.ac.uk using -f Date: Fri, 8 Jul 2011 10:08:10 +0100 From: Anton Shterenlikht To: Gary Gatten Message-ID: <20110708090810.GA34533@mech-cluster241.men.bris.ac.uk> Mail-Followup-To: Gary Gatten , freebsd-questions@freebsd.org References: <20110707224435.GA27624@mech-cluster241.men.bris.ac.uk> <9104_1310079280_4E163930_9104_2159_1_D9B37353831173459FDAA836D3B43499C2309D2D@WADPMBXV0.waddell.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9104_1310079280_4E163930_9104_2159_1_D9B37353831173459FDAA836D3B43499C2309D2D@WADPMBXV0.waddell.com> User-Agent: Mutt/1.4.2.3i Cc: freebsd-questions@freebsd.org Subject: Re: tftp - bad checksum error? can't transfer file X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Jul 2011 09:08:48 -0000 > ----- Original Message ----- > From: Anton Shterenlikht [mailto:mexas@bristol.ac.uk] > Sent: Thursday, July 07, 2011 05:44 PM > To: freebsd-questions@freebsd.org > Subject: tftp - bad checksum error? can't transfer file > > I'm trying to troubleshoot tftpd(8). > > % grep boot /etc/inetd.conf > tftp dgram udp wait root /usr/libexec/tftpd tftpd -dd -l -s /tftpboot > tftp dgram udp wait root /usr/libexec/tftpd tftpd -dd -l -s /tftpboot > bootps dgram udp wait root /usr/libexec/bootpd bootpd -d4 -t0 /etc/bootptab > % > > I'm trying to boot another node via bootp/tftp. > > I'm monitoring what's going on with tcpdump -vv. > > bootpd starts fine, and seems to read /etc/bootptab > correctly. > > But after that nothing happens, and after a few minutes > I get on the console of the host which I want to boot: > > > bootp()/bsd.rd.IP32 > Unable to execute bootp()/bsd.rd.IP32: invalid argument > > > > > Does this tcpdump fragment help to understand where > the problem is: > > 192.168.232.10.15388 > buzi.tftp: [no cksum] 25 RRQ "/bsd.rd.IP32" octet ( > o > 23:25:21.024160 IP (tos 0x0, ttl 64, id 56, offset 0, flags [none], proto UDP (1 > 7), length 30, bad cksum 0 (->293a)!) > buzi.19330 > 192.168.232.10.15388: [udp sum ok] UDP, length 2 > 23:25:51.013759 IP (tos 0x0, ttl 255, id 256, offset 0, flags [none], proto UDP > (17), length 53) > > I'm happy to provide more detailed information > on the settings I use and a longer tcpdump output, > if this helps. > On Thu, Jul 07, 2011 at 05:54:38PM -0500, Gary Gatten wrote: > >From my experience tcpdump is misleading re udp fragments and chksums. > If the packet gets fragmented, udp will report bad chksums at some point. > > Check your file names (case), perms, etc. > 90% of time I typo a name or forget to chmod the files; % ls -al /tftpboot/bsd.rd.IP32 -rwxrwxrwx 1 root wheel 9646005 Jul 7 21:02 /tftpboot/bsd.rd.IP32 % % cat /etc/bootptab o2:\ :ht=ether:\ :ha=0800690c0e3f:\ :sm=255.255.255.0:\ :ip=192.168.232.10:\ :td=/tftpboot:bf=bsd.rd.IP32: % Does this look ok? Many thanks Anton -- Anton Shterenlikht Room 2.6, Queen's Building Mech Eng Dept Bristol University University Walk, Bristol BS8 1TR, UK Tel: +44 (0)117 331 5944 Fax: +44 (0)117 929 4423