<?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>gigabit &#8211; richliu&#039;s blog</title>
	<atom:link href="https://blog.richliu.com/tag/gigabit/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.richliu.com</link>
	<description>Linux, 工作, 生活, 家人</description>
	<lastBuildDate>Tue, 20 Jul 2010 06:36:13 +0000</lastBuildDate>
	<language>zh-TW</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.6.2</generator>
	<item>
		<title>mrtg 正確取得 gigabit interface 的數據</title>
		<link>https://blog.richliu.com/2010/07/20/961/mrtg-%e6%ad%a3%e7%a2%ba%e5%8f%96%e5%be%97-gigabit-interface-%e7%9a%84%e6%95%b8%e6%93%9a/</link>
					<comments>https://blog.richliu.com/2010/07/20/961/mrtg-%e6%ad%a3%e7%a2%ba%e5%8f%96%e5%be%97-gigabit-interface-%e7%9a%84%e6%95%b8%e6%93%9a/#respond</comments>
		
		<dc:creator><![CDATA[richliu]]></dc:creator>
		<pubDate>Tue, 20 Jul 2010 06:35:13 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[32bit]]></category>
		<category><![CDATA[64bit]]></category>
		<category><![CDATA[gigabit]]></category>
		<category><![CDATA[mrtg]]></category>
		<guid isPermaLink="false">http://blog.richliu.com/?p=961</guid>

					<description><![CDATA[<p>mrtg 在掃 interface 時, 預設的 interface 都是取到 Linux 下的 32bit  [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://blog.richliu.com/2010/07/20/961/mrtg-%e6%ad%a3%e7%a2%ba%e5%8f%96%e5%be%97-gigabit-interface-%e7%9a%84%e6%95%b8%e6%93%9a/">mrtg 正確取得 gigabit interface 的數據</a> appeared first on <a rel="nofollow" href="https://blog.richliu.com">richliu&#039;s blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>mrtg 在掃 interface 時, 預設的 interface 都是取到 Linux 下的 32bit 的 counter.<br />
而 32bit counter 的流量, 很容易在 5 分鐘取樣一次的 mrtg 中失真.</p>
<p>如果要準確反映 interface 流量, 就要取用 64bits. 的數據.</p>
<p>如何取用 64bits 的數據呢?</p>
<p>以下是 mrtg 的部份設定檔<br />
[TEXT]<br />
Target[localhost_eth0]: \eth0:public@localhost:<br />
SetEnv[localhost_eth0]: MRTG_INT_IP=&#8221;60.125.111.222&#8243; MRTG_INT_DESCR=&#8221;eth0&#8243;<br />
MaxBytes[localhost_eth0]: 12500000<br />
Title[localhost_eth0]: 60.125.111.222 &#8212; ms1<br />
[/TEXT]</p>
<p>在Target[localhost_eth0]: \eth0:public@localhost: 後面加上 <strong><span style="color: #0000ff;">::::2</span></strong></p>
<p>以下就是一個 Gigabit interface.<br />
[TEXT]<br />
Target[localhost_eth1]: \eth1:public@localhost:::::2<br />
SetEnv[localhost_eth1]: MRTG_INT_IP=&#8221;192.168.1.254&#8243; MRTG_INT_DESCR=&#8221;eth1&#8243;<br />
MaxBytes[localhost_eth1]: 125000000<br />
Title[localhost_eth1]: 192.168.1.254 &#8212; ms1<br />
[/TEXT]</p>
<p>Ref.<br />
<a href="http://oss.oetiker.ch/mrtg/doc/mrtg-reference.en.html" target="_blank" rel="noopener"><em>MRTG</em> &#8211; <em>MRTG</em> 2.16.2 configuration reference</a></p>
<p>The post <a rel="nofollow" href="https://blog.richliu.com/2010/07/20/961/mrtg-%e6%ad%a3%e7%a2%ba%e5%8f%96%e5%be%97-gigabit-interface-%e7%9a%84%e6%95%b8%e6%93%9a/">mrtg 正確取得 gigabit interface 的數據</a> appeared first on <a rel="nofollow" href="https://blog.richliu.com">richliu&#039;s blog</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.richliu.com/2010/07/20/961/mrtg-%e6%ad%a3%e7%a2%ba%e5%8f%96%e5%be%97-gigabit-interface-%e7%9a%84%e6%95%b8%e6%93%9a/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
