Question Locked

Unable to copy to tftp server

0 helpful
10 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

i have an 851w that i am using to study for my ccna, i used a config
guide found on this site, everything on the network works fine, i just
cannot copy to my tftp server to make a back up, i get the error
"%Error opening tftp://192.168.1.100/c850-advsecurityk9-mz.124-
4.T4.bin (No such file or directory)" i copied a file from the tftp to the
router flash as a test and that worked fine. any help is greatly
appreciated. not sure if trbl is config or something i am doing wrong,
but here is my config anyway:

Building configuration...

Current configuration : 5725 bytes
!
! Last configuration change at 06:16:15 UTC Fri Aug 22 2008 by
$$$$$$
!
version 12.4
no service pad
service timestamps debug datetime msec
service timestamps log datetime msec
service password-encryption
!
hostname Router
!
boot-start-marker
boot-end-marker
!
enable secret 5 $1$$$$$$$$$$$$$$$$$$$$$$$$$$.
enable password 7 $$$$$$$$$$$$$
!
aaa new-model
!
!
aaa authentication login default local
aaa authorization exec default local
!
aaa session-id common
!
resource policy
!
ip subnet-zero
no ip dhcp use vrf connected
ip dhcp excluded-address 192.168.1.1 192.168.1.99
ip dhcp excluded-address 192.168.2.1 192.168.2.99
!
ip dhcp pool Internal-net
import all
network 192.168.1.0 255.255.255.0
default-router 192.168.1.1
domain-name $$$$$$$.com
lease 4
!
ip dhcp pool VLAN20
import all
network 192.168.2.0 255.255.255.0
default-router 192.168.2.1
domain-name $$$$$$$$.com
lease 4
!
!
ip cef
ip inspect name MYFW tcp
ip inspect name MYFW udp
no ip domain lookup
ip domain name $$$$$$$.com
vpdn enable
!
!
!
crypto pki trustpoint TP-self-signed-401213696960482
enrollment selfsigned
subject-name cn=IOS-Self-Signed-Certificate-404211365250482
revocation-check none
rsakeypair TP-self-signed-401136065452482
!
!
crypto pki certificate chain TP-self-signed-$$$$$$$$$$
certificate self-signed 01

quit
username $$$$$$$ privilege 15 password 7
$$$$$$$$$$$$$$$$$$$$$
!
!
!
bridge irb
!
!
interface FastEthernet0
spanning-tree portfast
!
interface FastEthernet1
spanning-tree portfast
!
interface FastEthernet2
spanning-tree portfast
!
interface FastEthernet3
spanning-tree portfast
!
interface FastEthernet4
no ip address
duplex auto
speed auto
pppoe enable
pppoe-client dial-pool-number 1
no cdp enable
!
interface Dot11Radio0
no ip address
!
encryption vlan 1 mode ciphers tkip
!
encryption vlan 20 mode ciphers tkip
!
ssid LabWLAN
vlan 20
authentication open
authentication key-management wpa
guest-mode
wpa-psk ascii 7 $$$$$$$$$$$$$
!
ssid mark720
vlan 1
authentication open
authentication key-management wpa
wpa-psk ascii 7 $$$$$$$$$$$$$$$$$$$
!
speed basic-1.0 basic-2.0 basic-5.5 6.0 9.0 basic-11.0 12.0 18.0
24.0 36.0 48.0 54.0
channel 2412
station-role root
no dot11 extension aironet
no cdp enable
!
interface Dot11Radio0.1
encapsulation dot1Q 1 native
no snmp trap link-status
bridge-group 1
bridge-group 1 subscriber-loop-control
bridge-group 1 spanning-disabled
bridge-group 1 block-unknown-source
no bridge-group 1 source-learning
no bridge-group 1 unicast-flooding
!
interface Dot11Radio0.20
description Guest wireless LAN - routed WLAN
encapsulation dot1Q 20
ip address 192.168.2.1 255.255.255.0
ip access-group Guest-ACL in
ip nat inside
ip virtual-reassembly
no snmp trap link-status
!
interface Vlan1
description Internal Network
no ip address
ip nat inside
ip virtual-reassembly
bridge-group 1
bridge-group 1 spanning-disabled
!
interface Dialer1
ip address negotiated
ip access-group Internet-inbound-ACL in
ip inspect MYFW out
ip nat outside
ip virtual-reassembly
encapsulation ppp
ip tcp adjust-mss 1452
dialer pool 1
dialer-group 1
ppp authentication pap callin
ppp pap sent-username $$$$$$$@$$$.net password 7
$$$$$$$$$$$$$$
ppp ipcp dns request
ppp ipcp address accept
!
interface BVI1
description Bridge to Internal Network
ip address 192.168.1.1 255.255.255.0
ip nat inside
ip virtual-reassembly
!
ip classless
ip route 0.0.0.0 0.0.0.0 Dialer1
!
ip http server
ip http secure-server
ip nat inside source list 1 interface Dialer1 overload
!
ip access-list extended Guest-ACL
deny ip any 192.168.1.0 0.0.0.255
permit ip any any
ip access-list extended Internet-inbound-ACL
permit udp any eq bootps any eq bootpc
permit icmp any any echo
permit icmp any any echo-reply
permit icmp any any traceroute
permit gre any any
permit esp any any
!
access-list 1 permit 192.168.1.0 0.0.0.255
access-list 1 permit 192.168.2.0 0.0.0.255
dialer-list 1 protocol ip list 1
!
control-plane
!
bridge 1 route ip
banner motd ^C
This is a secure system. Unauthorized access is prohibited.
^C
!
line con 0
password 7 $$$$$$$$$$$$$$$$$$$$
logging synchronous
no modem enable
line aux 0
line vty 0 4
password 7 $$$$$$$$$$$$$$$$$$
logging synchronous
!
scheduler max-task-time 5000
end

