RE: Implementing TFTP Server on router

From: Sonu Khandelwal (sokhande) <sokhande_at_cisco.com>
Date: Sun, 8 Aug 2010 13:09:30 +0530

Hi Taufik,
Can you try copying like this from tftp-client:

tftp://10.0.0.249/nvram:startup-config startup-config

You are trying to write startup-config of server. May be that's the
reason its saying access denied at server.

tftp-server(config)#
*Mar 1 00:07:20.063: TFTP: Server request for port 54094, socket_id
0x661339E8 for process 71
*Mar 1 00:07:20.063: TFTP: write request from host 10.0.0.250(54094)
via
FastEthernet0/0
*Mar 1 00:07:20.063: TFTP: Sending error 2 Access denied

Thanks,
Sonu

-----Original Message-----
From: nobody_at_groupstudy.com [mailto:nobody_at_groupstudy.com] On Behalf Of
Taufik Kurniawan
Sent: Sunday, August 08, 2010 12:49 PM
To: Ryan West
Cc: Cisco certification; cisco_at_groupstudy.com
Subject: Re: Implementing TFTP Server on router

Hi Ryan,
thanks for the reply.
WHy I got theses errors ?

tftp-server(config)#tftp
tftp-server(config)#tftp-server nvram:myfilename.txt
Warning: nvram:myfilename.txt does not exist. Command retained.
tftp-server(config)#tftp-server nvram:?
nvram:ifIndex-table nvram:private-config nvram:startup-config

tftp-server(config)#tftp-server nvram:startup-config
tftp-server(config)#
tftp-server(config)#
tftp-server(config)#
tftp-server(config)#do debug tftp
debug tftp
% Incomplete command.

tftp-server(config)#do debug tftp pa
TFTP Packet debugging is on
tftp-server(config)#do debug tftp ev
TFTP Event debugging is on
tftp-server(config)#do sh ip int brie
Interface IP-Address OK? Method Status
Protocol
FastEthernet0/0 10.0.0.249 YES DHCP up
up
FastEthernet0/1 unassigned YES unset administratively
down
down
tftp-server(config)#
*Mar 1 00:07:20.063: TFTP: Server request for port 54094, socket_id
0x661339E8 for process 71
*Mar 1 00:07:20.063: TFTP: write request from host 10.0.0.250(54094)
via
FastEthernet0/0
*Mar 1 00:07:20.063: TFTP: Sending error 2 Access denied

Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int f0/0
Router(config-if)#ip add dhcp
Router(config-if)#no shut
Router(config-if)#do wr mem
Building configuration...
[OK]
Router(config-if)#
*Mar 1 00:03:50.311: %LINK-3-UPDOWN: Interface FastEthernet0/0, changed
state to up
*Mar 1 00:03:51.311: %LINEPROTO-5-UPDOWN: Line protocol on Interface
FastEthernet0/0, changed state to up
*Mar 1 00:04:02.839: %DHCP-6-ADDRESS_ASSIGN: Interface FastEthernet0/0
assigned DHCP address 10.0.0.250, mask 255.255.254.0, hostname Router

Router(config-if)#
Router(config-if)#
Router(config-if)#
Router(config-if)#host tftp-client
tftp-client(config)#do wr mem
Building configuration...
[OK]
tftp-client(config)#end
tftp-client#debug t
*Mar 1 00:06:19.959: %SYS-5-CONFIG_I: Configured from console by
consoleftp
pa
TFTP Packet debugging is on
tftp-client#debug tftp eve
TFTP Event debugging is on
tftp-client#copy run tftp
Address or name of remote host []? 10.0.0.249
Destination filename [tftp-client-confg]? startup-config

*Mar 1 00:07:06.807: TFTP: Sending write request (retry 0), socket_id
0x661339E8.
TFTP: error code 2 received - 16739

%Error opening tftp://10.0.0.249/startup-config (Permission denied)
tftp-client#
*Mar 1 00:07:09.807: TFTP: Sending write request (retry 1), socket_id
0x661339E8

On 8 August 2010 09:48, Ryan West <rwest_at_zyedge.com> wrote:

> Tftp-server flash:myfilename.txt
>
> Sent from handheld
>
> On Aug 8, 2010, at 2:45 AM, "Taufik Kurniawan" <ktaufik_at_gmail.com>
wrote:
>
> > thanks,
> >
> > this link is not working
> >
>
http://www.cisco.com/univercd/cc/td/doc/product/software/ios124/124cr/hc
f_r/cfn_12h.htm#wp1039250
> > I check also here
> >
>
http://www.google.com/search?hl=en&q=Implementing+TFTP+Server+on+router&
aq=f&aqi=g10&aql=&oq=&gs_rfai=
> >
> >
> > Router(config)#tftp?
> > tftp-server
> >
> > Router(config)#tftp
> > Router(config)#tftp ?
> > archive: Allow URL file TFTP load requests
> > flash: Allow URL file TFTP load requests
> > null: Allow URL file TFTP load requests
> > nvram: Allow URL file TFTP load requests
> > slot0: Allow URL file TFTP load requests
> > slot1: Allow URL file TFTP load requests
> > system: Allow URL file TFTP load requests
> > xmodem: Allow URL file TFTP load requests
> > ymodem: Allow URL file TFTP load requests
> >
> > Router(config)#tftp flash: ?
> > <1-99> IP access list of requesting hosts
> > <1300-1999> IP expanded access list of requesting hosts
> > alias file alias
> > <cr>
> >
> > Router(config)#tftp flash: 1 ?
> > <cr>
> >
> > Router(config)#tftp flash: 1
> > Specify the filename.
> >
> > Router(config)#
> >
> >
> > Blogs and organic groups at http://www.ccie.net
> >
> >
Received on Sun Aug 08 2010 - 13:09:30 ART

This archive was generated by hypermail 2.2.0 : Wed Sep 01 2010 - 11:20:52 ART