Community discussions

MikroTik App
 
zhaocz
just joined
Topic Author
Posts: 2
Joined: Sun Jan 08, 2012 2:25 pm

HELP! ROUTEROS to be a tftp server

Sun Jan 08, 2012 2:56 pm

I have a x86 with RouterOS 5.11
I try to configure the ROS to be a PXE server.
and I upload the pxe file to the "File" windows;set the Bootp Support to static;fill in the Boot File Name which I have upload to the ROS.
When the pxe client boots,I got an error:permission denied.
The ROS's log was: "tftp error ERROR code:0 string permission denied!"
Any thing wrong with the tftp configure? I had set
# IP-ADDRESSES REQ-FILENAME REAL-FILENAME ALL REA ALL HITS
0 0.0.0.0 test.pxe test.pxe yes yes no 0

Is the REAL-FILENAME must to be set the full path? like "/sata1/file.txt"? But I can't put the file to any other than the "file" window!
Any one has the experience of this can help me ?
 
User avatar
nest
Forum Veteran
Forum Veteran
Posts: 822
Joined: Tue Feb 27, 2007 1:52 am
Location: UK
Contact:

Re: HELP! ROUTEROS to be a tftp server

Sun Jan 08, 2012 11:01 pm

if you have the file in the 'normal' files root, then you do not input any path e.g.
/ip tftp real-filename=bootfile.txt
Also, you have an IP set of 0.0.0.0. So, your client is using this IP address?! leave this field blank, or give it the specific IP of your clients. (You may have meant to enter 0.0.0.0/0?) but you can leave it blank and Mikrotik will automatically know this means the same as 0.0.0.0/0.

The permission denied is telling you the clue of where the problem is... it is not permitting the pxe to work because the client IP is not a valid IP, when matched with the server settings of a client having to have '0.0.0.0'
 
zhaocz
just joined
Topic Author
Posts: 2
Joined: Sun Jan 08, 2012 2:25 pm

Re: HELP! ROUTEROS to be a tftp server

Mon Jan 09, 2012 7:43 am

if you have the file in the 'normal' files root, then you do not input any path e.g.
/ip tftp real-filename=bootfile.txt
Also, you have an IP set of 0.0.0.0. So, your client is using this IP address?! leave this field blank, or give it the specific IP of your clients. (You may have meant to enter 0.0.0.0/0?) but you can leave it blank and Mikrotik will automatically know this means the same as 0.0.0.0/0.

The permission denied is telling you the clue of where the problem is... it is not permitting the pxe to work because the client IP is not a valid IP, when matched with the server settings of a client having to have '0.0.0.0'
Now I had set "ip-address" to empty,like this:
# IP-ADDRESSES REQ-FILENAME REAL-FILENAME ALL REA ALL HITS
0 MAXDOS.PXE MAXDOS.PXE yes yes no 118

Then use dos command to tftp download the file:
C:\Documents and Settings\Administrator>tftp -i 192.168.0.254 get MAXDOS.PXE
Timeout occurred

In routeros,the log:
13:39:08 tftp,error ERROR: code 5
13:39:09 tftp,error ERROR: code 5
13:39:11 tftp,error ERROR: code 5
13:39:15 tftp,error ERROR: code 5
13:39:23 tftp,error ERROR: code 5
13:39:31 tftp,error ERROR: code 5
13:39:39 tftp,error ERROR: code 5
13:39:47 tftp,error ERROR: code 5
what's the matter?
 
User avatar
nest
Forum Veteran
Forum Veteran
Posts: 822
Joined: Tue Feb 27, 2007 1:52 am
Location: UK
Contact:

Re: HELP! ROUTEROS to be a tftp server

Mon Jan 09, 2012 6:23 pm

Error code 5 means there was 'an error'. Yes, stupid I know, that does not help! But TFTP error messages are not that helpful! Try enabling 'roll over'. (allow-rollover=yes) It is not an option in winbox, only in terminal.

Who is online

Users browsing this forum: Gadulowaty, raiser and 210 guests