<?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>chys&#039;s random notes &#187; network</title>
	<atom:link href="http://en.chys.info/tag/network/feed/" rel="self" type="application/rss+xml" />
	<link>http://en.chys.info</link>
	<description>Study more problems; Talk less of isms.</description>
	<lastBuildDate>Tue, 27 Dec 2011 11:56:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>DHCPNAK</title>
		<link>http://en.chys.info/2009/11/dhcpnak/</link>
		<comments>http://en.chys.info/2009/11/dhcpnak/#comments</comments>
		<pubDate>Mon, 02 Nov 2009 17:30:51 +0000</pubDate>
		<dc:creator>chys</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[DHCP]]></category>
		<category><![CDATA[network]]></category>

		<guid isPermaLink="false">http://en.chys.info/?p=689</guid>
		<description><![CDATA[The following is extracted from my system log file: Nov 1 11:53:24 laptop dhclient: DHCPREQUEST on eth0 to 255.255.255.255 port 67 Nov 1 11:53:24 laptop dhclient: DHCPNAK from 192.168.1.1 Nov 1 11:53:25 laptop dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8 Nov 1 11:53:25 laptop dhclient: DHCPOFFER from 192.168.1.1 Nov 1 11:53:25 laptop [...]<hr/>
No related posts.]]></description>
			<content:encoded><![CDATA[<p>The following is extracted from my system log file:</p>
<blockquote><p>
Nov  1 11:53:24 laptop dhclient: DHCPREQUEST on eth0 to 255.255.255.255 port 67<br />
Nov  1 11:53:24 laptop dhclient: DHCPNAK from 192.168.1.1<br />
Nov  1 11:53:25 laptop dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8<br />
Nov  1 11:53:25 laptop dhclient: DHCPOFFER from 192.168.1.1<br />
Nov  1 11:53:25 laptop dhclient: DHCPREQUEST on eth0 to 255.255.255.255 port 67<br />
Nov  1 11:53:25 laptop dhclient: DHCPACK from 192.168.1.1<br />
Nov  1 11:53:25 laptop dhclient: bound to 192.168.1.3 &#8212; renewal in 39303 seconds.
</p></blockquote>
<p>Apparently, my computer tried to renew the IP address from the router, and was rejected. Then my computer started over a new DHCP request, and was offered the same IP.</p>
<p>I found all renewal requests were denied after checking the logs back a few days. I wonder if the router was designed to deny any <a href="http://en.wikipedia.org/wiki/Dynamic_Host_Configuration_Protocol#Technical_details">DHCPREQUEST</a> unless it immediately follows a DHCPOFFER. I can&#8217;t figure out any good reason for this. What I could think of is that the firmware programmers were just too lazy to implement a good DHCP server &#8211; after all, it was the cheapest wireless router I was able to find&#8230;</p>
<hr/><p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://en.chys.info/2009/11/dhcpnak/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>tcpdump</title>
		<link>http://en.chys.info/2008/10/tcpdump/</link>
		<comments>http://en.chys.info/2008/10/tcpdump/#comments</comments>
		<pubDate>Fri, 24 Oct 2008 04:21:00 +0000</pubDate>
		<dc:creator>chys</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[X11]]></category>

		<guid isPermaLink="false">http://blog.chys.info/2008/10/tcpdump/</guid>
		<description><![CDATA[I wanted to find out if remote X creates a lot of network flows, so I logged into a remote computer with &#8220;ssh -Y&#8220;, started xclock, and then typed tcpdump. Then screen began scrolling up crazily like this: 13:21:00.694367 IP xxx.xxx.xx.xx.45762 &#62; 192.168.1.3.ssh: . ack 60640 win 2003 &#60;nop,nop,timestamp 191668683 75287130&#62; 13:21:00.694430 IP 192.168.1.3.ssh &#62; [...]<hr/>
No related posts.]]></description>
			<content:encoded><![CDATA[<p>I wanted to find out if remote X creates a lot of network flows, so I logged into a remote computer with &#8220;<span style="font-family: &quot;Courier New&quot;,Courier,monospace;">ssh -Y</span>&#8220;, started <span style="font-family: &quot;Courier New&quot;,Courier,monospace;">xclock</span>, and then typed <span style="font-family: &quot;Courier New&quot;,Courier,monospace;">tcpdump</span>. Then screen began scrolling up crazily like this:</p>
<blockquote style="font-family: &quot;Courier New&quot;,Courier,monospace;"><p>13:21:00.694367 IP xxx.xxx.xx.xx.45762 &gt; 192.168.1.3.ssh: . ack 60640 win 2003 &lt;nop,nop,timestamp 191668683 75287130&gt;<br />
13:21:00.694430 IP 192.168.1.3.ssh &gt; xxx.xxx.xx.xx.45762: P 70416:70464(48) ack 113 win 501 &lt;nop,nop,timestamp 191668683 75287200&gt;</p></blockquote>
<p>Was X sending/receiving lots of data even if it seems to be idling? It shouldn&#8217;t be so silly.. And&#8230; Finally I realized what a big mistake I had made&#8230; It was like putting a microphone against a loudspeaker&#8230;
<div class="blogger-post-footer">
<hr />
<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/3.0/"><img alt="Creative Commons License" style="border-width:0" src="http://creativecommons.org/images/public/somerights20.png" /></a><br />This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/3.0/">Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License</a>.</div>
<hr/><p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://en.chys.info/2008/10/tcpdump/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SSH with X</title>
		<link>http://en.chys.info/2008/10/ssh-with-x/</link>
		<comments>http://en.chys.info/2008/10/ssh-with-x/#comments</comments>
		<pubDate>Wed, 22 Oct 2008 02:12:00 +0000</pubDate>
		<dc:creator>chys</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[X11]]></category>

		<guid isPermaLink="false">http://blog.chys.info/2008/10/ssh-with-x/</guid>
		<description><![CDATA[Just successfully started FCITX and typed Chinese in OpenOffice remotely.. X11 forwarding should be first enabled both at the server and client ends. At the server end, put &#8220;X11Forwarding yes&#8221; in /etc/ssh/sshd_config, restart SSH daemon and it should be able to forward X11 requests. At the client end, connect with &#8220;ssh -X &#8221; or &#8220;ssh [...]<hr/>
Related posts:<ol>
<li><a href='http://en.chys.info/2008/11/ssh-without-password/' rel='bookmark' title='SSH without password'>SSH without password</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Just successfully started FCITX and typed Chinese in OpenOffice remotely..</p>
<p>X11 forwarding should be first enabled both at the server and client ends. </p>
<p>At the server end, put &#8220;<span style="font-family: &quot;Courier New&quot;,Courier,monospace;">X11Forwarding yes</span>&#8221; in <span style="font-family: &quot;Courier New&quot;,Courier,monospace;">/etc/ssh/sshd_config</span>, restart SSH daemon and it should be able to forward X11 requests.</p>
<p>At the client end, connect with &#8220;<span style="font-family: &quot;Courier New&quot;,Courier,monospace;">ssh -X <host></host></span>&#8221; or &#8220;<span style="font-family: &quot;Courier New&quot;,Courier,monospace;">ssh -Y <host></host></span>&#8221; (if <span style="font-family: &quot;Courier New&quot;,Courier,monospace;">ssh -X</span> fails..). Alternatively, SSH client can be configured to turn on X11 forwarding automatically. Put in <span style="font-family: &quot;Courier New&quot;,Courier,monospace;">/etc/ssh/ssh_config</span> the following lines:</p>
<blockquote style="font-family: &quot;Courier New&quot;,Courier,monospace;"><p>Host *<br />
&nbsp; ForwardX11 yes<br />
&nbsp; ForwardX11Trusted yes</p></blockquote>
<p>The last line is not needed if &#8220;<span style="font-family: &quot;Courier New&quot;,Courier,monospace;">ssh -X</span>&#8221; works. In some circumstances only &#8220;<span style="font-family: &quot;Courier New&quot;,Courier,monospace;">ssh -Y</span>&#8221; does, then <span style="font-family: &quot;Courier New&quot;,Courier,monospace;">ForwardX11Trusted</span> is necessary.</p>
<p>ps1. If network is slow, &#8220;<span style="font-family: &quot;Courier New&quot;,Courier,monospace;">-C</span>&#8221; (compress) may help.<br />
ps2. <span style="font-family: &quot;Courier New&quot;,Courier,monospace;">X</span> must be running with &#8220;<span style="font-family: &quot;Courier New&quot;,Courier,monospace;">-nolisten</span>&#8221; argument, which (I guess) is the default in most distributions.
<div class="blogger-post-footer">
<hr />
<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/3.0/"><img alt="Creative Commons License" style="border-width:0" src="http://creativecommons.org/images/public/somerights20.png" /></a><br />This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/3.0/">Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License</a>.</div>
<hr/><p>Related posts:<ol>
<li><a href='http://en.chys.info/2008/11/ssh-without-password/' rel='bookmark' title='SSH without password'>SSH without password</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://en.chys.info/2008/10/ssh-with-x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

