<?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>Techonia.com &#187; Cisco</title>
	<atom:link href="http://www.techonia.com/category/cisco/feed" rel="self" type="application/rss+xml" />
	<link>http://www.techonia.com</link>
	<description>News, Tutorials, and How-tos about Technology</description>
	<lastBuildDate>Fri, 30 Jul 2010 11:19:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>How to create vlan on Linux (with Cisco Catalyst Switch)</title>
		<link>http://www.techonia.com/create-vlan-on-linux-with-cisco-catalyst-switch</link>
		<comments>http://www.techonia.com/create-vlan-on-linux-with-cisco-catalyst-switch#comments</comments>
		<pubDate>Tue, 09 Mar 2010 13:50:08 +0000</pubDate>
		<dc:creator>Fuad NAHDI</dc:creator>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Trunk]]></category>
		<category><![CDATA[Vlan]]></category>

		<guid isPermaLink="false">http://www.techonia.com/?p=1227</guid>
		<description><![CDATA[In this article I want to share to you on how to create and configure vlan on Linux through Cisco Catalyst Switch]]></description>
			<content:encoded><![CDATA[<div class="socialize-in-content" style="float:left;"><div class="socialize-in-button-left"><script type="text/javascript">
			<!-- 
			tweetmeme_url = "http://www.techonia.com/create-vlan-on-linux-with-cisco-catalyst-switch";
			tweetmeme_source = "techonia";
			//-->
		</script>
		<script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js"></script></div></div><div class="KonaBody"><p>In this article I want to share to you on how to create and configure vlan on Linux through Cisco Catalyst Switch.</p>
<p><strong>Requirements:</strong></p>
<p>1. Linux installed on a PC with one or more NICs (Network Interface Card). I use Centos 5.4 using 2.6.18-164.11.1.el5PAE kernel. It should be applicable on other Linux distros such as Slackware, Ubuntu, Fedora, Debian, etc.<br />
2. Cisco Catalyst Switch 2950<br />
3. 2 PC/Laptop running Windows/Linux/BSD/MacOSX<br />
4. 3 straight cables</p>
<p>This tutorial is based-on network diagram below:<br />
<a class="highslide" onclick="return vz.expand(this)" href="http://www.techonia.com/wp-content/uploads/2010/03/Linux-Vlan-Trunking-Topology.png"><img src="http://www.techonia.com/wp-content/uploads/2010/03/Linux-Vlan-Trunking-Topology-300x300.png" alt="" title="Linux-Vlan-Trunking-Topology" width="300" height="300" class="aligncenter size-medium wp-image-1228" /></a><br />
<span id="more-1227"></span><br />
Here are the full steps.</p>
<p><strong>1. Load 802.1q module into the system</strong></p>
<p>By default the 802.1q module is not loaded so we firstly have to load it. You can check whether it is already loaded or not by using &#8216;lsmod&#8217; command.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">lsmod</span> <span style="color: #000000; font-weight: bold;">|</span><span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #000000;">802</span></pre></div></div>

<p>If there is nothing shown by lsmod command, it means the module has not been loaded yet. Run &#8216;modprobe&#8217; to load it.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">modprobe 8021q</pre></div></div>

<p>Make sure the module was successfully loaded by running the &#8216;lsmod&#8217; again</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">lsmod</span> <span style="color: #000000; font-weight: bold;">|</span><span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #000000;">802</span>
8021q                  <span style="color: #000000;">24649</span>  <span style="color: #000000;">0</span></pre></div></div>

<p>If you see something similar like above, the 8021q has been successfully loaded.</p>
<p><strong>2. Create vlan interface</strong></p>
<p>We will use eth1 interface in the Linux box. We have to bring the interface up without IP address assigned to it before we can use it.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">ifconfig</span> eth1 0.0.0.0 up</pre></div></div>

<p>We will create interface vlan 11 and vlan 12 on this eth1 interface. To create a vlan interface, use &#8216;vconfig add&#8217; command as below:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">vconfig add eth1 <span style="color: #000000;">11</span>
Added VLAN with VID == <span style="color: #000000;">11</span> to IF -:eth1:-
&nbsp;
vconfig add eth1 <span style="color: #000000;">12</span>
Added VLAN with VID == <span style="color: #000000;">12</span> to IF -:eth1:-</pre></div></div>

<p>These commands above will create devices eth1.11 and eth1.12 to your system. Linux will consider these as another network devices so you can configure and assign IP address like other.<br />
You also see the vlan interfaces by typing &#8216;ifconfig -a&#8217; command.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">ifconfig</span> <span style="color: #660033;">-a</span>
&nbsp;
eth1.11   Link encap:Ethernet  HWaddr 00:<span style="color: #000000;">30</span>:<span style="color: #000000;">48</span>:BF:4E:BD
          BROADCAST MULTICAST  MTU:<span style="color: #000000;">1500</span>  Metric:<span style="color: #000000;">1</span>
          RX packets:<span style="color: #000000;">0</span> errors:<span style="color: #000000;">0</span> dropped:<span style="color: #000000;">0</span> overruns:<span style="color: #000000;">0</span> frame:<span style="color: #000000;">0</span>
          TX packets:<span style="color: #000000;">0</span> errors:<span style="color: #000000;">0</span> dropped:<span style="color: #000000;">0</span> overruns:<span style="color: #000000;">0</span> carrier:<span style="color: #000000;">0</span>
          collisions:<span style="color: #000000;">0</span> txqueuelen:<span style="color: #000000;">0</span>
          RX bytes:<span style="color: #000000;">0</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">0.0</span> b<span style="color: #7a0874; font-weight: bold;">&#41;</span>  TX bytes:<span style="color: #000000;">0</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">0.0</span> b<span style="color: #7a0874; font-weight: bold;">&#41;</span>
&nbsp;
eth1.12   Link encap:Ethernet  HWaddr 00:<span style="color: #000000;">30</span>:<span style="color: #000000;">48</span>:BF:4E:BD
          BROADCAST MULTICAST  MTU:<span style="color: #000000;">1500</span>  Metric:<span style="color: #000000;">1</span>
          RX packets:<span style="color: #000000;">0</span> errors:<span style="color: #000000;">0</span> dropped:<span style="color: #000000;">0</span> overruns:<span style="color: #000000;">0</span> frame:<span style="color: #000000;">0</span>
          TX packets:<span style="color: #000000;">0</span> errors:<span style="color: #000000;">0</span> dropped:<span style="color: #000000;">0</span> overruns:<span style="color: #000000;">0</span> carrier:<span style="color: #000000;">0</span>
          collisions:<span style="color: #000000;">0</span> txqueuelen:<span style="color: #000000;">0</span>
          RX bytes:<span style="color: #000000;">0</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">0.0</span> b<span style="color: #7a0874; font-weight: bold;">&#41;</span>  TX bytes:<span style="color: #000000;">0</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">0.0</span> b<span style="color: #7a0874; font-weight: bold;">&#41;</span></pre></div></div>

<p><strong>3. Assign IP address to the vlan interfaces</strong></p>
<p>The vlan  interfaces were successfully created on the previous step. Now we assign IP address on those interfaces using ifconfig command as below:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">ifconfig</span> eth1.11 192.168.11.254 netmask 255.255.255.0 up
<span style="color: #c20cb9; font-weight: bold;">ifconfig</span> eth1.12 192.168.12.254 netmask 255.255.255.0 up</pre></div></div>

<p>Make sure that the IP addresses were assigned successfully on the interfaces.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">ifconfig</span> eth1.11
eth1.11   Link encap:Ethernet  HWaddr 00:<span style="color: #000000;">30</span>:<span style="color: #000000;">48</span>:BF:4E:BD
          inet addr:192.168.11.254  Bcast:192.168.11.255  Mask:255.255.255.0
          UP BROADCAST MULTICAST  MTU:<span style="color: #000000;">1500</span>  Metric:<span style="color: #000000;">1</span>
          RX packets:<span style="color: #000000;">0</span> errors:<span style="color: #000000;">0</span> dropped:<span style="color: #000000;">0</span> overruns:<span style="color: #000000;">0</span> frame:<span style="color: #000000;">0</span>
          TX packets:<span style="color: #000000;">0</span> errors:<span style="color: #000000;">0</span> dropped:<span style="color: #000000;">0</span> overruns:<span style="color: #000000;">0</span> carrier:<span style="color: #000000;">0</span>
          collisions:<span style="color: #000000;">0</span> txqueuelen:<span style="color: #000000;">0</span>
          RX bytes:<span style="color: #000000;">0</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">0.0</span> b<span style="color: #7a0874; font-weight: bold;">&#41;</span>  TX bytes:<span style="color: #000000;">0</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">0.0</span> b<span style="color: #7a0874; font-weight: bold;">&#41;</span>
&nbsp;
<span style="color: #c20cb9; font-weight: bold;">ifconfig</span> eth1.12
eth1.12   Link encap:Ethernet  HWaddr 00:<span style="color: #000000;">30</span>:<span style="color: #000000;">48</span>:BF:4E:BD
          inet addr:192.168.12.254  Bcast:192.168.12.255  Mask:255.255.255.0
          UP BROADCAST MULTICAST  MTU:<span style="color: #000000;">1500</span>  Metric:<span style="color: #000000;">1</span>
          RX packets:<span style="color: #000000;">0</span> errors:<span style="color: #000000;">0</span> dropped:<span style="color: #000000;">0</span> overruns:<span style="color: #000000;">0</span> frame:<span style="color: #000000;">0</span>
          TX packets:<span style="color: #000000;">0</span> errors:<span style="color: #000000;">0</span> dropped:<span style="color: #000000;">0</span> overruns:<span style="color: #000000;">0</span> carrier:<span style="color: #000000;">0</span>
          collisions:<span style="color: #000000;">0</span> txqueuelen:<span style="color: #000000;">0</span>
          RX bytes:<span style="color: #000000;">0</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">0.0</span> b<span style="color: #7a0874; font-weight: bold;">&#41;</span>  TX bytes:<span style="color: #000000;">0</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">0.0</span> b<span style="color: #7a0874; font-weight: bold;">&#41;</span></pre></div></div>

<p>Until this step, creating and configuring vlans have been done on the Linux box. Now we are going to configure vlan and trunk on the Cisco Catalyst switch.</p>
<p><strong>4. Configure cisco catalyst switch, add vlan database, configure interface access vlan and trunk</strong></p>
<p>As said before, we use vlan 11 and vlan 12 on this tutorial. So those vlan must be added into the vlan database of the switch.</p>

<div class="wp_syntax"><div class="code"><pre class="cisco" style="font-family:monospace;">switch#conf terminal
Enter configuration commands, one per line.  End with CNTL/Z.
switch(config)#vlan 11
switch(config-vlan)#name test-vlan11
switch(config-vlan)#exit
switch(config)#vlan 12
switch(config-vlan)#name test-vlan12
switch(config-vlan)#exit
switch(config)#exit
switch#wr mem
Building configuration...
[OK]
&nbsp;
&nbsp;
switch#show vlan | include test-vlan
11   test-vlan11                      active
12   test-vlan12                      active</pre></div></div>

<p>Vlan 11 and 12 have been successfully added to the database and active.</p>
<p>Now we have to configure 3 ports in the cisco catalyst switch. 1 port is for trunk between the switch and Linux box and 2 ports are for PC-A and PC-B.<br />
We will use port Fa0/16 as trunk port and Fa0/14 and Fa0/15 as vlan access port connected to PC-A and PC-B respectively. Below are the commands:</p>

<div class="wp_syntax"><div class="code"><pre class="cisco" style="font-family:monospace;">switch#conf terminal
Enter configuration commands, one per line.  End with CNTL/Z.
switch(config)#int f0/14
switch(config-if)#description To_PC-A
switch(config-if)#swi acc vlan 11
switch(config-if)#no shutdown
switch(config-if)#exit
switch(config)#int f0/15
switch(config-if)#description To_PC-B
switch(config-if)#swi acc vlan 12
switch(config-if)#no shutdown
switch(config-if)#exit
switch(config)#int f0/16
switch(config-if)#description Trunk_To_Linux_Router
switch(config-if)#switchport trunk allowed vlan 11,12
switch(config-if)#switchport mode trunk
switch(config-if)#no shutdown
switch(config-if)#exit
switch(config)#exit
switch#wr mem
Building configuration...
[OK]
switch#
&nbsp;
&nbsp;
switch#show running-config interface f0/14
Building configuration...
&nbsp;
Current configuration : 82 bytes
!
interface FastEthernet0/14
 description To_PC-A
 switchport access vlan 11
end
&nbsp;
switch#show running-config interface f0/15
Building configuration...
&nbsp;
Current configuration : 82 bytes
!
interface FastEthernet0/15
 description To_PC-B
 switchport access vlan 12
end
&nbsp;
switch#show running-config interface f0/16
Building configuration...
&nbsp;
Current configuration : 129 bytes
!
interface FastEthernet0/16
 description Trunk_To_Linux_Router
 switchport trunk allowed vlan 11,12
 switchport mode trunk
end
&nbsp;
switch#</pre></div></div>

<p>The configurations on both Linux box and Switch have completed.<br />
Now it is the time to test whether PC-A and PC-B can ping to the same network on the Linux box. Make sure the cables are connected properly to each ports on the devices.</p>
<p><strong>5. Test ping to Linux box using vlan ip address</strong></p>
<p>Test from PC-A:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">C:\Users\Fuad NAHDI<span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #c20cb9; font-weight: bold;">ping</span> 192.168.11.254
&nbsp;
Pinging 192.168.11.254 with <span style="color: #000000;">32</span> bytes of data:
Reply from 192.168.11.254: <span style="color: #007800;">bytes</span>=<span style="color: #000000;">32</span> <span style="color: #007800;"><span style="color: #000000; font-weight: bold;">time</span></span>=1ms <span style="color: #007800;">TTL</span>=<span style="color: #000000;">64</span>
Reply from 192.168.11.254: <span style="color: #007800;">bytes</span>=<span style="color: #000000;">32</span> <span style="color: #000000; font-weight: bold;">time</span><span style="color: #000000; font-weight: bold;">&lt;</span>1ms <span style="color: #007800;">TTL</span>=<span style="color: #000000;">64</span>
Reply from 192.168.11.254: <span style="color: #007800;">bytes</span>=<span style="color: #000000;">32</span> <span style="color: #007800;"><span style="color: #000000; font-weight: bold;">time</span></span>=1ms <span style="color: #007800;">TTL</span>=<span style="color: #000000;">64</span>
Reply from 192.168.11.254: <span style="color: #007800;">bytes</span>=<span style="color: #000000;">32</span> <span style="color: #000000; font-weight: bold;">time</span><span style="color: #000000; font-weight: bold;">&lt;</span>1ms <span style="color: #007800;">TTL</span>=<span style="color: #000000;">64</span>
&nbsp;
Ping statistics <span style="color: #000000; font-weight: bold;">for</span> 192.168.11.254:
    Packets: Sent = <span style="color: #000000;">4</span>, Received = <span style="color: #000000;">4</span>, Lost = <span style="color: #000000;">0</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000; font-weight: bold;">%</span> loss<span style="color: #7a0874; font-weight: bold;">&#41;</span>,
Approximate round trip <span style="color: #7a0874; font-weight: bold;">times</span> <span style="color: #000000; font-weight: bold;">in</span> milli-seconds:
    Minimum = 0ms, Maximum = 1ms, Average = 0ms
&nbsp;
C:\Users\Fuad NAHDI<span style="color: #000000; font-weight: bold;">&gt;</span></pre></div></div>

<p>Test from PC-B:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">C:\Users\Fuad NAHDI<span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #c20cb9; font-weight: bold;">ping</span> 192.168.12.254
&nbsp;
Pinging 192.168.12.254 with <span style="color: #000000;">32</span> bytes of data:
Reply from 192.168.12.254: <span style="color: #007800;">bytes</span>=<span style="color: #000000;">32</span> <span style="color: #007800;"><span style="color: #000000; font-weight: bold;">time</span></span>=2ms <span style="color: #007800;">TTL</span>=<span style="color: #000000;">64</span>
Reply from 192.168.12.254: <span style="color: #007800;">bytes</span>=<span style="color: #000000;">32</span> <span style="color: #000000; font-weight: bold;">time</span><span style="color: #000000; font-weight: bold;">&lt;</span>1ms <span style="color: #007800;">TTL</span>=<span style="color: #000000;">64</span>
Reply from 192.168.12.254: <span style="color: #007800;">bytes</span>=<span style="color: #000000;">32</span> <span style="color: #000000; font-weight: bold;">time</span><span style="color: #000000; font-weight: bold;">&lt;</span>1ms <span style="color: #007800;">TTL</span>=<span style="color: #000000;">64</span>
Reply from 192.168.12.254: <span style="color: #007800;">bytes</span>=<span style="color: #000000;">32</span> <span style="color: #000000; font-weight: bold;">time</span><span style="color: #000000; font-weight: bold;">&lt;</span>1ms <span style="color: #007800;">TTL</span>=<span style="color: #000000;">64</span>
&nbsp;
Ping statistics <span style="color: #000000; font-weight: bold;">for</span> 192.168.12.254:
    Packets: Sent = <span style="color: #000000;">4</span>, Received = <span style="color: #000000;">4</span>, Lost = <span style="color: #000000;">0</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000; font-weight: bold;">%</span> loss<span style="color: #7a0874; font-weight: bold;">&#41;</span>,
Approximate round trip <span style="color: #7a0874; font-weight: bold;">times</span> <span style="color: #000000; font-weight: bold;">in</span> milli-seconds:
    Minimum = 0ms, Maximum = 2ms, Average = 0ms</pre></div></div>

<p><strong>6. Make everything active at boot</strong></p>
<p>Everything we have done above is temporary configuration, meaning that it will be cleared from configuration when we reboot or shutdown the linux box.<br />
To make it permanent or active at boot, simply add the following lines into the rc.local file (e.g Centos: /etc/rc.local ; Slackware: /etc/rc.d/rc.local):</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">modprobe 8021q
<span style="color: #c20cb9; font-weight: bold;">ifconfig</span> eth1 0.0.0.0 up
vconfig add eth1 <span style="color: #000000;">11</span>
vconfig add eth1 <span style="color: #000000;">12</span>
<span style="color: #c20cb9; font-weight: bold;">ifconfig</span> eth1.11 192.168.11.254 netmask 255.255.255.0 up
<span style="color: #c20cb9; font-weight: bold;">ifconfig</span> eth1.12 192.168.12.254 netmask 255.255.255.0 up</pre></div></div>

<p>Everything has been done. Now you should understand on how to create and configure vlan on Linux and Cisco Catalyst switch.</p>
<p>If you find this tutorial is helpful please kindly share to others.</p>
</div><h4>Incoming search terms for this post:</h4><ul><li><a href="http://www.techonia.com/create-vlan-on-linux-with-cisco-catalyst-switch" title="linux vlan tutorial">linux vlan tutorial</a></li><li><a href="http://www.techonia.com/create-vlan-on-linux-with-cisco-catalyst-switch" title="how to configure vlan on linux">how to configure vlan on linux</a></li><li><a href="http://www.techonia.com/create-vlan-on-linux-with-cisco-catalyst-switch" title="centos vlan howto">centos vlan howto</a></li><li><a href="http://www.techonia.com/create-vlan-on-linux-with-cisco-catalyst-switch" title="linux vlan howto">linux vlan howto</a></li><li><a href="http://www.techonia.com/create-vlan-on-linux-with-cisco-catalyst-switch" title="linux vlan">linux vlan</a></li><li><a href="http://www.techonia.com/create-vlan-on-linux-with-cisco-catalyst-switch" title="linux vlan trunk">linux vlan trunk</a></li><li><a href="http://www.techonia.com/create-vlan-on-linux-with-cisco-catalyst-switch" title="vlan linux">vlan linux</a></li><li><a href="http://www.techonia.com/create-vlan-on-linux-with-cisco-catalyst-switch" title="slackware vlan">slackware vlan</a></li><li><a href="http://www.techonia.com/create-vlan-on-linux-with-cisco-catalyst-switch" title="linux vlan cisco">linux vlan cisco</a></li><li><a href="http://www.techonia.com/create-vlan-on-linux-with-cisco-catalyst-switch" title="fedora 13 vlan">fedora 13 vlan</a></li><li><a href="http://www.techonia.com/create-vlan-on-linux-with-cisco-catalyst-switch" title="vlan linux tutorial">vlan linux tutorial</a></li><li><a href="http://www.techonia.com/create-vlan-on-linux-with-cisco-catalyst-switch" title="802 1q cisco vconfig linux">802 1q cisco vconfig linux</a></li><li><a href="http://www.techonia.com/create-vlan-on-linux-with-cisco-catalyst-switch" title="how to create vlans centos 5 4">how to create vlans centos 5 4</a></li><li><a href="http://www.techonia.com/create-vlan-on-linux-with-cisco-catalyst-switch" title="ubuntu cisco vlan truink">ubuntu cisco vlan truink</a></li><li><a href="http://www.techonia.com/create-vlan-on-linux-with-cisco-catalyst-switch" title="vlan cisco linux">vlan cisco linux</a></li></ul><!-- SEO SearchTerms Tagging 2 plugin took 8.796 ms -->]]></content:encoded>
			<wfw:commentRss>http://www.techonia.com/create-vlan-on-linux-with-cisco-catalyst-switch/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>How to set cisco interface switch to default configuration</title>
		<link>http://www.techonia.com/cisco-interface-switch-default-configuration</link>
		<comments>http://www.techonia.com/cisco-interface-switch-default-configuration#comments</comments>
		<pubDate>Wed, 04 Nov 2009 08:31:29 +0000</pubDate>
		<dc:creator>Fuad NAHDI</dc:creator>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[Catalyst]]></category>

		<guid isPermaLink="false">http://www.katalis.web.id/?p=536</guid>
		<description><![CDATA[You want to set to default configuration of cisco interface switches.
If you have a running cisco switch, often you have some configuration commands on each interfaces. Basically you can disable the command using the 'no' negation]]></description>
			<content:encoded><![CDATA[<div class="socialize-in-content" style="float:left;"><div class="socialize-in-button-left"><script type="text/javascript">
			<!-- 
			tweetmeme_url = "http://www.techonia.com/cisco-interface-switch-default-configuration";
			tweetmeme_source = "techonia";
			//-->
		</script>
		<script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js"></script></div></div><div class="KonaBody"><p>You want to set to default configuration of cisco interface switches.<br />
If you have a running cisco switch, often you have some configuration commands on each interfaces. Basically you can disable the command using the &#8216;no&#8217; negation. If there is only one line or two, its ok but if there are more than that, it would take some times to disable one by one.<span id="more-536"></span><br />
To set to default config, you can use &#8216;default interface [interface-number]&#8216; command in the config enable mode terminal.<br />
Here is an example.<br />
Let&#8217;s say we want to set interface Fa0/20 of a cisco catalyst to default configuration.</p>

<div class="wp_syntax"><div class="code"><pre class="cisco" style="font-family:monospace;">core-swc02#sh run int f0/20
Building configuration...
&nbsp;
Current configuration : 160 bytes
!
interface FastEthernet0/20
 description TrunkJKT-SBY
 switchport trunk encapsulation dot1q
 switchport trunk allowed vlan 834,835
 switchport mode trunk
end</pre></div></div>

<p>As you can see above, there are four configuration lines inside it.<br />
If we want to set interface FastEthernet0/20 to default, run &#8220;default interface f0/20&#8243; as below:</p>

<div class="wp_syntax"><div class="code"><pre class="cisco" style="font-family:monospace;">core-swc02#conf t
core-swc02(config)#default int f0/20
Interface FastEthernet0/20 set to default configuration</pre></div></div>

<p>To make sure it has been set to default, check the run config for interface fastethernet0/20:</p>

<div class="wp_syntax"><div class="code"><pre class="cisco" style="font-family:monospace;">core-swc02(config)#do sh run int f0/20
Building configuration...
&nbsp;
Current configuration : 69 bytes
!
interface FastEthernet0/20
 switchport mode dynamic desirable
end</pre></div></div>

<p>Hope this would be useful.</p>
</div><h4>Incoming search terms for this post:</h4><ul><li><a href="http://www.techonia.com/cisco-interface-switch-default-configuration" title="default interface number-4 not up">default interface number-4 not up</a></li><li><a href="http://www.techonia.com/cisco-interface-switch-default-configuration" title="interface switch">interface switch</a></li><li><a href="http://www.techonia.com/cisco-interface-switch-default-configuration" title="cisco switch interface default command">cisco switch interface default command</a></li><li><a href="http://www.techonia.com/cisco-interface-switch-default-configuration" title="cisco interface default">cisco interface default</a></li><li><a href="http://www.techonia.com/cisco-interface-switch-default-configuration" title="set cisco interface to default">set cisco interface to default</a></li><li><a href="http://www.techonia.com/cisco-interface-switch-default-configuration" title="Setting a switch to default settings">Setting a switch to default settings</a></li><li><a href="http://www.techonia.com/cisco-interface-switch-default-configuration" title="cisco set interface default">cisco set interface default</a></li><li><a href="http://www.techonia.com/cisco-interface-switch-default-configuration" title="default interface switch">default interface switch</a></li><li><a href="http://www.techonia.com/cisco-interface-switch-default-configuration" title="configuration of core cisco switches">configuration of core cisco switches</a></li><li><a href="http://www.techonia.com/cisco-interface-switch-default-configuration" title="mikrotik cisco trunk">mikrotik cisco trunk</a></li><li><a href="http://www.techonia.com/cisco-interface-switch-default-configuration" title="default interface cisco">default interface cisco</a></li><li><a href="http://www.techonia.com/cisco-interface-switch-default-configuration" title="cisco switch default interface">cisco switch default interface</a></li><li><a href="http://www.techonia.com/cisco-interface-switch-default-configuration" title="set cisco switch interface to default">set cisco switch interface to default</a></li><li><a href="http://www.techonia.com/cisco-interface-switch-default-configuration" title="set cisco switch to default">set cisco switch to default</a></li><li><a href="http://www.techonia.com/cisco-interface-switch-default-configuration" title="interface FastEthernet0/20">interface FastEthernet0/20</a></li></ul><!-- SEO SearchTerms Tagging 2 plugin took 7.833 ms -->]]></content:encoded>
			<wfw:commentRss>http://www.techonia.com/cisco-interface-switch-default-configuration/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
