Community discussions

MikroTik App
 
ccy
just joined
Topic Author
Posts: 1
Joined: Thu Nov 14, 2019 2:35 pm

SwOS 2.10 on MikroTik-crs326 fail to fetch files from TFTP service

Thu Nov 14, 2019 3:24 pm

I am using SwOS 2.10 on MikroTik-crs326. I discover there is a problem for switch to access TFTP server on FreeNAS.

I try boot a PC via PXE. My DHCP/PXE/TFTP network service should be good all the while. The same setup works on Dell X-Series network or even the TP-Link smart switch. I can boot the PC from the PXE/TFTP service.

I try this setup:
PC -> MikroTik -> Trunk to Dell-X -> DHCP/PXE/TFTP
I found that DHCP/PXE works but it fail to fetch a file of size 940,512 bytes from TFTP service.

I am using FreeNAS's TFTP service. I monitor the log and it shows
Nov 14 21:03:08 nas tftpd[21234]: Filename: 'ipxe/ipxe-x86_64.efi'
Nov 14 21:03:08 nas tftpd[21234]: Mode: 'octet'
Nov 14 21:03:08 nas tftpd[21234]: 192.168.9.136: read request for //ipxe/ipxe-x86_64.efi: success
Nov 14 21:03:13 nas tftpd[21234]: Timeout #0 on ACK 358
Nov 14 21:03:13 nas tftpd[21234]: Timeout #0 on ACK 358
Nov 14 21:03:18 nas tftpd[21234]: Timeout #1 on ACK 358
Nov 14 21:03:18 nas tftpd[21234]: Timeout #1 on ACK 358
Nov 14 21:03:23 nas tftpd[21234]: Timeout #2 on ACK 358
Nov 14 21:03:23 nas tftpd[21234]: Timeout #2 on ACK 358
Nov 14 21:03:28 nas tftpd[21234]: Timeout #3 on ACK 358
Nov 14 21:03:28 nas tftpd[21234]: Timeout #3 on ACK 358
Nov 14 21:03:33 nas tftpd[21234]: Timeout #4 on ACK 358
Nov 14 21:03:33 nas tftpd[21234]: Timeout #4 on ACK 358
Nov 14 21:03:38 nas tftpd[21234]: Timeout #5 send ACK 358 giving up
Nov 14 21:03:38 nas tftpd[21234]: Timeout #5 send ACK 358 giving up
A success fetch from FreeNAS TFTP service log should be:
Nov 14 21:07:40 nas tftpd[21592]: Filename: 'ipxe/ipxe-x86_64.efi'
Nov 14 21:07:40 nas tftpd[21592]: Mode: 'octet'
Nov 14 21:07:40 nas tftpd[21592]: Got ERROR packet: User aborted the transfer
Nov 14 21:07:40 nas tftpd[21592]: Got ERROR packet: User aborted the transfer
Nov 14 21:07:40 nas tftpd[21594]: Filename: 'ipxe/ipxe-x86_64.efi'
Nov 14 21:07:40 nas tftpd[21594]: Mode: 'octet'
Nov 14 21:07:40 nas tftpd[21594]: 192.168.9.138: read request for //ipxe/ipxe-x86_64.efi: success
Nov 14 21:07:44 nas tftpd[21596]: Filename: 'ipxe/boot.ipxe'
Nov 14 21:07:44 nas tftpd[21596]: Mode: 'octet'
Nov 14 21:07:44 nas tftpd[21596]: 192.168.9.76: read request for //ipxe/boot.ipxe: success
I suspect this might be some issue with TFTP service on FreeNAS. I try install tftpd-hpa service on Debian 10 Buster with the configuration:
TFTP_OPTIONS="--ipv4 --secure"
Unfortunately, I am having same issue with Mikrotik setup. Connect all service back to Dell and TP-Link switch, and it works.

After some research, I add "-r blksize" to TFTP-hpa service
TFTP_OPTIONS="--ipv4 --secure -r blksize"
And now the PC can success fetch file from TFTP.

Unfortunately, the "-r blksize" don't support in FreeNAS TFTP service.

In summary:

1. TFTP works on other switch regardless of "-r blksize" option.
2. TFTP service connection fail to work on MikroTik-crs326. To make it works, add "-r blksize" option to tftp-hpa service.

I suspect the blksize is related to MTU size. Do you have any ideas if there is any option to configure MikroTik-crs326 to work with TFTP service?

Who is online

Users browsing this forum: No registered users and 10 guests