<?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; switch</title>
	<atom:link href="http://routernotes.com/tag/switch/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>Troubleshoot VLAN trunks</title>
		<link>http://routernotes.com/2008/09/15/troubleshoot-vlan-trunks/</link>
		<comments>http://routernotes.com/2008/09/15/troubleshoot-vlan-trunks/#comments</comments>
		<pubDate>Mon, 15 Sep 2008 18:01:29 +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[switch]]></category>
		<category><![CDATA[trunk]]></category>
		<category><![CDATA[vlan]]></category>

		<guid isPermaLink="false">http://routernotes.com/?p=83</guid>
		<description><![CDATA[The syntax for setting up VLAN trunks on Cisco switches is straight forward, but a simple typo can keep them from working. Here are some simple troubleshooting steps to resolve trunking problems. Trunking problems usually come down to one of two things: Either the entire trunk will not establish or there is a problem with [...]


Related posts:<ol><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><li><a href='http://routernotes.com/2008/02/19/configure-port-mirrors-on-cisco-switches/' rel='bookmark' title='Permanent Link: Configure Port Mirrors on Cisco Switches'>Configure Port Mirrors on Cisco Switches</a> <small>Switches make network troubleshooting a bit more difficult because not...</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>The syntax for setting up VLAN trunks on Cisco switches is straight forward, but a simple typo can keep them from working. Here are some simple troubleshooting steps to resolve trunking problems. <br id="ihxy" /><br id="log2" />Trunking problems usually come down to one of two things: Either the entire trunk will not establish or there is a problem with a single VLAN communicating across the trunk. A detailed <a title="Configure VLAN trunks" href="http://routernotes.com/2008/08/18/configure-vlan-trunks-on-cisco-switches/">explanation of setting up VLAN trunks can be found here</a>.<br id="ihxy0" /><br id="h:5g" /><br id="h:5g0" /><strong>Problem 1: The trunk will not establish.</strong><br id="j3e3" /><br id="j3e30" /><strong>Step 1: Verify the native VLAN</strong><br id="dbok" /> When working with 802.1q VLAN trunks, the most common error is that the native vlan is different on each trunk. Both switches will produce a native VLAN mismatch error at the console. Look at the difference in the configuration with the show run int gigabit 0/1 command.<br id="ljz_" /> <br id="ljz_0" /> Switch A<br id="ljz_1" /> interface gigabit 0/1<br id="ljz_2" /> switchport trunk encapsulation dot1q<br id="ljz_3" /> switchport mode trunk<br id="ljz_4" /> switchport trunk native vlan 5<br id="ljz_5" /> switchport trunk allowed vlan 5,10,15<br id="ljz_7" /> <br id="ljz_8" /> Switch B<br id="ljz_9" /> interface gigbbit 0/1<br id="ljz_10" /> switchport trunk encapsulation dot1q<br id="ljz_11" /> switchport mode trunk<br id="ljz_12" /> switchport trunk native vlan 15<br id="ljz_13" /> switchport trunk allowed vlan 5,10,15<br id="nifr" /> <br id="vjc2" /> Note that Switch A has a native VLAN of 5 and Switch B has a native VLAN of 15. This will prevent the trunk from establishing. Another problem is created when the native VLAN is specified on one switch, but not the other. The switch without a specified native vlan defaults to VLAN 1 as its native VLAN and creates the same native VLAN mismatch error as above, but finding the problem is not as obvious.<br id="t9:0" /> <br id="t9:00" /> Switch A<br id="t9:01" /> interface gigabit 0/1<br id="t9:02" /> switchport trunk encapsulation dot1q<br id="t9:03" /> switchport mode trunk<br id="t9:05" /> switchport trunk allowed vlan 5,10.15<br id="t9:06" /> <em id="q5rg">No native VLAN is specified, so it defaults to VLAN 1</em><br id="t9:07" /> <br id="t9:08" /> Switch B<br id="t9:09" /> interface gigbbit 0/1<br id="t9:010" /> switchport trunk encapsulation dot1q<br id="t9:011" /> switchport mode trunk<br id="t9:012" /> switchport trunk native vlan 15<br id="t9:013" /> switchport trunk allowed vlan 5,10,15<br id="bz:i" /> <br id="bz:i0" /> Another problem that can keep the trunk from establishing is when the port is left is access mode. Mode access prevents the port from transmitting the proper VLAN information to the next switch. The improper configuration will look something like this:<br id="ue1b" /> <br id="ue1b0" /> Switch B<br id="ue1b1" /> interface gigbbit 0/1<br id="ue1b2" /> switchport trunk encapsulation dot1q<br id="ue1b3" /> switchport mode trunk<br id="ue1b4" /> switchport mode access<br id="ue1b5" /> switchport trunk native vlan 15<br id="ue1b6" /> switchport trunk allowed vlan 5,10,15<br id="tpal" /> <br id="tpal0" /> Remove the mode access to resolve the problem <br id="p2xz" /> <br id="p2xz0" /> switchB(config-f)#int gigabit 0/1<br id="x6q5" /> switchB(config-f)#no switchpprt mode access<br id="j3e31" /><br id="j3e32" /><br id="j3e33" /><strong>Problem 2: The trunk establishes, but there is a problem with a single VLAN on the trunk.</strong><br id="khgt" /><br id="khgt0" /><strong>Step 1: Verify that the VLAN is created properly on each switch. </strong><br id="khgt1" />Cisco Switches will allow a VLAN to be added to a trunk port, but will not pass traffic unless the VLAN is configured on the switch. For example, if VLAN 15 is not working between the two switches, the show vlan command will show whether it is confgured.<br id="xjrp" /><br id="xjrp0" />SwitchA&gt;show vlan<br id="bmhi" /><br id="bc1w" />VLAN Name                             Status    Ports<br id="zpnf" />&#8212;- &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8212;<br id="ln1w" />5    Accounting                       active    fa0/1<br id="diix" />10  Marketing                         active    fa0/2<br id="gfa2" /><br id="gfa20" />switchB&gt;show vlan<br id="gfa21" /> <br id="gfa22" /> VLAN Name                             Status    Ports<br id="gfa23" /> &#8212;- &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8212;<br id="gfa24" /> 5    Accounting                       active    fa0/1<br id="gfa25" /> 10  Marketing                         active    fa0/2<br id="gfa26" />15 Administration                   active    fa0/3<br id="s1w6" /><br id="s1w60" />Note that VLAN 15 appears on Switch B, but not Switch A. Add the VLAN to Switch A to resolve the issue.<br id="ku.m" /><br id="ku.m0" />SwitchA(conf t)#vlan 15<br id="h3b6" />Switch(config-vlan)#description Administration<br id="h3b60" /><br id="h3b61" />Step 2: Verify that the VLANs are allowed on the trunk ports. It is a good idea to specify the vlans that are allowed on the trunk, but that means that they must be added after the fact. Look at the configuration for the trunk ports on switch A and B.<br id="v15_" /><br id="ovyo" />switchA<br id="ovyo0" />interface gigabit 0/1<br id="vro71" /> switchport trunk encapsulation dot1q<br id="le013" />switchport mode trunk<br id="le014" />switchport trunk native vlan 5<br id="mnv10" />switchport trunk allowed vlan 5,10<br id="le015" /><br id="le016" />Switch B<br id="le017" />interface gigbbit 0/1<br id="le018" /> switchport trunk encapsulation dot1q<br id="ovyo1" />switchport mode trunk<br id="le019" /> switchport trunk native vlan 5<br id="le0110" /> switchport trunk allowed vlan 5,10,15<br id="cy5m" /><br id="cy5m0" />VLAN 15 is configured on the trunk for Switch B, but not for Switch A. Add the VLAN to switch A.<br id="j25b" /><br id="j25b0" />switchA(config)#interface gigbbit 0/1<br id="nr8u1" /> switchA(config-if)#switchport trunk allowed vlan add 15</p>


<p>Related posts:<ol><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><li><a href='http://routernotes.com/2008/02/19/configure-port-mirrors-on-cisco-switches/' rel='bookmark' title='Permanent Link: Configure Port Mirrors on Cisco Switches'>Configure Port Mirrors on Cisco Switches</a> <small>Switches make network troubleshooting a bit more difficult because not...</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/09/15/troubleshoot-vlan-trunks/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Configure VLAN trunks on Cisco Switches</title>
		<link>http://routernotes.com/2008/08/18/configure-vlan-trunks-on-cisco-switches/</link>
		<comments>http://routernotes.com/2008/08/18/configure-vlan-trunks-on-cisco-switches/#comments</comments>
		<pubDate>Mon, 18 Aug 2008 13:47:25 +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[Catalyst]]></category>
		<category><![CDATA[Cisco]]></category>
		<category><![CDATA[IOS]]></category>
		<category><![CDATA[switch]]></category>
		<category><![CDATA[vlan]]></category>

		<guid isPermaLink="false">http://routernotes.com/?p=63</guid>
		<description><![CDATA[VLAN trunks allow multiple networks to pass over a single physical connection. The trunk connection can be passed between two switches or between a switch and a computer. Before VLANs, each network connection required a separate corresponding physical connection, so using VLAN trunks reduces networking costs by reducing the need for expensive phycial connections and [...]


Related posts:<ol><li><a href='http://routernotes.com/2008/09/15/troubleshoot-vlan-trunks/' rel='bookmark' title='Permanent Link: Troubleshoot VLAN trunks'>Troubleshoot VLAN trunks</a> <small>The syntax for setting up VLAN trunks on Cisco switches...</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><li><a href='http://routernotes.com/2008/02/19/configure-port-mirrors-on-cisco-switches/' rel='bookmark' title='Permanent Link: Configure Port Mirrors on Cisco Switches'>Configure Port Mirrors on Cisco Switches</a> <small>Switches make network troubleshooting a bit more difficult because not...</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>VLAN trunks allow multiple networks to pass over a single physical connection. The trunk connection can be passed between two switches or between a switch and a computer. Before VLANs, each network connection required a separate corresponding physical connection, so using VLAN trunks reduces networking costs by reducing the need for expensive phycial connections and conserving the number of ports used on switches and servers.<br id="oflb" />Configuring VLAN trunks on Cisco switches and routers only takes a few steps.  For an in-depth look at working with vlans, look at Understanding <a id="h-dp" title="VLANs on Cisco Switches" href="http://www.associatedcontent.com/article/760043/understanding_vlans_on_cisco_routers.html?cat=15">VLANs on Cisco Switches</a>.<br id="hfpu" />First verify that the VLANs are created on both switches that are to be connected. Verify VLANs are created with the show vlan command.<br id="otlh" /><br id="gte0" /><strong id="evk3">Step 1: Verify VLANS</strong><br id="gte00" />switchA&gt;show vlan<br id="bmhi" /><br id="bc1w" />VLAN Name                             Status    Ports<br id="zpnf" />&#8212;- &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8212;<br id="ln1w" />5    Accounting                       active    fa0/1<br id="diix" />10  Marketing                         active    fa0/2<br id="gfa2" /><br id="gfa20" />switchB&gt;show vlan<br id="gfa21" /> <br id="gfa22" /> VLAN Name                             Status    Ports<br id="gfa23" /> &#8212;- &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8212;<br id="gfa24" /> 5    Accounting                       active    fa0/1<br id="gfa25" /> 10  Marketing                         active    fa0/2<br id="oflb0" /> <br id="otlh0" />In the output above, we see that vlans 5 and 10 are configured on the switches and enabled on ports. A VLAN trunk between the two switches will allow devices on ports 1 on each switch to communicate and allow devices on ports 2 to communicate. A router is needed for all of the devices to talk to each other.</p>
<p><br id="gte01" /><br id="gte02" /></p>
<div id="attachment_67" class="wp-caption alignnone" style="width: 220px"><a href="http://routernotes.com/wp-content/uploads/2008/08/vlan.jpg" target="_blank"><img class="size-medium wp-image-67" title="vlan" src="http://routernotes.com/wp-content/uploads/2008/08/vlan-300x159.jpg" alt="VLAN diagram on Cisco Switches" width="210" height="111" /></a><p class="wp-caption-text">VLAN diagram on Cisco Switches</p></div>
<p><strong id="dfbn">Step 2: Configure the trunk interfaces</strong> <br id="dfbn0" />For this example, the gigabit interfaces are used for the trunk links.<br id="le01" /><br id="le010" /><strong id="z6x_">Switch A</strong><br id="qv.s" /><strong id="z6x_0">switchA(config)#</strong>interface gigbbit 0/1<br id="kl-b" /><strong id="z6x_1">switchA(config-if)#</strong>switchport mode trunk<br id="gryg" /><br id="le011" /><strong id="z6x_2">Switch B</strong><br id="gryg0" /><strong id="z6x_3">switchB(config)</strong>#interface gigbbit 0/1<br id="gryg1" /> <strong id="z6x_4">switchB(config-if)#</strong>switchport mode trunk<br id="j2-s" /><br id="j2-s0" /><br id="j2-s1" />At this point, the two networks should start communicating across switches once the gigabit interfaces are connected, but it is a good practice to manually configure a few parameters to improve the stability and reliability of the trunk connection.<br id="vro7" /><br id="le012" /><strong id="z6x_5">Switch A</strong><br id="vro70" /><strong id="z6x_6">switchA(config)#</strong>interface gigabit 0/1<br id="vro71" /> <strong id="z6x_7">switchA(config-if)#</strong>switchport trunk encapsulation dot1q<br id="txc9" /><br id="le013" />This command specifies the protocol that the two switches will use to communicate vlan information in the data that is transfered rather than leaving it to auto-negotiate.  Two Cisco switches will negotiate to ISL (Interswitch Switch Link) protocol which is Cisco proprietary rather than 802.1x, a recognized standard that is compatible with almost all switches and servers.<br id="le014" /><br id="mnv1" /><strong id="z6x_8">switchA(config-if)#</strong>switchport trunk native vlan 5<br id="txc90" /><br id="ujii" />The native vlan command specifies the vlan that will be transmitted without VLAN tag information. It does not mtter which vlan is used, but both switches must agree for the link to operate properly. If a native vlan is not specified, then the switches will use vlan 1 by default. Using vlan 1 can cause problems because it is used as the default for so many other things in a switch network.<br id="r34m" /><br id="mnv10" /><strong id="z6x_9">switchA(config-if)#</strong>switchport trunk allowed vlan 5,10<br id="tmxq" />The allowed vlan command specifies which VLANs will be allowed to communicte over the trunk link. Otherwise, unnecessary traffic may go over the link.<br id="le015" /><br id="le016" /><strong id="z6x_10">Switch B</strong><br id="le017" /><strong id="z6x_11">switchB(config)#</strong>interface gigbbit 0/1<br id="le018" /> <strong id="txc91">switchB(config-if)#</strong>switchport trunk encapsulation dot1q<br id="le019" /> <strong id="txc92">switchB(config-if)#</strong>switchport trunk native vlan 5<br id="le0110" /> <strong id="txc93">switchB(config-if)#</strong>switchport trunk allowed vlan 5,10<br id="frtj" /><br id="frtj0" /><br id="frtj1" /><strong id="z6x_12">Adding or removing a VLAN</strong><br id="frtj2" />If VLAN 15 was configured on the switches, then it would need to be added to the trunk port on each switch. <br id="vdfz" /><br id="nr8u" /><strong id="z6x_13">Switch A</strong><br id="nr8u0" /><strong id="z6x_14">switchA(config)#</strong>interface gigbbit 0/1<br id="nr8u1" /> <strong id="z6x_15">switchA(config-if)#</strong>switchport trunk allowed vlan add 15<br id="j2w8" /><br id="o3.l" /><strong id="tdfv">Switch B</strong><br id="o3.l0" /><strong id="tdfv0">switchB(config)#</strong>interface gigbbit 0/1<br id="o3.l1" /> <strong id="tdfv1">switchB(config-if)#</strong>switchport trunk allowed vlan add 15<br id="o3.l2" /><br id="o3.l3" />A VLAN can be removed with a similar command:<br id="o3.l4" /><br id="o3.l5" /><strong id="tdfv2">Switch A</strong><br id="o3.l6" /> <strong id="tdfv3">switchA(config)#</strong>interface gigbbit 0/1<br id="o3.l7" /> <strong id="tdfv4">switchA(config-if)#</strong>switchport trunk allowed vlan remove 15<br id="o3.l8" /> <br id="o3.l9" /> <strong id="tdfv5">Switch B</strong><br id="o3.l10" /> <strong id="tdfv6">switchB(config)#</strong>interface gigbbit 0/1<br id="o3.l11" /> <strong id="tdfv7">switchB(config-if)#</strong>switchport trunk allowed vlan remove 15<br id="o3.l12" /><br id="za6e" /><strong id="tdfv8">Be Carefull</strong><br id="o3.l13" />Verify that you used the add or remove option in the command or it will overwrite the allowed VLANS with only the VLAN that was to be added and communication between the other VLANs wil be broken.<br id="u.sl" /><br id="u.sl0" />For more detailed information, visit Cisco&#8217;s technical article on <a id="c5qf" title="configuring VLAN trunks" href="http://www.cisco.com/en/US/tech/tk389/tk689/technologies_configuration_example09186a008009478e.shtml#nativeios">configuring VLAN trunks</a>. <br id="hfpu0" /></p>


<p>Related posts:<ol><li><a href='http://routernotes.com/2008/09/15/troubleshoot-vlan-trunks/' rel='bookmark' title='Permanent Link: Troubleshoot VLAN trunks'>Troubleshoot VLAN trunks</a> <small>The syntax for setting up VLAN trunks on Cisco switches...</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><li><a href='http://routernotes.com/2008/02/19/configure-port-mirrors-on-cisco-switches/' rel='bookmark' title='Permanent Link: Configure Port Mirrors on Cisco Switches'>Configure Port Mirrors on Cisco Switches</a> <small>Switches make network troubleshooting a bit more difficult because not...</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/08/18/configure-vlan-trunks-on-cisco-switches/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Working with VLANS on Cisco Switches</title>
		<link>http://routernotes.com/2008/05/27/working-with-vlans-on-cisco-switches/</link>
		<comments>http://routernotes.com/2008/05/27/working-with-vlans-on-cisco-switches/#comments</comments>
		<pubDate>Tue, 27 May 2008 16:02:24 +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[switch]]></category>
		<category><![CDATA[vlan]]></category>

		<guid isPermaLink="false">http://routernotes.com/?p=59</guid>
		<description><![CDATA[Historically, creating multiple networks required multiple switches, but VLANs (Virtual Local Area Networks) changed all of that. Now, more than one network can be created on a single switch.
If the switch has 24 ports, then it can have 24 separate networks on it. In most cases, Cisco switches support 1024 or more created VLANs per [...]


Related posts:<ol><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/09/15/troubleshoot-vlan-trunks/' rel='bookmark' title='Permanent Link: Troubleshoot VLAN trunks'>Troubleshoot VLAN trunks</a> <small>The syntax for setting up VLAN trunks on Cisco switches...</small></li><li><a href='http://routernotes.com/2008/02/19/configure-port-mirrors-on-cisco-switches/' rel='bookmark' title='Permanent Link: Configure Port Mirrors on Cisco Switches'>Configure Port Mirrors on Cisco Switches</a> <small>Switches make network troubleshooting a bit more difficult because not...</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>Historically, creating multiple networks required multiple switches, but VLANs (Virtual Local Area Networks) changed all of that. Now, more than one network can be created on a single switch.</p>
<p>If the switch has <a class="link" title="24" href="http://www.associatedcontent.com/theme/1074/24.html">24</a> ports, then it can have <a class="link" title="24" href="http://www.associatedcontent.com/theme/1074/24.html">24</a> separate networks on it. In most cases, Cisco switches support 1024 or more created VLANs per switch. Cisco&#8217;s command structure for creating multiple networks and assigning them to ports is simple and straight forward.</p>
<p><strong>What are VLANs anyway?</strong><br />
VLANs are simply a way of separating traffic logically rather than physically. Each data packet that the switch receives is labeled with a VLAN id that tells the switch which network that the packet belongs to. Sometimes the process is called &#8220;tagging&#8221; because of the VLAN id tag that is added to the data packet. The switchport access VLAN command demonstrated above tells the switch to remove the VLAN id before the data packet is forwarded onto the computer connected to that switch port.</p>
<p><strong>First, create the VLANs.</strong><br />
<strong>switchA&gt;</strong>en<br />
<strong>switchA#</strong>configure terminal<br />
<strong>switchA(config)#</strong>vlan 5<br />
<strong>switchA(config-vlan)#</strong>description Accounting<br />
<strong>switchA(config)#</strong>vlan 10<br />
<strong>switchA(config-vlan)#</strong>description Marketing</p>
<p>This defines two separate networks on the switch that can by used for ports. VLAN 5 could be used for the Accounting department and VLAN 10 could be used for the Marketing department. After the ports are assigned to the correct VLAN, computers in the Accounting department will not be able to see the Marketing department. It will be as if each department had its own switch.</p>
<p><strong>Configure the ports</strong><br />
<strong>switchA(config)#</strong>int fa0/1<br />
<strong>switchA(config-if)#</strong>description Markg-1<br />
<strong>switchA(config-if)</strong>#switchport mode acess<br />
<strong>switchA(config-if)#</strong>switchport access vlan 5<br />
<strong>switchA(config)#</strong>int fa0/2<br />
<strong> switchA(config-if)#</strong>description Acctg-1<br />
<strong> switchA(config-if)#</strong>switchport mode acess<br />
<strong> switchA(config-if)#</strong>switchport access vlan 10</p>
<p><span id="more-59"></span>In some versions of the software, Cisco switches will allow the administrator to create VLAN assignments without first creating VLANs. If the VLAN is not properly created, the switch will discard the packets and the computers on that VLAN will not be able to communicate. The VLANs can be created after the ports are assigned.<br />
<strong>Viewing VLAN information</strong><br />
Information on the switch&#8217;s configured VLANs can be viewed in two ways. First with the show vlan command and second with the show interface command. If the<br />
<strong> switchA&gt;s</strong>how vlan</p>
<p>VLAN Name                             Status    Ports<br />
&#8212;- &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8212;<br />
5    Accounting                       active    fa0/1<br />
10  Marketing                         active    fa0/2</p>
<p><strong>switchA</strong>&gt;show interface status<br />
Port      Name               Status       Vlan       Duplex  Speed<br />
fa0/1    Markg-1            connected   5            full    100<br />
fa0/1    Acctg-1            inactive      10           full    100</p>
<p><strong>VLAN 1 is default:</strong><br />
The default configuration for a Cisco switch is for every port to be on VLAN 1. Even when the the configuration does not show a switchport access vlan command on the port, it is assumed that the port is on VLAN 1. Once a port is assigned to a <a class="link" title="new" href="http://www.associatedcontent.com/theme/1499/new.html">new</a> VLAN, like the Accounting VLAN 5, it can no longer communicate directly with the other unconfigured ports.<strong><br />
</strong></p>


<p>Related posts:<ol><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/09/15/troubleshoot-vlan-trunks/' rel='bookmark' title='Permanent Link: Troubleshoot VLAN trunks'>Troubleshoot VLAN trunks</a> <small>The syntax for setting up VLAN trunks on Cisco switches...</small></li><li><a href='http://routernotes.com/2008/02/19/configure-port-mirrors-on-cisco-switches/' rel='bookmark' title='Permanent Link: Configure Port Mirrors on Cisco Switches'>Configure Port Mirrors on Cisco Switches</a> <small>Switches make network troubleshooting a bit more difficult because not...</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/05/27/working-with-vlans-on-cisco-switches/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Configure Port Channels in IOS</title>
		<link>http://routernotes.com/2008/02/25/configure-port-channels-in-ios/</link>
		<comments>http://routernotes.com/2008/02/25/configure-port-channels-in-ios/#comments</comments>
		<pubDate>Mon, 25 Feb 2008 14:02:28 +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[bandwidth]]></category>
		<category><![CDATA[Cisco]]></category>
		<category><![CDATA[IOS]]></category>
		<category><![CDATA[Port Channel]]></category>
		<category><![CDATA[router]]></category>
		<category><![CDATA[switch]]></category>

		<guid isPermaLink="false">http://routernotes.com/2008/02/25/configure-port-channels-in-ios/</guid>
		<description><![CDATA[Port Channels are a quick way to get more bandwidth by aggregating multiple connections in one virtual pipe. For instance, tie four gigabit ports together into a channel and it becomes a four gigabit connection.
Channels can also offer redundancy fault tolerance for physical connections. If one of the links involved in a channel loses connection, [...]


Related posts:<ol><li><a href='http://routernotes.com/2008/02/19/configure-port-mirrors-on-cisco-switches/' rel='bookmark' title='Permanent Link: Configure Port Mirrors on Cisco Switches'>Configure Port Mirrors on Cisco Switches</a> <small>Switches make network troubleshooting a bit more difficult because not...</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><li><a href='http://routernotes.com/2007/11/29/showing-the-configuration-at-the-interface-level/' rel='bookmark' title='Permanent Link: Showing the configuration at the interface level'>Showing the configuration at the interface level</a> <small>One of the pains about Cisco is that once you...</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>Port Channels are a quick way to get more bandwidth by aggregating multiple connections in one virtual pipe. For instance, tie four gigabit ports together into a channel and it becomes a four gigabit connection.</p>
<p>Channels can also offer redundancy fault tolerance for physical connections. If one of the links involved in a channel loses connection, the channel will continue on with the existing ports and three quarters of the bandwidth.</p>
<p>Ports involved in a channel must be on the same blade in a modular switch like a Catalyst 4500 or 6500.</p>
<p>Configuring port channels has become much easier in recent IOS versions. First, designate the desired ports into a channel group.<br />
<!-- START CUSTOM WIDGETBUCKS CODE -->
<div><script src="http://api.widgetbucks.com/script/ads.js?uid=MnJa8QMcIcC0vVsZ"></script></div>
<p><!-- END CUSTOM WIDGETBUCKS CODE --><br />
My_Switch(config)#<strong>interface GigabitEthernet2/1</strong><br />
My_Switch(config-if)#<strong>description Core Connection</strong><br />
My_Switch(config-if)#<strong>channel-group 2 mode desirable</strong></p>
<p>My_Switch(config)#<strong>interface GigabitEthernet2/2</strong><br />
My_Switch(config-if)#<strong>description Core Connection</strong><br />
My_Switch(config-if)#<strong>channel-group 2 mode desirable</strong></p>
<p><span id="more-44"></span>The desirable option will create a channel to another Cisco switch in etherchannel format and drop a single channel if necessary. In contrast, using the on option would force a port channel, but would drop the entire channel if a single link.</p>
<p class="MsoNormal">Etherchannel is Cisco&#8217;s proprietary channel protocol, sometimes called PAGP or Port Aggregation Protocol. In order to create channel with a server or non-Cisco switch, the channel will have to be configured in LACP (Link Aggregation Control Protocol) format, which is a multivendor standard.</p>
<p class="MsoNormal">My_Switch(config)#interface GigabitEthernet2/1<br />
My_Switch(config-if)#description Core Connection<br />
My_Switch(config-if)#channel-group 2 mode passive</p>
<p class="MsoNormal">My_Switch(config)#interface GigabitEthernet2/2<br />
My_Switch(config-if)#description Core Connection<br />
My_Switch(config-if)#channel-group 2 mode passive</p>
<p class="MsoNormal">Using the active flag instead of the passive mode option will force the ports into a LACP channel without negotiation much like the on option for PAGP. The entire channel will go down if a single line is disconnected and will not be fault tolerant.</p>
<p>Next, create a virtual port channel interface.</p>
<p>My_Switch(config)#i<strong>nterface Port-channel4</strong><br />
My_Switch(config-if)#<strong>description Core Connection</strong><br />
My_Switch(config-if)#<strong>switchport</strong></p>
<p>The virtual port channel configuration merely controls the aggregate port. For instance, if the port-channel interface is disabled, or shut down as Cisco calls it, then the channel will not work even though all four member ports are enabled.</p>
<p>Display active channels with the show neighbor command.</p>
<p>My_switch&gt; <strong>show pagp neighbors</strong><br />
<em> &lt;output ommitted&gt;</em></p>
<p>My_switch&gt; <strong>show lacp neighbors</strong><br />
<em> &lt;output ommitted&gt;</em></p>
<p>The output gives much detail about the channels and their state.</p>
<p><strong>Disable channels</strong><br />
Channels are a handy tool, but most Cisco switches ship in auto mode by default and that can sometimes causes problems with workstations that do not understand how to disregard the channel auto-negotiation. The switchport mode access command disables channel negotiation as well as disabling vlan trunking negotiation. It prepares the port for use by a single workstation.</p>
<p>My_Switch(config)#<strong>interface gig6/5</strong><br />
My_Switch(config-if)#<strong>description My favorite PC</strong><br />
My_Switch(config-if)#<strong>switchport mode access</strong></p>
<p>Channels are often a quick way to add bandwidth and add redundancy with existing hardware.<br />
<strong>Related Posts:</strong><br />
<a href="ttp://routernotes.com/2007/10/01/configuring-ssh-on-cisco-routersswitches-how-to/" title="SSH access in IOS">Configuring Secure Shell (SSH) in IOS </a><br />
<script type="text/javascript"><!-- google_ad_client = "pub-9512234219429601"; /* 468x60, created 2/4/08 */ google_ad_slot = "5860377475"; google_ad_width = 468; google_ad_height = 60; //--> </script><br />
<script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript"> </script></p>


<p>Related posts:<ol><li><a href='http://routernotes.com/2008/02/19/configure-port-mirrors-on-cisco-switches/' rel='bookmark' title='Permanent Link: Configure Port Mirrors on Cisco Switches'>Configure Port Mirrors on Cisco Switches</a> <small>Switches make network troubleshooting a bit more difficult because not...</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><li><a href='http://routernotes.com/2007/11/29/showing-the-configuration-at-the-interface-level/' rel='bookmark' title='Permanent Link: Showing the configuration at the interface level'>Showing the configuration at the interface level</a> <small>One of the pains about Cisco is that once you...</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/25/configure-port-channels-in-ios/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<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>
		<item>
		<title>Authentication in Cisco IOS</title>
		<link>http://routernotes.com/2008/02/11/authentication-in-cisco-ios/</link>
		<comments>http://routernotes.com/2008/02/11/authentication-in-cisco-ios/#comments</comments>
		<pubDate>Mon, 11 Feb 2008 14:13:57 +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[Authenticaton]]></category>
		<category><![CDATA[Cisco]]></category>
		<category><![CDATA[IOS]]></category>
		<category><![CDATA[Radius]]></category>
		<category><![CDATA[router]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[switch]]></category>
		<category><![CDATA[TACACS+]]></category>

		<guid isPermaLink="false">http://routernotes.com/2008/02/11/authentication-in-cisco-ios/</guid>
		<description><![CDATA[Adding username and password authentication to Cisco routers and switches doesn&#8217;t take more than a few minutes, does not require a software upgrade in most cases, and will increase router and switch security.
Authentication can be passed to a central server so that users and passwords can be created and modified in one spot without having [...]


Related posts:<ol><li><a href='http://routernotes.com/2007/10/01/configuring-ssh-on-cisco-routersswitches-how-to/' rel='bookmark' title='Permanent Link: Configuring SSH on Cisco routers/switches (How-to)'>Configuring SSH on Cisco routers/switches (How-to)</a> <small>With all of the security problems out there today, it...</small></li><li><a href='http://routernotes.com/2007/11/29/showing-the-configuration-at-the-interface-level/' rel='bookmark' title='Permanent Link: Showing the configuration at the interface level'>Showing the configuration at the interface level</a> <small>One of the pains about Cisco is that once you...</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>Adding username and password authentication to Cisco routers and switches doesn&#8217;t take more than a few minutes, does not require a software upgrade in most cases, and will increase router and switch security.<br />
Authentication can be passed to a central server so that users and passwords can be created and modified in one spot without having to change the configuring on every router and switch in the company. Additionally, this type of authentication is needed to <a href="http://routernotes.com/2007/10/01/configuring-ssh-on-cisco-routersswitches-how-to/" title="SSH configuration How-to">configure Secure Shell</a> access to routers and switches, which encrypts administration traffic. Cisco supports username and password authentication on almost every device so a software upgrade is probably not needed before configuration. But Secure Shell requires a software upgrade in many cases.<br />
A nice example for configuring RADIUS authentication on routers and switches or passing authentication back to the company&#8217;s <a href="http://en.wikipedia.org/wiki/Active_Directory" id="o32j" title="Active Directory" target="_blank">Active Directory</a> can be found at <a href="http://articles.techrepublic.com.com/5100-1035-6182945.html" id="v-q7" title="Configuring RADIUS and Active Directory Authentication">TechRepublic</a>..<br />
In many cases, administrators just configure a telnet password for their network devices, which is the least secure way to permit access. Here is an example of the way those routers are configured.</p>
<p>RouterA#<strong>configure terminal</strong><br />
RouterA(config)# <strong>line vty 0 4</strong><br />
<em>A router&#8217;s telnet interface is called a vty, short for Virtual Teletype Terminal.</em><br />
RouterA(config)# <strong>password letmein</strong><br />
RouterA(config)# <strong>end</strong><br />
This will allow access to router via telnet by just the password <em>letmein</em>. Below is an example of configuring a router for username and password authentication from a local database stored on the router itself. If you have more than one router or switch, each router will need to be configured. Either way is more secure than just a password by itself. A more complex password increases security, so use passwords that are difficult to guess and create usernames that are not as simple to guess <em>like admin </em>or <em>cisco</em>..</p>
<p>RouterA#<strong>configure terminal</strong><br />
RouterA(config)# <strong>username Jane password Doe</strong><br />
RouterA(config)# <strong>username Bob password Smith</strong><br />
RouterA(config)# <strong>aaa new-model</strong><br />
RouterA(config)# <strong>aaa authentication login default local</strong><br />
RouterA(config)# <strong>end</strong><br />
<!-- START CUSTOM WIDGETBUCKS CODE -->
<div><script src="http://api.widgetbucks.com/script/ads.js?uid=jM8onWlI839Sq4Cw"></script></div>
<p><!-- END CUSTOM WIDGETBUCKS CODE --></p>
<p>The configuration creates the usernames <em>Jane </em>and <em>Bob </em>with the passwords <em>Doe </em>and <em>Smith </em>respectively. AAA stands for authentication, authorization and accounting. The line &#8216;<strong>aaa authentication login default local&#8217; </strong>specifies that local authentication should be used for login by default<strong>. </strong>The passwords will show up in the configuration just as you typed them and be readable by everyone that has access to the router configuration file unless the service password-encryption command is used. For example:</p>
<p>RouterA#<strong>configure terminal</strong><br />
RouterA(config)# <strong>service password-encryption</strong><br />
RouterA(config)# <strong>end</strong></p>
<p>Now your passwords will be encrypted in the configuration. There are tools available that can decrypt these passwords, so configurations should still be stored in a secure place.</p>
<p>Here is a look at configuring TACACS+ authentication, a centralized authentication protocol that passes authentication of to a server. In this example, the switch or router will first look to TACACS+ for authentication and then if that fails, it will look in the local user database. This will give you access if your network device loses network connectivity to the TACACS+ server. This example assumes there is a working TACACS+ server already running on your network. If not, notes on configuring a TACACS+ server on linux can be found <a href="http://www.debianhelp.co.uk/tacas.htm" id="tior" title="build a TACACS+ server in Debian">here.</a></p>
<p>RouterA#<strong>configure terminal </strong><br />
RouterA(config)# <strong>aaa new-model</strong><br />
RouterA(config)# <strong>aaa authentication login default group tacacs+ local</strong><br />
RouterA(config)# <strong>tacacs-server host 10.1.1.1</strong><br />
RouterA(config)# <strong>tacacs-server host 10.1.1.2</strong><br />
RouterA(config)# <strong>tacacs-server key SecretPassword</strong><br />
RouterA(config)# <strong>end</strong></p>
<p>If the switch or router has access to the authentication server, then the next time that you log in, the device should prompt you for a username rather than just a password. Complete details on <a href="http://www.cisco.com/en/US/products/ps6350/products_configuration_guide_chapter09186a00804fdcec.html" id="y-76" title="configuring aaa access at cisco.com">configuring aaa access can be found on Cisco&#8217;s website</a>.</p>


<p>Related posts:<ol><li><a href='http://routernotes.com/2007/10/01/configuring-ssh-on-cisco-routersswitches-how-to/' rel='bookmark' title='Permanent Link: Configuring SSH on Cisco routers/switches (How-to)'>Configuring SSH on Cisco routers/switches (How-to)</a> <small>With all of the security problems out there today, it...</small></li><li><a href='http://routernotes.com/2007/11/29/showing-the-configuration-at-the-interface-level/' rel='bookmark' title='Permanent Link: Showing the configuration at the interface level'>Showing the configuration at the interface level</a> <small>One of the pains about Cisco is that once you...</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/11/authentication-in-cisco-ios/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
