[syslinux] tftpd-hpa not listing to broacast tftp request when listing to 255.255.255.255??

Jelle de Jong jelledejong at powercraft.nl
Tue Apr 20 09:52:41 PDT 2021


Hello everybody,

Can someone advice me how to make tftpd-hpa serve a file to the 
following request:

tftp://255.255.255.255/ap3g2-k9w7-tar.default

10.0.0.1.1024 > 255.255.255.255.tftp:  31 RRQ "ap3g2-k9w7-tar.default" octet

I think I have all the logs bellow to show what I am doing:

Kind regards,

Jelle de Jong

#-----


IOS Bootloader - Starting system.
flash is writable
Tide XL MB - 40MB of flash
Xmodem file system is available.
flashfs[0]: 67 files, 9 directories
flashfs[0]: 0 orphaned files, 0 orphaned directories
flashfs[0]: Total bytes: 41158656
flashfs[0]: Bytes used: 19734528
flashfs[0]: Bytes available: 21424128
flashfs[0]: flashfs fsck took 10 seconds.
Base Ethernet MAC address: e4:aa:5d:b2:e1:08
Ethernet speed is 100 Mb - FULL Duplex
button is pressed, wait for button to be released...
button pressed for 23 seconds
process_config_recovery: set IP address and config to default 10.0.0.1
process_config_recovery: image recovery
image_recovery: Download default IOS tar image 
tftp://255.255.255.255/ap3g2-k9w7-tar.default

examining image...
DPAA Set for Independent Mode
  tide_boot_speed = 100
DPAA_INIT = 0x0

%Error opening tftp://255.255.255.255/ap3g2-k9w7-tar.default (connection 
timed out)ap:

$ sudo tcpdump -i enx000ec6a718d6  -v
tcpdump: listening on enx000ec6a718d6, link-type EN10MB (Ethernet), 
capture size 262144 bytes
18:43:36.514502 IP6 (hlim 1, next-header Options (0) payload length: 36) 
fe80::ee60:43cf:96fb:9aa > ff02::16: HBH (rtalert: 0x0000) (padn) [icmp6 
sum ok] ICMP6, multicast listener report v2, 1 group record(s) [gaddr 
ff02::1:fffb:9aa to_ex, 0 source(s)]
18:43:36.930502 IP6 (hlim 1, next-header Options (0) payload length: 36) 
fe80::ee60:43cf:96fb:9aa > ff02::16: HBH (rtalert: 0x0000) (padn) [icmp6 
sum ok] ICMP6, multicast listener report v2, 1 group record(s) [gaddr 
ff02::1:fffb:9aa to_ex, 0 source(s)]
18:44:02.062379 IP (tos 0x0, ttl 255, id 0, offset 0, flags [none], 
proto UDP (17), length 59)
     10.0.0.1.1024 > 255.255.255.255.tftp:  31 RRQ 
"ap3g2-k9w7-tar.default" octet
18:44:07.062417 IP (tos 0x0, ttl 255, id 0, offset 0, flags [none], 
proto UDP (17), length 59)
     10.0.0.1.1024 > 255.255.255.255.tftp:  31 RRQ 
"ap3g2-k9w7-tar.default" octet
18:44:12.062564 IP (tos 0x0, ttl 255, id 0, offset 0, flags [none], 
proto UDP (17), length 59)
     10.0.0.1.1024 > 255.255.255.255.tftp:  31 RRQ 
"ap3g2-k9w7-tar.default" octet
18:44:17.062704 IP (tos 0x0, ttl 255, id 0, offset 0, flags [none], 
proto UDP (17), length 59)
     10.0.0.1.1024 > 255.255.255.255.tftp:  31 RRQ 
"ap3g2-k9w7-tar.default" octet
18:44:22.062882 IP (tos 0x0, ttl 255, id 0, offset 0, flags [none], 
proto UDP (17), length 59)
     10.0.0.1.1024 > 255.255.255.255.tftp:  31 RRQ 
"ap3g2-k9w7-tar.default" octet
18:44:27.063020 IP (tos 0x0, ttl 255, id 0, offset 0, flags [none], 
proto UDP (17), length 59)
     10.0.0.1.1024 > 255.255.255.255.tftp:  31 RRQ 
"ap3g2-k9w7-tar.default" octet
18:44:32.063192 IP (tos 0x0, ttl 255, id 0, offset 0, flags [none], 
proto UDP (17), length 59)
     10.0.0.1.1024 > 255.255.255.255.tftp:  31 RRQ 
"ap3g2-k9w7-tar.default" octet

$ cat /etc/default/tftpd-hpa
# /etc/default/tftpd-hpa

TFTP_USERNAME="tftp"
TFTP_DIRECTORY="/srv/tftp"
TFTP_ADDRESS="255.255.255.255:69"
TFTP_OPTIONS="--secure --verbose"


$ ls -hal /srv/tftp/ap3g2-k9w7-tar.default
-rw-r--r-- 1 root root 14M Apr 20 17:59 /srv/tftp/ap3g2-k9w7-tar.default

$ sudo netstat -tulpn | grep tft
udp        0      0 255.255.255.255:69      0.0.0.0:* 
        10009/in.tftpd

$ ps auxxx | grep tft
root     10009  0.0  0.0   2804   136 ?        Ss   18:42   0:00 
/usr/sbin/in.tftpd --listen --user tftp --address 255.255.255.255:69 
--secure --verbose /srv/tftp

$ sudo grep tftp /var/log/syslog | tail -n 10
Apr 20 18:42:47 localhost systemd[1]: Starting LSB: HPA's tftp server...
Apr 20 18:42:47 localhost tftpd-hpa[10002]: Starting HPA's tftpd: in.tftpd.
Apr 20 18:42:47 localhost systemd[1]: Started LSB: HPA's tftp server.
Apr 20 18:44:02 localhost in.tftpd[10042]: RRQ from 10.0.0.1 filename 
ap3g2-k9w7-tar.default
Apr 20 18:44:07 localhost in.tftpd[10046]: RRQ from 10.0.0.1 filename 
ap3g2-k9w7-tar.default
Apr 20 18:44:12 localhost in.tftpd[10047]: RRQ from 10.0.0.1 filename 
ap3g2-k9w7-tar.default
Apr 20 18:44:17 localhost in.tftpd[10053]: RRQ from 10.0.0.1 filename 
ap3g2-k9w7-tar.default
Apr 20 18:44:22 localhost in.tftpd[10055]: RRQ from 10.0.0.1 filename 
ap3g2-k9w7-tar.default
Apr 20 18:44:27 localhost in.tftpd[10062]: RRQ from 10.0.0.1 filename 
ap3g2-k9w7-tar.default
Apr 20 18:44:32 localhost in.tftpd[10063]: RRQ from 10.0.0.1 filename 
ap3g2-k9w7-tar.default



More information about the Syslinux mailing list