[afnog] RE: how is the switch

Brian Candler B.Candler at pobox.com
Tue May 31 16:39:53 EAT 2005


On Tue, May 31, 2005 at 11:05:24AM +0200, Wonder Chikohomero wrote:
>    How can I install a tftp server to
>    back up my switches and router binaries?

What Unix platform do you have?

Most Unixes have tftp servers already there. For example, under FreeBSD you
can just uncomment this line from /etc/inetd.conf:

tftp   dgram   udp     wait    root    /usr/libexec/tftpd      tftpd -l -s /tftpboot

Then:

    # killall -1 inetd
    # mkdir /tftpboot

If you want to *upload* files to the tftp server, you'll either need to
create them first with the correct name: e.g.

    # touch /tftpboot/ios123
    # chmod 666 /tftpboot/ios123

or else add the '-w' flag to the tftpd command line in inetd.conf.

Note that tftpd is very insecure - no passwords are used when uploading or
downloading files! So you probably should use /etc/hosts.allow to limit
access to certain IP addresses. Or else disable tftpd when you've finished
using it.

Regards,

Brian.



More information about the afnog mailing list