<?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>RouterNotes.com &#187; troublseshooting</title>
	<atom:link href="http://routernotes.com/tag/troublseshooting/feed/" rel="self" type="application/rss+xml" />
	<link>http://routernotes.com</link>
	<description>Networking and Mac OS X lessons learned in a Campus LAN environment</description>
	<lastBuildDate>Mon, 15 Sep 2008 18:01:29 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Configure Port Mirrors on Cisco Switches</title>
		<link>http://routernotes.com/2008/02/19/configure-port-mirrors-on-cisco-switches/</link>
		<comments>http://routernotes.com/2008/02/19/configure-port-mirrors-on-cisco-switches/#comments</comments>
		<pubDate>Tue, 19 Feb 2008 13:31:17 +0000</pubDate>
		<dc:creator>siteadmin</dc:creator>
				<category><![CDATA[Cisco Routers/Switches]]></category>
		<category><![CDATA[How-to]]></category>
		<category><![CDATA[IOS Fundamentals]]></category>
		<category><![CDATA[Cisco]]></category>
		<category><![CDATA[IOS]]></category>
		<category><![CDATA[port mirror]]></category>
		<category><![CDATA[router]]></category>
		<category><![CDATA[switch]]></category>
		<category><![CDATA[troublseshooting]]></category>

		<guid isPermaLink="false">http://routernotes.com/2008/02/19/configure-port-mirrors-on-cisco-switches/</guid>
		<description><![CDATA[Switches make network troubleshooting a bit more difficult because not all traffic is sent to every port like in an older network hub. Switching traffic improves speed because bandwidth is reserved only for connections on that port and security is generally better because it takes more than a simple freeware network sniffer like Wireshark to [...]


Related posts:<ol><li><a href='http://routernotes.com/2008/02/25/configure-port-channels-in-ios/' rel='bookmark' title='Permanent Link: Configure Port Channels in IOS'>Configure Port Channels in IOS</a> <small>Port Channels are a quick way to get more bandwidth...</small></li><li><a href='http://routernotes.com/2008/08/18/configure-vlan-trunks-on-cisco-switches/' rel='bookmark' title='Permanent Link: Configure VLAN trunks on Cisco Switches'>Configure VLAN trunks on Cisco Switches</a> <small>VLAN trunks allow multiple networks to pass over a single...</small></li><li><a href='http://routernotes.com/2008/05/27/working-with-vlans-on-cisco-switches/' rel='bookmark' title='Permanent Link: Working with VLANS on Cisco Switches'>Working with VLANS on Cisco Switches</a> <small>Historically, creating multiple networks required multiple switches, but VLANs (Virtual...</small></li></ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>Switches make network troubleshooting a bit more difficult because not all traffic is sent to every port like in an older network hub. Switching traffic improves speed because bandwidth is reserved only for connections on that port and security is generally better because it takes more than a simple freeware network sniffer like Wireshark to snoop traffic on that segment.</p>
<p>To work around this for troubleshooting and analysis, either a network hardware mirror, most often called a tap, or a mirror (sometimes called a span) on the switch is required. Most business-class switches have this feature and cisco includes it on all of its switches.</p>
<p>Configure a mirror on port 1 like this.</p>
<p>My_Switch(config)#<strong>monitor session 1 source interface Fa0/1 both</strong><br />
My_Switch(config)#<strong>monitor session 1 destination interface Fa0/10</strong></p>
<p>The both option on the command tells the switch to send both transmit and receive packets to the destination port. Once a switchport is configured as a destination mirror port, the port will not accept traffic. A sniffer cannot transmit data, it can only listen.<br />
<!-- START CUSTOM WIDGETBUCKS CODE -->
<div><script src="http://api.widgetbucks.com/script/ads.js?uid=J0WHXBg4Oi3ErM8T"></script></div>
<p><!-- END CUSTOM WIDGETBUCKS CODE --></p>
<p>Cisco Switches actually allow you create more than one mirror, although the number of allowed mirrors depends on the model of Cisco switch. To create a second mirror, just designate a second mirror session.<br />
My_Switch(config)#<strong>monitor session 2 source interface Fa0/2 both</strong><br />
My_Switch(config)#<strong>monitor session 2 destination interface Fa0/11</strong></p>
<p>Cisco&#8217;s syntax also allows you to specify multiple sources to a single port or a single source to multiple destinations. This is handy when setting up Intrusion Detection Systems that monitor the network.</p>
<p>My_Switch(config)#<strong>monitor session 2 source interface Fa0/2 both</strong><br />
My_Switch(config)#<strong>monitor session 2 destination interface Fa0/11</strong><br />
My_Switch(config)#<strong>monitor session 2 destination interface Fa0/12</strong></p>
<p>In some cases, looking at the traffic for just one port is not good enough or the number of mirrors needed exceeds the number of mirrors that the switch is capable of. In that case, Cisco switches allow you to create a vlan mirror that grabs traffic from the entire vlan or vlans and sends it to a destination port for monitoring.</p>
<p>My_Switch(config)#<strong>monitor session 1 source vlan 33 rx</strong><br />
My_Switch(config)#<strong> monitor session 1 destination interface Gi1/</strong>1</p>
<p>Specifying both in the source command would create duplicate packets as packets go in and out of the vlan, so only specify receive or transmit with the tx or rx options. The both option would look like a network echo from a sniffer perspective.</p>
<p>The Show Monitor command summarizes all of the configured mirrors on the entire switch.<span id="more-40"></span></p>
<p>My_Switch&gt;<strong>show monitor</strong><br />
Session 1<br />
&#8212;&#8212;&#8212;<br />
Type       : Local Session<br />
Source Ports:<br />
RX Only:       None<br />
TX Only:       None<br />
Both:          Fa0/1<br />
Source VLANs:<br />
RX Only:       None<br />
TX Only:       None<br />
Both:          None<br />
Source RSPAN VLAN: None<br />
Destination Ports: Fa0/10<br />
Encapsulation: Native<br />
Reflector Port:    None<br />
Filter VLANs:      None<br />
Dest RSPAN VLAN:   None</p>
<p>Session 2<br />
&#8212;&#8212;&#8212;<br />
Type       : Local Session<br />
Source Ports:<br />
RX Only:       None<br />
TX Only:       None<br />
Both:          Fa0/2<br />
Source VLANs:<br />
RX Only:       None<br />
TX Only:       None<br />
Both:          None<br />
Source RSPAN VLAN: None<br />
Destination Ports: Fa0/11<br />
Encapsulation: Native<br />
Reflector Port:    None<br />
Filter VLANs:      None<br />
Dest RSPAN VLAN:   None</p>
<p><a href="http://www.associatedcontent.com/join.html?refer=118505"><img src="http://images-cdn01.associatedcontent.com/siteimg/house_ads/120x90-New_4.gif" alt="Join Associated Content" border="0" /></a><br />
Mirrors can be disabled two ways:<br />
My_Switch(config)#<strong>monitor session 1</strong></p>
<p>This command will only remove session 1.<br />
My_Switch(config)#<strong>no monitor</strong></p>
<p>The no monitor command will remove all monitors on the switch.</p>
<p><em><strong>Similar Posts</strong></em><br />
<em><a href="http://routernotes.com/2007/10/01/configuring-ssh-on-cisco-routersswitches-how-to/" title="Configure SSH in IOS">Configure SSH in IOS</a></em></p>


<p>Related posts:<ol><li><a href='http://routernotes.com/2008/02/25/configure-port-channels-in-ios/' rel='bookmark' title='Permanent Link: Configure Port Channels in IOS'>Configure Port Channels in IOS</a> <small>Port Channels are a quick way to get more bandwidth...</small></li><li><a href='http://routernotes.com/2008/08/18/configure-vlan-trunks-on-cisco-switches/' rel='bookmark' title='Permanent Link: Configure VLAN trunks on Cisco Switches'>Configure VLAN trunks on Cisco Switches</a> <small>VLAN trunks allow multiple networks to pass over a single...</small></li><li><a href='http://routernotes.com/2008/05/27/working-with-vlans-on-cisco-switches/' rel='bookmark' title='Permanent Link: Working with VLANS on Cisco Switches'>Working with VLANS on Cisco Switches</a> <small>Historically, creating multiple networks required multiple switches, but VLANs (Virtual...</small></li></ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://routernotes.com/2008/02/19/configure-port-mirrors-on-cisco-switches/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
