<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>the tar pit &#187; tftp</title>
	<atom:link href="http://blog.goneopen.com/tag/tftp/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.goneopen.com</link>
	<description>Thrashing around in the stickiness of software</description>
	<lastBuildDate>Mon, 09 Jan 2012 23:35:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Creating a tftp server on OS X so that I can update my cisco router</title>
		<link>http://blog.goneopen.com/2009/07/creating-a-tftp-server-on-os-x-so-that-i-can-update-my-cisco-router/</link>
		<comments>http://blog.goneopen.com/2009/07/creating-a-tftp-server-on-os-x-so-that-i-can-update-my-cisco-router/#comments</comments>
		<pubDate>Sun, 12 Jul 2009 03:01:14 +0000</pubDate>
		<dc:creator>todd</dc:creator>
				<category><![CDATA[cisco]]></category>
		<category><![CDATA[tftp]]></category>

		<guid isPermaLink="false">http://blog.goneopen.com/2009/07/creating-a-tftp-server-on-os-x-so-that-i-can-update-my-cisco-router/</guid>
		<description><![CDATA[Creating a tftp server on Mac OS X so that I can update my cisco router Setting up Option One: point to new directory A config file, tftp.plist for tftpd(8) is in /System/Library/LaunchDaemons/ directory. This is an XML file. If you need to change tftpd(8) root directory to something other than /private/tftpboot, edit tftp.plist file [...]]]></description>
			<content:encoded><![CDATA[<p>Creating a tftp server on Mac OS X so that I can update my cisco router</p>

<h2>Setting up</h2>

<h3>Option One: point to new directory</h3>

<p>A config file, <code>tftp.plist</code> for tftpd(8) is in <code>/System/Library/LaunchDaemons/</code> directory.<br />
This is an <span class="caps">XML </span>file. If you need to change tftpd(8) root directory to something other than<br />
<code>/private/tftpboot</code>, edit <code>tftp.plist</code> file and change the <code>&lt;array&gt;</code> tag as follows:</p>



<pre>
&lt;array&gt;
  &lt;string&gt;/usr/libexec/tftpd&lt;/string&gt;
  &lt;string&gt;-i&lt;/string&gt;
  &lt;string&gt;/private/tftpboot&lt;/string&gt;
&lt;/array&gt;
</pre>



<p><strong>Note:</strong> you must restart the tftp server after a change</p>

<h3>Option Two: symlink</h3>



<pre># sudo ln -s /Users/me/src/running-config running-config</pre>



<h3>Permissions</h3>



<pre>chmod 777 file</pre>


<p>        <br />
Personally, what I have done it symlinked files/folders from this directory.</p>

<h2>Starting up</h2>

<p>If you ever need to use tftpd(8) server on Mac OS X:</p>



<pre># sudo /sbin/service tftp start</pre>


<p> <br />
This will start a tftpd(8) server on Mac OS X.</p>

<h2>Stopping</h2>

<p>After the change, tftpd(8) needs to be restarted.</p>



<pre># /sbin/service tftp stop</pre>


<p> <br />
h2. Checking</p>

<p>To check if everything is working fine type (my ip at the time was <code>192.1.168.101</code>). I need to set the mode to octet via <code>binary</code></p>



<pre>
$ tftp
tftp&gt; connect 192.168.0.101
tftp&gt; status
Connected to 192.168.0.101.
Mode: netascii Verbose: off Tracing: off
Rexmt-interval: 5 seconds, Max-timeout: 25 seconds
tftp&gt; verbose
Verbose mode on.
tftp&gt; trace
Packet tracing on.
tftp&gt; binary
mode set to octet
</pre>



<h2>Test Run</h2>

<p>To get a file type</p>


<pre>tftp&gt; get running-config</pre>]]></content:encoded>
			<wfw:commentRss>http://blog.goneopen.com/2009/07/creating-a-tftp-server-on-os-x-so-that-i-can-update-my-cisco-router/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

