Hi Taufik,
Have a look at this:
R1---R2 (connected by gig0/1)
R1 is a server and R2 is a client:
R1#sh run | i tftp
tftp-server disk2:lab1
tftp-server disk2:lab2config
R1#sh run int gi0/1
Building configuration...
Current configuration : 156 bytes
!
interface GigabitEthernet0/1
ip address 102.1.1.1 255.255.255.0
duplex auto
speed auto
media-type rj45
no negotiation auto
end
R1#dir
Directory of disk2:/
4 -rw- 2771 Dec 20 2009 08:19:32 +00:00 lab14
5 -rw- 3146 Jan 12 2010 00:15:00 +00:00 lab1
6 -rw- 1634 Feb 3 2010 03:49:54 +00:00 copy
R2#sh run int gi0/1
Building configuration...
Current configuration : 404 bytes
!
interface GigabitEthernet0/1
ip address 102.1.1.2 255.255.255.0
ip flow ingress
ip flow egress
duplex auto
speed auto
media-type rj45
R2#copy tftp://102.1.1.1/lab1 disk2:
Destination filename [lab1]?
Accessing tftp://102.1.1.1/lab1...
Loading lab1 from 102.1.1.1 (via GigabitEthernet0/1): !
[OK - 3146 bytes]
Thanks,
Sonu
________________________________
From: Taufik Kurniawan [mailto:ktaufik_at_gmail.com]
Sent: Sunday, August 08, 2010 2:30 PM
To: Sonu Khandelwal (sokhande)
Cc: Ryan West; Cisco certification; cisco_at_groupstudy.com
Subject: Re: Implementing TFTP Server on router
Not succed either.
Yes, the tftp server not giving access to write/put a file
On 8 August 2010 10:39, Sonu Khandelwal (sokhande) <sokhande_at_cisco.com>
wrote:
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
<http://www.cisco.com/univercd/cc/td/doc/product/software/ios124/124cr/h
c%0Af_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=
<http://www.google.com/search?hl=en&q=Implementing+TFTP+Server+on+router
&%0Aaq=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 - 15:18:09 ART
This archive was generated by hypermail 2.2.0 : Wed Sep 01 2010 - 11:20:52 ART