Package: atftpd
Version: 0.6.3
Architecture: powerpc
I've been mucking about with netboot/PXE/RPL and finally managed to
netboot pxegrub. This is great, except the PXE card i was using does not
belong to me. I found a 3com 3c509c-txm that does belong to me, and has
PXE. However, the 3com card with the same configuration does *not* work.
192.168.6.3 is the machine with the PXE 3com card, and 192.168.6.7 is
the DHCP/tftp server.
[A /etc/inetd.conf]
tftp dgram udp wait root /usr/sbin/tcpd
/usr/sbin/in.tftpd --daemon --no-multicast --tftpd-timeout 0 -m 1000
--verbose=7 /tftpboot
[/A]
Yes, i know, it should not be user 'root'. I was trying the same
configuration of another post I googled for, where it said these options
had been used successfully on a 3c509-tx
[A /var/log/syslog]
Jun 10 13:12:27 sine tftpd[19103]: running in daemon mode on port 69
Jun 10 13:12:27 sine tftpd[19103]: logging level: 7
Jun 10 13:12:27 sine tftpd[19103]: directory: /tftpboot/
Jun 10 13:12:27 sine tftpd[19103]: user: nobody.nogroup
Jun 10 13:12:27 sine tftpd[19103]: log file: syslog
Jun 10 13:12:27 sine tftpd[19103]: server timeout: Not used
Jun 10 13:12:27 sine tftpd[19103]: tftp retry timeout: 5
Jun 10 13:12:27 sine tftpd[19103]: maximum number of thread: 1000
Jun 10 13:12:27 sine tftpd[19103]: option timeout: enabled
Jun 10 13:12:27 sine tftpd[19103]: option tzise: enabled
Jun 10 13:12:27 sine tftpd[19103]: option blksize: enabled
Jun 10 13:12:27 sine tftpd[19103]: option multicast: disabled
Jun 10 13:12:27 sine tftpd[19103]: address range: 239.255.0.0-255
Jun 10 13:12:27 sine tftpd[19103]: port range: 1753
Jun 10 13:12:42 sine tftpd[19105]: Serving pxegrub to 192.168.6.3:2072
Jun 10 13:12:42 sine tftpd[19105]: received RRQ <filename: pxegrub,
mode: octet, tsize: 0>
Jun 10 13:12:42 sine tftpd[19105]: tsize option -> 199204
Jun 10 13:12:42 sine tftpd[19105]: sent OACK <tsize: 199204>
Jun 10 13:12:42 sine tftpd[19105]: received ERROR <code: 0, msg: TFTP
Aborted>
Jun 10 13:12:42 sine tftpd[19105]: Aborting transfer
Jun 10 13:12:42 sine tftpd[19105]: Server thread exiting
Jun 10 13:12:42 sine tftpd[19106]: Serving pxegrub to 192.168.6.3:2073
Jun 10 13:12:42 sine tftpd[19106]: received RRQ <filename: pxegrub,
mode: octet, blksize: 1456>
Jun 10 13:12:42 sine tftpd[19106]: blksize option -> 1456
Jun 10 13:12:42 sine tftpd[19106]: sent OACK <blksize: 1456>
Jun 10 13:12:47 sine tftpd[19106]: timeout: retrying...
Jun 10 13:12:47 sine tftpd[19106]: sent OACK <blksize: 1456>
Jun 10 13:12:47 sine tftpd[19106]: received ACK <block: 0>
Jun 10 13:12:47 sine tftpd[19106]: sent DATA <block: 1, size 1456>
Jun 10 13:12:50 sine tftpd[19107]: Invalid request <4> from 192.168.6.3
Jun 10 13:12:50 sine tftpd[19107]: sent ERROR <code: 4, msg: Illegal
TFTP operation>
Jun 10 13:12:50 sine tftpd[19107]: Server thread exiting
Jun 10 13:12:52 sine tftpd[19106]: timeout: retrying...
Jun 10 13:12:52 sine tftpd[19106]: sent DATA <block: 1, size 1456>
Jun 10 13:12:57 sine tftpd[19106]: timeout: retrying...
Jun 10 13:12:57 sine tftpd[19106]: sent DATA <block: 1, size 1456>
Jun 10 13:13:02 sine tftpd[19106]: timeout: retrying...
Jun 10 13:13:02 sine tftpd[19106]: sent DATA <block: 1, size 1456>
Jun 10 13:13:07 sine tftpd[19106]: timeout: retrying...
Jun 10 13:13:07 sine tftpd[19106]: sent DATA <block: 1, size 1456>
Jun 10 13:13:12 sine tftpd[19106]: Aborting transfer
Jun 10 13:13:12 sine tftpd[19106]: Server thread exiting
[/A]
It worked fine with the other card, but not the 3c509c-txm.
Just to be sure, i'm doing...
apt-get remove --purge atftpd
rm /etc/default/atftpd
apt-get install atftpd
[B dpkg configuration of atftpd]
Configure server? Yes.
Start server by inetd? Yes
Server timeout? 300
Port for tftp request? 69
Retry timeout? 5
Maximum threads? 100
Enable 'timeout'? Yes
Enable 'tsize'? Yes
Enable 'block size'? Yes
Enable 'multicast'? No
Verbosity level? 7 (Log_DEBUG)
Base directory? /tftpboot
Log to file instead of syslog? No
okay, then...
/etc/init.d/inetd stop
/etc/init.d/dhcp3-server stop
killall in.tftpd
[B /etc/dhcp3/dhcpd.conf]
allow booting;
allow bootp;
option routers 192.168.6.1;
option subnet-mask 255.255.255.0;
option domain-name "pimpcat.org";
option domain-name-servers 192.168.6.1;
default-lease-time 600;
max-lease-time 7200;
ddns-updates off;
log-facility local5;
subnet 192.168.6.0 netmask 255.255.255.0 {
option domain-name-servers 192.168.6.1;
option domain-name "pimpcat.org";
option routers 192.168.6.1;
default-lease-time 43200;
max-lease-time 86400;
}
option space PXE;
option PXE.mtftp-ip code 1 = ip-address;
option PXE.mtftp-cport code 2 = unsigned integer 16;
option PXE.mtftp-sport code 3 = unsigned integer 16;
option PXE.mtftp-tmout code 4 = unsigned integer 8;
option PXE.mtftp-delay code 5 = unsigned integer 8;
option grub-menu code 150 = text;
group {
option vendor-class-identifier "PXEClient";
filename "pxegrub";
next-server 192.168.6.7;
option root-path "/tftpboot";
option PXE.mtftp-ip 0.0.0.0;
vendor-option-space PXE;
host eden { hardware ethernet 00:50:fc:b1:ad:95; fixed-address
192.168.6.1;
option grub-menu "(nd)/config/grub-eden.conf"; }
host necro { hardware ethernet 00:50:2c:a3:f8:c0; fixed-address
192.168.6.2;
option grub-menu "(nd)/config/grub-necro.conf"; }
host macco { hardware ethernet 00:01:02:c1:42:3c; fixed-address
192.168.6.3;
option grub-menu "(nd)/config/grub-macco.conf"; }
host ashes { hardware ethernet 08:00:07:9e:be:02; fixed-address
192.168.6.4;
option grub-menu "(nd)/config/grub-ashes.conf"; }
host baker { hardware ethernet 00:90:27:8a:4d:a7; fixed-address
192.168.6.5;
option grub-menu "(nd)/config/grub-baker.conf"; }
host toshi { hardware ethernet 06:00:00:00:00:02; fixed-address
192.168.6.6;
option grub-menu "(nd)/config/grub-toshi.conf"; }
host sine { hardware ethernet 00:05:02:40:5b:61; fixed-address
192.168.6.7;
option grub-menu "(nd)/config/grub-sine.conf"; }
}
[/B]
now...
/etc/init.d/inetd start
/etc/init.d/dhcp3-server start
and hard cycle that server with the 3com card again...
[B /var/log/syslog]
Jun 10 14:36:51 sine dhcpd: Internet Software Consortium DHCP Server
V3.0.1rc13Jun 10 14:36:51 sine dhcpd: Copyright 1995-2003 Internet
Software Consortium.
Jun 10 14:36:51 sine dhcpd: All rights reserved.
Jun 10 14:36:51 sine dhcpd: For info, please visit
http://www.isc.org/products/DHCP
Jun 10 14:36:51 sine dhcpd: Wrote 0 deleted host decls to leases file.
Jun 10 14:36:51 sine dhcpd: Wrote 0 new dynamic host decls to leases file.
Jun 10 14:36:51 sine dhcpd: Wrote 0 leases to leases file.
Jun 10 14:39:48 sine dhcpd: DHCPDISCOVER from 00:01:02:c1:42:3c via eth0
Jun 10 14:39:48 sine dhcpd: DHCPOFFER on 192.168.6.3 to
00:01:02:c1:42:3c via eth0
Jun 10 14:39:49 sine dhcpd: DHCPREQUEST for 192.168.6.3 (192.168.6.7)
from 00:01:02:c1:42:3c via eth0
Jun 10 14:39:49 sine dhcpd: DHCPACK on 192.168.6.3 to 00:01:02:c1:42:3c
via eth0
Jun 10 14:39:51 sine dhcpd: DHCPDISCOVER from 00:01:02:c1:42:3c via eth0
Jun 10 14:39:51 sine dhcpd: DHCPOFFER on 192.168.6.3 to
00:01:02:c1:42:3c via eth0
Jun 10 14:39:55 sine dhcpd: DHCPDISCOVER from 00:01:02:c1:42:3c via eth0
Jun 10 14:39:55 sine dhcpd: DHCPOFFER on 192.168.6.3 to
00:01:02:c1:42:3c via eth0
Jun 10 14:40:03 sine dhcpd: DHCPDISCOVER from 00:01:02:c1:42:3c via eth0
Jun 10 14:40:03 sine dhcpd: DHCPOFFER on 192.168.6.3 to
00:01:02:c1:42:3c via eth0
Jun 10 14:40:19 sine dhcpd: DHCPREQUEST for 192.168.6.3 (192.168.6.7)
from 00:01:02:c1:42:3c via eth0
Jun 10 14:40:19 sine dhcpd: DHCPACK on 192.168.6.3 to 00:01:02:c1:42:3c
via eth0
Jun 10 14:40:19 sine in.tftpd[21254]: connect from 192.168.6.3 (192.168.6.3)
Jun 10 14:40:19 sine tftpd[21254]: Trivial FTP server started (0.6.2)
Jun 10 14:40:19 sine tftpd[21254]: started by inetd
Jun 10 14:40:19 sine tftpd[21254]: logging level: 7
Jun 10 14:40:19 sine tftpd[21254]: directory: /tftpboot/
Jun 10 14:40:19 sine tftpd[21254]: user: nobody.nogroup
Jun 10 14:40:19 sine tftpd[21254]: log file: syslog
Jun 10 14:40:19 sine tftpd[21254]: server timeout: 300
Jun 10 14:40:19 sine tftpd[21254]: tftp retry timeout: 5
Jun 10 14:40:19 sine tftpd[21254]: maximum number of thread: 100
Jun 10 14:40:19 sine tftpd[21254]: option timeout: enabled
Jun 10 14:40:19 sine tftpd[21254]: option tzise: enabled
Jun 10 14:40:19 sine tftpd[21254]: option blksize: enabled
Jun 10 14:40:19 sine tftpd[21254]: option multicast: disabled
Jun 10 14:40:19 sine tftpd[21254]: address range: 239.255.0.0-255
Jun 10 14:40:19 sine tftpd[21254]: port range: 1753
Jun 10 14:40:19 sine tftpd[21256]: Serving pxegrub to 192.168.6.3:2070
Jun 10 14:40:19 sine tftpd[21256]: received RRQ <filename: pxegrub,
mode: octet, tsize: 0>
Jun 10 14:40:19 sine tftpd[21256]: tsize option -> 199204
Jun 10 14:40:19 sine tftpd[21256]: sent OACK <tsize: 199204>
Jun 10 14:40:19 sine tftpd[21257]: Serving pxegrub to 192.168.6.3:2071
Jun 10 14:40:20 sine tftpd[21257]: received RRQ <filename: pxegrub,
mode: octet, blksize: 1456>
Jun 10 14:40:20 sine tftpd[21257]: blksize option -> 1456
Jun 10 14:40:20 sine tftpd[21257]: sent OACK <blksize: 1456>
Jun 10 14:40:20 sine tftpd[21257]: received ACK <block: 0>
Jun 10 14:40:20 sine tftpd[21256]: received ERROR <code: 0, msg: TFTP
Aborted>
Jun 10 14:40:20 sine tftpd[21257]: sent DATA <block: 1, size 1456>
Jun 10 14:40:20 sine tftpd[21256]: Aborting transfer
Jun 10 14:40:20 sine tftpd[21256]: Server thread exiting
Jun 10 14:40:25 sine tftpd[21257]: timeout: retrying...
Jun 10 14:40:25 sine tftpd[21257]: sent DATA <block: 1, size 1456>
Jun 10 14:40:27 sine tftpd[21258]: Invalid request <4> from 192.168.6.3
Jun 10 14:40:27 sine tftpd[21258]: sent ERROR <code: 4, msg: Illegal
TFTP operation>
Jun 10 14:40:27 sine tftpd[21258]: Server thread exiting
Jun 10 14:40:30 sine tftpd[21257]: timeout: retrying...
Jun 10 14:40:30 sine tftpd[21257]: sent DATA <block: 1, size 1456>
Jun 10 14:40:35 sine tftpd[21257]: timeout: retrying...
Jun 10 14:40:35 sine tftpd[21257]: sent DATA <block: 1, size 1456>
Jun 10 14:40:40 sine tftpd[21257]: timeout: retrying...
Jun 10 14:40:40 sine tftpd[21257]: sent DATA <block: 1, size 1456>
Jun 10 14:40:45 sine tftpd[21257]: timeout: retrying...
Jun 10 14:40:45 sine tftpd[21257]: sent DATA <block: 1, size 1456>
Jun 10 14:40:50 sine tftpd[21257]: Aborting transfer
Jun 10 14:40:50 sine tftpd[21257]: Server thread exiting
[/B]
I'm not sure where to go except submit a bug report and hope someone
knows where to go from here.
This may or may not be related to debian bug #236164.
-Eric