10 replies

by mark720

yeah, copy flash tftp
here's the output:

Router#copy flash tftp
Source filename []? c850-advsecurityk9-mz.124-4.T4.bin
Address or name of remote host []? 192.168.1.100
Destination filename [c850-advsecurityk9-mz.124-
4.T4.bin]?
TFTP: error code 1 received - 18025

%Error opening tftp://192.168.1.100/c850-
advsecurityk9-mz.124-4.T4.bin (No such file or directory)

Router#ping 192.168.1.100

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.1.100,
timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip
min/avg/max = 1/2/4 ms
Router#

wireshark running on the macbook shows that the server
receives the tftp write request then sends back an error
code:file not found packet. also tried this on a pc running
tftpd32 with same result

by netman1958

Check to make sure you have write/create permissions on the directory that is configured as the tftp root in your tftp program.

by cg it

copy flash TFTP

will ask for the file name just put in your flash file name and the TFTP server IP address. just put in whatever device IP address your using and make sure you have ethernet connectivity and TFTP is running...

by mark720

Router#copy flash tftp
Source filename []? c850-advsecurityk9-mz.124-4.T4.bin
Address or name of remote host []? 192.168.1.100
Destination filename [c850-advsecurityk9-mz.124-
4.T4.bin]?
TFTP: error code 1 received - 18025

%Error opening tftp://192.168.1.100/c850-
advsecurityk9-mz.124-4.T4.bin (No such file or directory)
Router#ping 192.168.1.100

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.1.100,
timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip
min/avg/max = 1/2/4 ms

by cg it

the c850-advsecurityk9-mz.124-4.t4.bin isn't the correct file name to save as

by mark720

yeah thats gotta be it, it works ok when running solar winds
inside a virtual machine running xp on the same macbook
pro, just something about osx (all permissions are set to
read/write, don't know what else i can change on the osx
side). not sure why it didn't work with tftpd32 on the other
pc but oh well. thanks for the help!

by mark720

i should be able to save a file to a tftp server as any name i
please, correct? i can save it to the server with that name on
another system with no problems, the problem seems to
have been with write permissions on the server os (osx)

by ffoooooo

Hi,

from the manpage:
-c: Allow new files to be created. By default, tftpd will only allow upload of files that already exist.

(just for future reference)

Regards

This discussion is closed to new replies.