cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
20765
Views
0
Helpful
19
Replies

Copy tftp problems...

IngGerardo013
Level 1
Level 1

Hello guys,

I have a silly problem, I can not copy an firmware from tftp Server to CME, some suggestion??

Note:No firewall, No antivirus, ther is comunication between CME and PC(Server tftp) in both directions, Path is OK,

I attach the evidence.

19 Replies 19

When the OS hosting the tftp server is a linux CentOS 7 or RedHat 7 and dealing with tftp transfer issues, one of the troubleshooting steps to go through is security related. On a linux system besides the well known software firewall there  is another layer of security at the OS level and is known as SELinux.

 

Until a tftp transfer is successful, both: firewall and  SELinux can be  turned off.

Firewall and SELinux should be tuned to allow tftp transfer after tftp test transfer is successfully performed. 

 

systemctld stop firewalld  turned off ==>> this is a valid statement for lab test purposes only!!!!<<==

systemctld disable firewald  ==>> this is a valid statement for lab test purposes only!!!!<<==

 

find out SELinux stuatus with  sestatus command

 

for turning off SELinux: vi /etc/selinux/config  and set SELINUX=disabled  use :wq! to exit and save.

 

 

# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of three two values:
# targeted - Targeted processes are protected,
# minimum - Modification of targeted policy. Only selected processes are protected.
# mls - Multi Level Security protection.
SELINUXTYPE=targeted

 

:wq! to exit

 

 

reboot shutdown -r now

after reboot check SELinux status

 

# getenforce
Disabled

 

set the ownership of the tftp root directory to nobody:nobody

 

chown nobody:nobody -R /tftpboot/

 

set the permission to 706, only root can read write and execute under the tftp  root directory; the others can only read and write, this translates to: others can only put or get files to and from the tftp root directory without permission to run scripts or programs.

 

chmod 706  -R /path_to_tftp_root/

 

restart tftp and xinetd service:

 

systemctld restart xinetd

systemctld restart tftp

 

for permanent enablement  of tftp use:

 

systemctld enable tftp

systemctld enable xinetd

 

checks  tftp and xinetd status

systemctld status xinetd

systemctld status tftp

 

On cat 9300 9500 and 9600 platforms set the tftp source interface prior attempting tftp transfer

 

ip tftp source-interface GigabitEthernetx/y

 

choose a small block size to begin with, it can be increased upon successful attempt:

 

ip tftp blocksize 512-8192

ip tftp blocksize 1024

 

 

when copying a file to or from a Cisco device use the following command

 

copy tftp://IP_address/filename.   # tftp server advertises the file;

when accessing  TFTP server from the outside world, internal absolute path to the file is irrelevant and if used within the tftp transfer command will result in error like: file not found and unable to access the file.

paultribeca
Level 1
Level 1

Change the ethernet cable you are using for the connection to the device.

All the best

Im using wireless signal... I will try it with a cable.. tnks

amikat
Level 7
Level 7

Hi,

Your tftp client at UC520 uses IP address 10.1.10.2 and not 15.10.10.252 as you believe so tftp server sends reply most likely to DG (.254) and not back to UC520. You can try to set static host route at your tftp server PC like this:

"route ADD 10.1.10.2 MASK 255.255.255.255 15.10.10.252"

retry the tftp copy and see if there is any progress.

Best regards,

Antonin

Tnks amikat, problem solved!

Here was the key:

Interface                  IP-Address      OK? Method Status                Prot                                             ocol

FastEthernet0/0            unassigned      YES manual up                    down                                            

In0/0                      10.1.10.2       YES TFTP   up                    up                                              

FastEthernet0/1/0          unassigned      YES unset  up                    up                                              

FastEthernet0/1/1          unassigned      YES unset  up                    up                                              

FastEthernet0/1/2          unassigned      YES unset  up                    up

FastEthernet0/1/3          unassigned      YES unset  up                    up

FastEthernet0/1/4          unassigned      YES unset  up                    up

FastEthernet0/1/5          unassigned      YES unset  up                    up

FastEthernet0/1/6          unassigned      YES unset  up                    up

FastEthernet0/1/7          unassigned      YES unset  up                    up

FastEthernet0/1/8          unassigned      YES unset  up                    up

Vlan1                      15.10.10.252    YES NVRAM  up                    up

Vlan100                    10.1.1.1        YES NVRAM  up                    up

NVI0                       unassigned      NO  unset  up                    up

Loopback0                  10.1.10.2       YES NVRAM  up                    up

CM-UC520#

Review Cisco Networking for a $25 gift card