<?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>榆树网 &#187; 思科</title>
	<atom:link href="http://www.wenzk.com/archives/tag/%e6%80%9d%e7%a7%91/feed" rel="self" type="application/rss+xml" />
	<link>http://www.wenzk.com</link>
	<description>http://www.wenzk.com</description>
	<lastBuildDate>Thu, 09 Feb 2012 07:57:28 +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>使用策略路由（PBR）后traceroute不工作</title>
		<link>http://www.wenzk.com/archives/1284</link>
		<comments>http://www.wenzk.com/archives/1284#comments</comments>
		<pubDate>Sun, 17 Jul 2011 08:17:51 +0000</pubDate>
		<dc:creator>ELM</dc:creator>
				<category><![CDATA[榆树网-网络]]></category>
		<category><![CDATA[精彩]]></category>
		<category><![CDATA[traceroute]]></category>
		<category><![CDATA[思科]]></category>
		<category><![CDATA[故障]]></category>
		<category><![CDATA[策略路由]]></category>

		<guid isPermaLink="false">http://www.wenzk.com/?p=1284</guid>
		<description><![CDATA[路由器启用策略路由，用户上网、ping等一切正常，但是traceroute无法工作，具体体现为： 网络拓扑图： 由于路由器A接口1启用了策略路由，所有允许访问Internet的用户发送过来的数据包都直接修改下一跳为路由器B的接口1的地址，所以在路由器A上就未设置默认路由（也就是8个0的路由）。路由器A为思科的12404路由器。 解决办法：在路由器增加默认路由，默认路由的下一跳可以为任意有效的下一跳地址，有默认路由后traceroute就正常了。 估计思科路由器在执行PBR之前会试图查找路由表，确定下一跳地址为多少，之后才是PBR生效，修改下一跳地址。 相关文章如何动态调整CISCO PBR的下一跳地址 (0)uRPF在思科和H3C上现实的差别 (0)FlyTv PCIe X1 DMB-TH Hybrid卡无故罢工 (0)wenzk.com终于又恢复了 (0)两个开源的Netflow Collector (0)]]></description>
			<content:encoded><![CDATA[<p>路由器启用策略路由，用户上网、ping等一切正常，但是traceroute无法工作，具体体现为：</p>
<p><span id="more-1284"></span>
<pre class="brush: plain; title: ; notranslate">[root@NAT natlog]# traceroute -n cpan.wenzk.com
traceroute to cpan.wenzk.com (221.203.119.98), 30 hops max, 40 byte packets
1  10.0.0.6  0.265 ms !H * *</pre>
<p>网络拓扑图：</p>
<p><a href="http://www.wenzk.com/wp-content/uploads/2011/07/pbr.jpg" class="highslide-image" onclick="return hs.expand(this);"><img class="alignnone size-medium wp-image-1285" title="pbr" src="http://www.wenzk.com/wp-content/uploads/2011/07/pbr-300x174.jpg" alt="" width="300" height="174" /></a></p>
<p>由于路由器A接口1启用了策略路由，所有允许访问Internet的用户发送过来的数据包都直接修改下一跳为路由器B的接口1的地址，所以在路由器A上就未设置默认路由（也就是8个0的路由）。路由器A为思科的12404路由器。</p>
<p>解决办法：在路由器增加默认路由，默认路由的下一跳可以为任意有效的下一跳地址，有默认路由后traceroute就正常了。</p>
<p>估计思科路由器在执行PBR之前会试图查找路由表，确定下一跳地址为多少，之后才是PBR生效，修改下一跳地址。</p>
<h2  class="related_post_title">相关文章</h2><ul class="related_post"><li><a href="http://www.wenzk.com/archives/1306" title="如何动态调整CISCO PBR的下一跳地址">如何动态调整CISCO PBR的下一跳地址</a> (0)</li><li><a href="http://www.wenzk.com/archives/970" title="uRPF在思科和H3C上现实的差别">uRPF在思科和H3C上现实的差别</a> (0)</li><li><a href="http://www.wenzk.com/archives/903" title="FlyTv PCIe X1 DMB-TH Hybrid卡无故罢工">FlyTv PCIe X1 DMB-TH Hybrid卡无故罢工</a> (0)</li><li><a href="http://www.wenzk.com/archives/865" title="wenzk.com终于又恢复了">wenzk.com终于又恢复了</a> (0)</li><li><a href="http://www.wenzk.com/archives/849" title="两个开源的Netflow Collector">两个开源的Netflow Collector</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.wenzk.com/archives/1284/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>uRPF在思科和H3C上现实的差别</title>
		<link>http://www.wenzk.com/archives/970</link>
		<comments>http://www.wenzk.com/archives/970#comments</comments>
		<pubDate>Tue, 24 Aug 2010 03:24:37 +0000</pubDate>
		<dc:creator>ELM</dc:creator>
				<category><![CDATA[榆树网-网络]]></category>
		<category><![CDATA[H3C]]></category>
		<category><![CDATA[IP]]></category>
		<category><![CDATA[uRPF]]></category>
		<category><![CDATA[思科]]></category>
		<category><![CDATA[路由器]]></category>

		<guid isPermaLink="false">http://www.wenzk.com/?p=970</guid>
		<description><![CDATA[以下文字来自H3C官方网站：http://www.h3c.com.cn/download.do?id=620562 URPF 处理流程 URPF 检查有严格（strict）型和松散（loose）型两种。此外，还可以支持ACL 与缺省路由的检查。 URPF 的处理流程如下： (1) 如果报文的源地址在路由器的FIB 表中存在对于strict 型检查，反向查找报文出接口，若其中至少有一个出接口和报文的入接口相匹配，则报文通过检查；否则报文将被拒绝。（反向查找是指查找以该报文源IP 地址为目的IP 地址的报文的出接口）对于loose 型检查，报文进行正常的转发。 (2) 如果报文的源地址在路由器的FIB 表中不存在，则检查缺省路由及URPF 的allow-default-route 参数。 对于配置了缺省路由，但没有配置参数allow-default-route 的情况，不管是strict型检查还是loose 型检查，只要报文的源地址在路由器的FIB 表中不存在，该 报文都将被拒绝； 对于配置了缺省路由，同时又配置了参数allow-default-route 的情况下，如果是strict 型检查，只要缺省路由的出接口与报文的入接口一致，则报文将通过 URPF 的检查，进行正常的转发；如果缺省路由的出接口和报文的入接口不一致，则报文将拒绝。如果是loose 型检查，报文都将通过URPF 的检查，进行 正常的转发。 (3) 当且仅当报文被拒绝后，才去匹配ACL。如果被ACL 允许通过，则报文继续进行正常的转发；如果被ACL 拒绝，则报文被丢弃。 以下文字来自CISCO官方网站：http://www.cisco.com/web/about/security/intelligence/unicast-rpf.html Introduction Network administrators can use Unicast Reverse Path Forwarding (Unicast RPF) to help limit the malicious traffic [...]]]></description>
			<content:encoded><![CDATA[<p>以下文字来自H3C官方网站：<a href="http://www.h3c.com.cn/download.do?id=620562" target="_blank">http://www.h3c.com.cn/download.do?id=620562</a></p>
<p>URPF 处理流程<br />
URPF 检查有严格（strict）型和松散（loose）型两种。此外，还可以支持ACL 与缺省路由的检查。<br />
URPF 的处理流程如下：<br />
(1) 如果报文的源地址在路由器的FIB 表中存在对于strict 型检查，反向查找报文出接口，若其中至少有一个出接口和报文的入接口相匹配，则报文通过检查；否则报文将被拒绝。（反向查找是指查找以该报文源IP 地址为目的IP 地址的报文的出接口）对于loose 型检查，报文进行正常的转发。<br />
(2) 如果报文的源地址在路由器的FIB 表中不存在，则检查缺省路由及URPF 的allow-default-route 参数。<br />
对于配置了缺省路由，但没有配置参数allow-default-route 的情况，不管是strict型检查还是loose 型检查，只要报文的源地址在路由器的FIB 表中不存在，该<br />
报文都将被拒绝；<br />
对于配置了缺省路由，同时又配置了参数allow-default-route 的情况下，如果是strict 型检查，只要缺省路由的出接口与报文的入接口一致，则报文将通过<br />
URPF 的检查，进行正常的转发；如果缺省路由的出接口和报文的入接口不一致，则报文将拒绝。如果是loose 型检查，报文都将通过URPF 的检查，进行<br />
正常的转发。<br />
(3) 当且仅当报文被拒绝后，才去匹配ACL。如果被ACL 允许通过，则报文继续进行正常的转发；如果被ACL 拒绝，则报文被丢弃。</p>
<p><span id="more-970"></span>以下文字来自CISCO官方网站：<a href="http://www.cisco.com/web/about/security/intelligence/unicast-rpf.html" target="_blank">http://www.cisco.com/web/about/security/intelligence/unicast-rpf.html</a><br />
<strong>Introduction</strong><br />
Network administrators can use Unicast Reverse Path Forwarding (Unicast RPF) to help limit the malicious traffic on an enterprise network. This security feature works by enabling a router to verify the reachability of the source address in packets being forwarded. This capability can limit the appearance of spoofed addresses on a network. If the source IP address is not valid, the packet is discarded. Unicast RPF works in one of three different modes: strict mode, loose mode, or VRF mode. Note that not all network devices support all three modes of operation. Unicast RPF in VRF mode will not be covered in this document.</p>
<p>When administrators use Unicast RPF in strict mode, the packet must be received on the interface that the router would use to forward the return packet. Unicast RPF configured in strict mode may drop legitimate traffic that is received on an interface that was not the router&#8217;s choice for sending return traffic. Dropping this legitimate traffic could occur when asymmetric routing paths are present in the network.</p>
<p>When administrators use Unicast RPF in loose mode, the source address must appear in the routing table. Administrators can change this behavior using the <strong>allow-default</strong> option, which allows the use of the default route in the source verification process. Additionally, a packet that contains a source address for which the return route points to the Null 0 interface will be dropped. An access list may also be specified that permits or denies certain source addresses in Unicast RPF loose mode.</p>
<p>Care must be taken to ensure that the appropriate Unicast RPF mode (loose or strict) is configured during the deployment of this feature because it can drop legitimate traffic. Although asymmetric traffic flows may be of concern when deploying this feature, Unicast RPF loose mode is a scalable option for networks that contain asymmetric routing paths.<br />
<strong>Unicast RPF in an Enterprise Network</strong><br />
In many enterprise environments, it is necessary to use a combination  of strict mode and loose mode Unicast RPF. The choice of the Unicast RPF  mode that will be used will depend on the design of the network segment  connected to the interface on which Unicast RPF is deployed.</p>
<p>Administrators should use Unicast RPF in strict mode on network interfaces for which all packets received on an interface are guaranteed to originate from the subnet assigned to the interface. A subnet composed of end stations or network resources fulfills this requirement. Such a design would be in place for an access layer network or a branch office where there is only one path into and out of the branch network. No other traffic originating from the subnet is allowed and no other routes are available past the subnet.</p>
<p>Unicast RPF loose mode can be used on an uplink network interface that has a default route associated with it.<br />
<strong>Unicast RPF Examples</strong><br />
<strong>Cisco IOS Devices</strong><br />
An important consideration for deployment is that Cisco Express Forwarding switching must be enabled for Unicast RPF to function. This command has been enabled by default as of IOS version 12.2. If it is not enabled, administrators can enable it with the following global configuration command: <strong>ip cef</strong></p>
<p>Unicast RPF is enabled on a per-interface basis. The <strong>ip verify unicast source reachable-via rx</strong> command enables Unicast RPF in strict mode. To enable loose mode, administrators can use the <strong>any</strong> option to enforce the requirement that the source IP address for a packet must appear in the routing table. The <strong>allow-default</strong> option may be used with either the <strong>rx</strong> or <strong>any</strong> option to include IP addresses not specifically contained in the routing table. The <strong>allow-self-ping</strong> option should not be used because it could create a denial of service condition. An access list such as the one that follows may also be configured to specifically permit or deny a list of addresses through Unicast RPF:</p>
<blockquote>
<pre>interface FastEthernet 0/0
ip verify unicast source reachable-via {rx | any} [allow-default]
[allow-self-ping] [<em>list</em>]</pre>
</blockquote>
<p>Addresses that should never appear on a network can be dropped by entering a route to a null interface. The following command will cause all traffic received from the 10.0.0.0/8 network to be dropped even if Unicast RPF is enabled in loose mode with the <strong>allow-default</strong> option: <strong>ip route 10.0.0.0 255.0.0.0 Null0</strong></p>
<p>从以上文字可以看出，CISCO在实现uRPF的时候考虑得比H3C稍微多了一点点，起码思科考虑到了路由表中下一跳地址为Null0接口的处理。</p>
<h2  class="related_post_title">相关文章</h2><ul class="related_post"><li><a href="http://www.wenzk.com/archives/563" title="最近那些事">最近那些事</a> (2)</li><li><a href="http://www.wenzk.com/archives/1284" title="使用策略路由（PBR）后traceroute不工作">使用策略路由（PBR）后traceroute不工作</a> (0)</li><li><a href="http://www.wenzk.com/archives/1262" title="CentOS 5.6安装程序的小Bug">CentOS 5.6安装程序的小Bug</a> (0)</li><li><a href="http://www.wenzk.com/archives/1048" title="如何通过WEB打开H3C WX5002系列设备的telnet服务">如何通过WEB打开H3C WX5002系列设备的telnet服务</a> (0)</li><li><a href="http://www.wenzk.com/archives/849" title="两个开源的Netflow Collector">两个开源的Netflow Collector</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.wenzk.com/archives/970/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>两个开源的Netflow Collector</title>
		<link>http://www.wenzk.com/archives/849</link>
		<comments>http://www.wenzk.com/archives/849#comments</comments>
		<pubDate>Sun, 02 May 2010 04:28:27 +0000</pubDate>
		<dc:creator>ELM</dc:creator>
				<category><![CDATA[榆树网-网络]]></category>
		<category><![CDATA[CISCO]]></category>
		<category><![CDATA[Netflow]]></category>
		<category><![CDATA[思科]]></category>

		<guid isPermaLink="false">http://www.wenzk.com/?p=849</guid>
		<description><![CDATA[1、flow-tools: 附带一堆flow-filter flow-report flow-stat等很有用的工具，通过过简单的写配置文件和脚本操作就可以实现你想要的效果，唯一遗憾，不支持Netflow v9。官方主页：http://www.splintered.net/sw/flow-tools/ 2、NFDUMP：这个软件支持Netflow v9，但是自带的工具就相对较少，要实现自己的功能或许需要多写一些脚本才行。官方主页：http://nfdump.sourceforge.net/ http://sourceforge.net/projects/nfsen/ 在Cisco 配置Netflow的方法： 在需要收集Netflow的接口启用Netflow功能 使用下面的命令告诉路由器发送Netflow数据 This breaks up long-lived flows into 5-minute segments. You can choose any number of minutes between 1 and 60, but should be equal or less than the file rotation period &#8211; typically 5 minutes,If you leave it at the default of 30 minutes [...]]]></description>
			<content:encoded><![CDATA[<p>1、flow-tools: 附带一堆flow-filter flow-report flow-stat等很有用的工具，通过过简单的写配置文件和脚本操作就可以实现你想要的效果，唯一遗憾，不支持Netflow v9。官方主页：<a href="http://www.splintered.net/sw/flow-tools/">http://www.splintered.net/sw/flow-tools/</a></p>
<p>2、NFDUMP：这个软件支持Netflow v9，但是自带的工具就相对较少，要实现自己的功能或许需要多写一些脚本才行。官方主页：<a href="http://nfdump.sourceforge.net/">http://nfdump.sourceforge.net/</a> <a href="http://sourceforge.net/projects/nfsen/" target="_blank">http://sourceforge.net/projects/nfsen/</a></p>
<p><span id="more-849"></span>在Cisco 配置Netflow的方法：</p>
<p>在需要收集Netflow的接口启用Netflow功能</p>
<pre class="brush: plain; title: ; notranslate"> interface fastethernet 0/0
ip route-cache flow</pre>
<p>使用下面的命令告诉路由器发送Netflow数据</p>
<pre class="brush: plain; title: ; notranslate">ip flow-export
ip flow-export version 5
ip flow-cache timeout active 5</pre>
<p>This breaks up long-lived flows into 5-minute segments. You can choose any number of minutes between 1 and 60, but should be equal or less than the file rotation period &#8211; typically 5 minutes,If you leave it at the default of 30 minutes your traffic reports will have spikes.</p>
<p>在Cisco 6500/7600系列中，确认已经使能”NDE(Netflow Data Export)”.</p>
<pre class="brush: plain; title: ; notranslate">mls flow ip interface-full
mls flow ipv6 interface-full
mls nde sender version 5</pre>
<p>注意IPv6 NDE还没有实现，但是你依然可以使用“show mls netflow ipv6”来查看目前活动的IPv6流数据。<br />
在负载比较重的路由器上可以使用如下设置:</p>
<pre class="brush: plain; title: ; notranslate">mls aging fast time 4 threshold 2
mls aging normal 32
mls aging long 900</pre>
<h2  class="related_post_title">相关文章</h2><ul class="related_post"><li><a href="http://www.wenzk.com/archives/846" title="关于Cisco 6509/7609 交换机Netflow的配置[转载]">关于Cisco 6509/7609 交换机Netflow的配置[转载]</a> (0)</li><li><a href="http://www.wenzk.com/archives/1306" title="如何动态调整CISCO PBR的下一跳地址">如何动态调整CISCO PBR的下一跳地址</a> (0)</li><li><a href="http://www.wenzk.com/archives/1284" title="使用策略路由（PBR）后traceroute不工作">使用策略路由（PBR）后traceroute不工作</a> (0)</li><li><a href="http://www.wenzk.com/archives/970" title="uRPF在思科和H3C上现实的差别">uRPF在思科和H3C上现实的差别</a> (0)</li><li><a href="http://www.wenzk.com/archives/844" title="IP 流量统计排行榜 ( netflow TopN ) 简易速成法">IP 流量统计排行榜 ( netflow TopN ) 简易速成法</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.wenzk.com/archives/849/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>关于Cisco 6509/7609 交换机Netflow的配置[转载]</title>
		<link>http://www.wenzk.com/archives/846</link>
		<comments>http://www.wenzk.com/archives/846#comments</comments>
		<pubDate>Fri, 30 Apr 2010 08:52:38 +0000</pubDate>
		<dc:creator>ELM</dc:creator>
				<category><![CDATA[榆树网-网络]]></category>
		<category><![CDATA[CISCO]]></category>
		<category><![CDATA[Netflow]]></category>
		<category><![CDATA[交换机]]></category>
		<category><![CDATA[思科]]></category>
		<category><![CDATA[配置]]></category>

		<guid isPermaLink="false">http://www.wenzk.com/?p=846</guid>
		<description><![CDATA[Netflow 在6500和7209 交换机上配置和路由器上配置有所不同，在公司开发Netflow的应用上，发现现场工程师基本没有配置对，导致流量出不来。下面列出配置信息；CATOS的配置也的参考该配置 1、首先看看Netflow配置是否正常起来： Switch# show mls nde 一般看到都是Netflow Data Export disabled 这说明Netflow都没有起来。 参看Cisco 《Configuring NetFlow Data Export》 PDf文档，默认是Disabled的 2、启动netflow Switch(config)# mls netflow 3、启动netflow 的双向流量 Switch(config)# mls flow ip destination-source 4、启动NDE发送以及发送版本 Switch(config)# mls nde sender [version {5 &#124; 7}] 如果只输入mls nde sender 系统默认启用的是版本7，如果需要版本5，则mls nde sender version 5 ，目前版本能配的是5或7，这两个版本WEB均能出现正常的数据。 对于Cisco IOS 12.17以下版本的交换机，只有版本7。 5、进入VLAN，启动接口Netflow（如果在物理接口上其3层，则直接进入物理接口）。 Switch(config)# interface vlan [...]]]></description>
			<content:encoded><![CDATA[<p>Netflow 在6500和7209 交换机上配置和路由器上配置有所不同，在公司开发Netflow的应用上，发现现场工程师基本没有配置对，导致流量出不来。下面列出配置信息；CATOS的配置也的参考该配置</p>
<p><span id="more-846"></span>1、首先看看Netflow配置是否正常起来：</p>
<p>Switch# show mls nde</p>
<p>一般看到都是Netflow Data Export disabled  这说明Netflow都没有起来。<br />
参看Cisco 《Configuring NetFlow Data Export》 PDf文档，默认是Disabled的</p>
<p>2、启动netflow</p>
<p>Switch(config)# mls netflow</p>
<p>3、启动netflow 的双向流量<br />
Switch(config)# mls flow ip destination-source</p>
<p>4、启动NDE发送以及发送版本</p>
<p>Switch(config)# mls nde sender [version {5 | 7}]</p>
<p>如果只输入mls nde sender 系统默认启用的是版本7，如果需要版本5，则mls nde sender version 5 ，目前版本能配的是5或7，这两个版本WEB均能出现正常的数据。</p>
<p>对于Cisco IOS 12.17以下版本的交换机，只有版本7。</p>
<p>5、进入VLAN，启动接口Netflow（如果在物理接口上其3层，则直接进入物理接口）。</p>
<p>Switch(config)# interface vlan 5<br />
Switch(config-if)# ip flow-export ingress<br />
Switch(config-if)# ip route-cache flow</p>
<p>6、配置Netflow的数据源，如果没有配置Loopback的接口，可以采用物理接口，建议配置Loopback接口</p>
<p>Switch(config)# ip flow-export source loopback 0</p>
<p>7、检测</p>
<p>Switch# show mls nde （能看到如下的信息，而且明确Netflow Data Export enabled  ）</p>
<p>Netflow Data Export enabled<br />
Exporting flows to 10.110.10.254 (9991)<br />
Exporting flows from 10.16.68.72 (55425)<br />
Version: 5<br />
Include Filter not configured<br />
Exclude Filter is:<br />
Total Netflow Data Export Packets are:<br />
49 packets, 0 no packets, 247 records<br />
Total Netflow Data Export Send Errors:<br />
IPWRITE_NO_FIB = 0<br />
IPWRITE_ADJ_FAILED = 0<br />
IPWRITE_PROCESS = 0</p>
<p>Switch(config)# show mls netfow ip</p>
<p>看到大量的流量信息，大量的滚屏信息。</p>
<p>&#8212;&#8212;&#8212;常规路由器上配置&#8212;&#8212;-</p>
<p>在路由器上开启netflow统计的过程和例子：<br />
开启过程<br />
Command Description<br />
&gt; en  进入授权模式<br />
#config t 进入配置模式<br />
(config)#interface eth 0/0 配置第一块以太网卡接口<br />
(config－if)#ip route-cache flow 启动信息流交换<br />
(config－if)#exit 返回配置状态<br />
(config)#ip flow-export [ip-add] [udp-port]   把统计信息输出到一个指定工作站<br />
(config)#ip flow-export version 设定netflow 的版本号<br />
(config)#ip flow-cache active-timeout 设定netflow 记录活动超时时间<br />
(config)#ip flow-cache entries  设定netflow 记录缓冲区的入口数<br />
(config)#exit  返回授权状态<br />
#copy running-config startup-config 保存运行时配置到启动配置文件中<br />
#show ip flow export 查看netflow输出的统计情况</p>
<p>例子<br />
以开启两个以太网端口为例：</p>
<p>1. 登陆路由器：<br />
telnet 10.1.254.254<br />
2. 输入登陆密码<br />
*******<br />
3. 进入授权模式，输入授权密码<br />
&gt;en<br />
&gt;*****<br />
4. 进入配置模式<br />
#confing t<br />
5. 配置第一块网卡 （注意：网卡是指接口。希望监控几个接口就重复这个步骤）<br />
(config)#interface vlan 22 23<br />
(config－if)#ip route-cache flow<br />
(config－if)#exit</p>
<p>6. 配置统计信息的输出目的，即采集服务器的ip和监听端口<br />
(config)#ip flow-export 10.1.200.201 9991<br />
7. 配置输出版本，目前可支持版本1和5<br />
(config)#ip flow-export version 5<br />
8. 配置活动流时间（默认为30分钟，故可不配置，若需要改变则可输入别的数值）<br />
(config)#ip flow-cache active-timeout 30<br />
9. 退出配置模式<br />
(config)#exit<br />
10. 保存配置到启动文件，保证路由器重启后也能能加载flow的配置<br />
#copy running-config startup-config<br />
11. 退出授权模式，然后退出登陆，结束配置<br />
#exit<br />
&gt;exit</p>
<p>From: <a href="http://zhuowq.blog.51cto.com/212915/38465">http://zhuowq.blog.51cto.com/212915/38465</a></p>
<h2  class="related_post_title">相关文章</h2><ul class="related_post"><li><a href="http://www.wenzk.com/archives/849" title="两个开源的Netflow Collector">两个开源的Netflow Collector</a> (0)</li><li><a href="http://www.wenzk.com/archives/1306" title="如何动态调整CISCO PBR的下一跳地址">如何动态调整CISCO PBR的下一跳地址</a> (0)</li><li><a href="http://www.wenzk.com/archives/1284" title="使用策略路由（PBR）后traceroute不工作">使用策略路由（PBR）后traceroute不工作</a> (0)</li><li><a href="http://www.wenzk.com/archives/1048" title="如何通过WEB打开H3C WX5002系列设备的telnet服务">如何通过WEB打开H3C WX5002系列设备的telnet服务</a> (0)</li><li><a href="http://www.wenzk.com/archives/970" title="uRPF在思科和H3C上现实的差别">uRPF在思科和H3C上现实的差别</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.wenzk.com/archives/846/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>最近那些事</title>
		<link>http://www.wenzk.com/archives/563</link>
		<comments>http://www.wenzk.com/archives/563#comments</comments>
		<pubDate>Sun, 24 Jan 2010 04:17:24 +0000</pubDate>
		<dc:creator>ELM</dc:creator>
				<category><![CDATA[榆树网-杂谈]]></category>
		<category><![CDATA[Twitter]]></category>
		<category><![CDATA[太空]]></category>
		<category><![CDATA[思科]]></category>
		<category><![CDATA[春运]]></category>
		<category><![CDATA[火车票]]></category>
		<category><![CDATA[路由器]]></category>
		<category><![CDATA[那些事]]></category>

		<guid isPermaLink="false">http://www.wenzk.com/?p=563</guid>
		<description><![CDATA[先说说自己： 放假了，用我LP的话来说，也就休了个大周末。为什么放假了，感觉事情更多了？ 何时能实现：放假了，还去单位干吗？ 再说说最近能想起来的事： 1、思科路由器上天了，意味着IP 路由技术进入太空啦。 2、盖茨也写twitter了，可是我们却要好好锻炼身体，否则你没法写。 3、twitter收到第一条来自外太空的tweet，可是我们上twitter比他们还艰难。 4、Google说要退出中国，后来又申明仍然继续和go-ver-nment协商中。 5、百度 短期内2次被攻击。。。 6、据说春运售票要规范化，部分火车票也要实名制啦，不知道能否按时搞到回家的车票。 相关文章网上购票取票方法 (0)uRPF在思科和H3C上现实的差别 (0)铁路客户服务中心网站还真的提前上线了 (0)我的火车票搞定啦 (1)中国铁路客户服务中心-网站 (0)]]></description>
			<content:encoded><![CDATA[<p>先说说自己：</p>
<p>放假了，用我LP的话来说，也就休了个大周末。为什么放假了，感觉事情更多了？</p>
<p><span id="more-563"></span>何时能实现：放假了，还去单位干吗？</p>
<p>再说说最近能想起来的事：</p>
<p>1、思科路由器上天了，意味着IP 路由技术进入太空啦。</p>
<p>2、盖茨也写twitter了，可是我们却要好好锻炼身体，否则你没法写。</p>
<p>3、twitter收到第一条来自外太空的tweet，可是我们上twitter比他们还艰难。</p>
<p>4、Google说要退出中国，后来又申明仍然继续和go-ver-nment协商中。</p>
<p>5、百度 短期内2次被攻击。。。</p>
<p>6、据说春运售票要规范化，部分火车票也要实名制啦，不知道能否按时搞到回家的车票。</p>
<h2  class="related_post_title">相关文章</h2><ul class="related_post"><li><a href="http://www.wenzk.com/archives/1494" title="网上购票取票方法">网上购票取票方法</a> (0)</li><li><a href="http://www.wenzk.com/archives/970" title="uRPF在思科和H3C上现实的差别">uRPF在思科和H3C上现实的差别</a> (0)</li><li><a href="http://www.wenzk.com/archives/593" title="铁路客户服务中心网站还真的提前上线了">铁路客户服务中心网站还真的提前上线了</a> (0)</li><li><a href="http://www.wenzk.com/archives/572" title="我的火车票搞定啦">我的火车票搞定啦</a> (1)</li><li><a href="http://www.wenzk.com/archives/560" title="中国铁路客户服务中心-网站">中国铁路客户服务中心-网站</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.wenzk.com/archives/563/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

