maxchad
(usa Outra)
Enviado em 22/02/2017 - 12:40h
Eu copiei a Pasta tftpboot do Servidor FOG e colei na MTK.
Segundo este Site "
https://wiki.fogproject.org/wiki/index.php/Modifying_existing_DHCP_server_to_work_with_FOG ", o arquivo que o FOG usa para Boot é o "undionly.kpxe"
Então peguei todos os aquivos com a extensão parecida e coloquei no script.
E ficou assim:
====================================================================================
#First copy the entire tftp directory to your MikroTik root directory
#Then edit these variables to suit your local network
:global network "192.168.1.0/24"
:global router "192.168.1.140"
########################################
# Do not edit below this line #
########################################
#Adding TFTP allowances for the provided range
/ip tftp
add ip-addresses="$network" real-filename=tftpboot/undionly.kpxe req-filename=undionly.kpxe
add ip-addresses="$network" real-filename=tftpboot/undionly.pxe req-filename=undionly.pxe
add ip-addresses="$network" real-filename=tftpboot/undionly.kkpxe req-filename=undionly.kkpxe
add ip-addresses="$network" real-filename=tftpboot/pxelinux.0 req-filename=pxelinux.0
add ip-addresses="$network" real-filename=tftpboot/ipxe.iso req-filename=ipxe.iso
add ip-addresses="$network" real-filename=tftpboot/ipxe.pxe req-filename=ipxe.pxe
add ip-addresses="$network" real-filename=tftpboot/ipxe.kpxe req-filename=ipxe.kpxe
add ip-addresses="$network" real-filename=tftpboot/boot.txt req-filename=boot.txt
add ip-addresses="$network" real-filename=tftpboot/default.ipxe req-filename=default.ipxe
add ip-addresses="$network" real-filename=tftpboot/pxelinux.cfg/default req-filename=default
#We assume there is an existing DHCP server setup, so just modifying the network config
/ip dhcp-server network
set [find address="$network"] boot-file-name=undionly.kpxe next-server="$router"
======================================================================================
Porem quando mando executar o Boot PXe na maquina ele não consegue acessar o tftp e da "PXE-E32:TFTP OPEN TIME OUT"