Tuesday, February 2, 2010

TFTP Configuration


Trivial File Transfer Protocol (TFTP) is a very simple file transfer protocol, with the functionality of a very basic form of FTP.

            Since it is so simple, it is easy to implement in a very small amount of memory, an important consideration at that time.TFTP is based in part on the earlier protocol EFTP, which was part of the PUP protocol suite. In the early days of work on the TCP/IP protocol suite, TFTP was often the first protocol implemented on a new host type, because it was so simple.
           
            To conifgure the TFTP, edit the /etc/xinetd.d/tftp file and ensure the file contains the following.

 
            #vi /etc/xinetd.d/tftp
            # default: off
            # description: The tftp server serves files using the trivial file transfer \
            #       protocol.  The tftp protocol is often used to boot diskless \
            #       workstations, download configuration files to network-aware printers, \
            #       and to start the installation process for some operating systems.
            service tftp
            {

                    disable = no
                    socket_type             = dgram
                    protocol                = udp
                    wait                    = yes
                    user                    = root
                    server                  = /usr/sbin/in.tftpd
                    server_args             = -s /tftpboot
            #       disable                 = yes
                    per_source              = 11
                    cps                     = 100 2
                    flags                   = IPv4
}

Important note:
            Ensure the line “disable = yes” has been commented.

            The tftp configuration can be verified with the following set of commands.

            #service xinetd stop

            #service xinetd start

            #service xinetd restart

            The following should get displayed on successful configuration.

            [root@omap root]# service xinetd restart
            Stopping xinetd:                                           [  OK  ]
            Starting xinetd:                                           [  OK  ]
            [root@omap root]#

            This ensures the proper functioning of TFTP server.


Network service and iptables flush

            After enabling the service you want, its mandatory to restart the network service and to flush the iptables.

            #service network restart

            This displays............

            [root@omap root]# service network restart
            Shutting down interface eth0:                              [  OK  ]
            Shutting down loopback interface:                      [  OK  ]
            Setting network parameters:                                [  OK  ]
            Bringing up loopback interface:                          [  OK  ]
            Bringing up interface eth0:                                  [  OK  ]
            [root@omap root]#

            After configuring the various services, flush the iptables.


            #iptables --flush     


0 comments:

Post a Comment

Recent Comments

About This Blog

Blog Archive

  © Blogger template Webnolia by Ourblogtemplates.com 2009

Back to TOP