Sunteți pe pagina 1din 3

Configuring TFTP on Solaris 10

1. Upgrade Solaris 10 to the latest patch release. Ensure that the cluster patch is downloaded and installed, which will make sure all the patches are installed in one go. Also read the readme document of the cluster install as the cluster might need a reboot and multiple installation attempts to complete the patch installation. Patches are available here: http://sunsolve.sun.com/show.do?target=patches/patch-access If asked for a SunSolve account, use the following: hollyaburns/starent 2. Create a directory on the Solaris box with read/write/execute permissions for all users (777) say /localdisk/st40-tftp #chmod 777 /localdisk/st40-tftp ***IMPORTANT*** This above step is required because there is no password required to upload/download/read/write any file using tftp and having a folder with r/w/x permissions for all users ensures there are no issues with file/directory permissions for a specific user or group 3. Check if tftp service is running on the Solaris box by issuing the command: [dtulsani@atlantic:~$]svcs | grep tftp online 13:36:18 svc:/system/system-log:default (If you do not see the output identical to below, simply continue to the next step.) 4. Edit the file /etc/inetd.conf and ensure that the following line (or an identical entry) is not preceded with a # sign. An entry that is not modified would look like: tftp dgram udp6 Modify the file as: a. Remove the # sign from the beginning of the line (if applicable) b. Remove the s option. c. Replace /tftpboot by /localdisk/st40-tftp for our example d. Create a duplicate entry of this modified file and in the duplicate entry, replace udp6 by udp The final entries in the file after modifications should be: tftp dgram udp6 wait root /usr/sbin/in.tftpd in.tftpd /localdisk/st40-tftp tftp dgram udp wait root /usr/sbin/in.tftpd in.tftpd /localdisk/st40-tftp The entry with udp options start tftp with IPv4 support and the entry with udp6 option will start tftp with IPv6 support. Hence, the above two entries will ensure that tftp runs with both IPv6 and IPv4 support. Either of the entries can be removed depending on wait root /usr/sbin/in.tftpd in.tftpd s /tftpboot

whether IPv4/IPv6 support is required. ***IMPORTANT*** Ensure that the empty spaces between the options like tcp dgram etc SHOULD BE tab CHARACTERS and NOT BLANK SPACES A sample inetd.conf file is attached for reference:

D:\Deepak\Work\ inetd.conf

5. Issue the following command: #inetconv 6. Stop and start the tftp service by issuing the following commands: #svcadm disable svc:/network/tftp/udp6 #svcadm disable svc:/network/tftp/udp #svcadm enable svc:/network/tftp/udp6 #svcadm enable svc:/network/tftp/udp 7. Confirm start of the services by issuing the command in Step 3.

Tips and Troubleshooting:


a. DO NOT KILL AND RESTART in.tftpd PROCESS on Solaris 10. Killing the
in.tftpd process DOES NOT WORK on Solaris 10. These services are managed on Solaris 10 by SMF and if there is a need to restart the tftp processes, the correct method is mentioned in Step 6 b. On Solaris 10, if any changes are made to inetd.conf file, ensure to run Step 5 and Step 6 to start the process correctly with the updated inetd.conf file

c. Check the /var/adm/messages file to ensure there are no error messages related
to tftp daemon. If any errors are seen related to tftp daemon, this would mean that tftp daemon is either not initialized/started or has not configured the items appearing in the error messages. Step 3 can be used to verify if tftp daemon has started correctly. If the daemon has started correctly, then please check the entries in /etc/inetd.conf file (remember the tab characters)

d. If inetd needs to be restarted, the correct way to do that is:


#svcadm refresh svc:/network/inetd

e. All the above information has been gathered after making tftp work on Solaris 10
using trial and error methods. There are some issues which couldnt be identified but the above explained method should work without any. If the above procedures can be replaced by any other simpler methods, then please feel free

to update this document with the same

S-ar putea să vă placă și