TFTP

You have a problem with Salix? Post here and we'll do what we can to help.
Post Reply
inukaze
Posts: 28
Joined: 24. Nov 2024, 18:42

TFTP

Post by inukaze »

Hi there, i need make a cisco switches, backup configuration files but i had installed from gslapt the package tftp-ha



after in a terminal i do this :
login as root

Code: Select all

echo "tftp  dgram   udp     wait    root    /usr/sbin/in.tftpd  in.tftpd -s /tftpboot -r blksize" >> /etc/inetd.conf

Code: Select all

mkdir /tftpboot
chmod +777 /tftpboot
chown nobody /tftpboot
touch /tftpboot/prueba.txt
echo "Esto es solamente una prueba" >> /tftpboot/prueba.txt
I restart the inetd daemon

Code: Select all

/etc/rc.d/rc.inetd restart
in a new terminal with my user , Test i can get files from my tftp :

Code: Select all

tftp 127.0.0.1 -c get prueba.txt
cat prueba.txt
Works Fine

My ip : 10.48.8.64

If i access to the cisco switch like :

Code: Select all

telnet "IP"
In the cisco switch CLI :

Code: Select all

copy running-config tftp://10.48.8.64/cisco-sw.cfg
%Error opening tftp://10.48.8.64/cisco-sw.cfg (No such file or directory)
#copy running-config tftp://10.48.8.64
Address or name of remote host [10.48.8.64]?
Destination filename [cisco-sw.cfg]?
.....
%Error opening tftp://10.48.8.64/cisco-sw.cfg (Timed out)
In this video works fine but on another distro -> https://www.youtube.com/watch?v=7rmUVedAp4U


i try too :

Code: Select all

sh /etc/rc.d/rc.inetd stop
killall -9 in.tftpd
/usr/sbin/in.tftpd --listen --user tftp --address :69 --secure -c /tmp/tftp
But the result is the same, which thing i need for make the backup of cisco switch configuration ?
Post Reply