


 



<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://docwiki.cisco.com/w/skins/common/feed.css?270"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://docwiki.cisco.com/w/index.php?title=Catalyst_6500_,_running_TCL_scripts_to_configure_sub-interfaces&amp;feed=atom&amp;action=history</id>
		<title>Catalyst 6500 , running TCL scripts to configure sub-interfaces - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://docwiki.cisco.com/w/index.php?title=Catalyst_6500_,_running_TCL_scripts_to_configure_sub-interfaces&amp;feed=atom&amp;action=history"/>
		<link rel="alternate" type="text/html" href="http://docwiki.cisco.com/w/index.php?title=Catalyst_6500_,_running_TCL_scripts_to_configure_sub-interfaces&amp;action=history"/>
		<updated>2013-05-23T02:32:12Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.16.0</generator>

	<entry>
		<id>http://docwiki.cisco.com/w/index.php?title=Catalyst_6500_,_running_TCL_scripts_to_configure_sub-interfaces&amp;diff=30961&amp;oldid=prev</id>
		<title>Jkratky: /* Related show Commands */</title>
		<link rel="alternate" type="text/html" href="http://docwiki.cisco.com/w/index.php?title=Catalyst_6500_,_running_TCL_scripts_to_configure_sub-interfaces&amp;diff=30961&amp;oldid=prev"/>
				<updated>2010-06-23T15:04:23Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Related show Commands&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 15:04, 23 June 2010&lt;/td&gt;
		&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 33:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 33:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;show ip interface brief to verify the sub-interfaces and there ip addresses.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;show ip interface brief to verify the sub-interfaces and there ip addresses.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Configuration Examples]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Jkratky</name></author>	</entry>

	<entry>
		<id>http://docwiki.cisco.com/w/index.php?title=Catalyst_6500_,_running_TCL_scripts_to_configure_sub-interfaces&amp;diff=30414&amp;oldid=prev</id>
		<title>Vlodha: New page: {{Template:Required Metadata}}  ==Introduction==  Document for creating multiple sub-interfaces on Catalyst 6500 using TCL script.  ==Design==  For creating 100 sub-interfaces using Vlan 2...</title>
		<link rel="alternate" type="text/html" href="http://docwiki.cisco.com/w/index.php?title=Catalyst_6500_,_running_TCL_scripts_to_configure_sub-interfaces&amp;diff=30414&amp;oldid=prev"/>
				<updated>2010-06-04T09:40:18Z</updated>
		
		<summary type="html">&lt;p&gt;New page: {{Template:Required Metadata}}  ==Introduction==  Document for creating multiple sub-interfaces on Catalyst 6500 using TCL script.  ==Design==  For creating 100 sub-interfaces using Vlan 2...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Template:Required Metadata}}&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
&lt;br /&gt;
Document for creating multiple sub-interfaces on Catalyst 6500 using TCL script.&lt;br /&gt;
&lt;br /&gt;
==Design==&lt;br /&gt;
&lt;br /&gt;
For creating 100 sub-interfaces using Vlan 2 to 101 with ip address 192.0.2.1 to 192.0.102.1/24&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
==Configuration==&lt;br /&gt;
&lt;br /&gt;
Cat6k#tclsh ( for going to the tcl shell )&lt;br /&gt;
&lt;br /&gt;
Cat6k(tcl)#set ip 2     ( here we are creating a variable for ip address and setting its value to 1 )&lt;br /&gt;
&lt;br /&gt;
Cat6k(tcl)#set vlan 2 ( This variable is created for configuring vlan to be used by sub-interfaces )&lt;br /&gt;
&lt;br /&gt;
Cat6k(tcl)#for { set i 1 } { $i &amp;lt;= 100 } { incr i } {      ( starting a for loop from i = 1 to 100, inc i increments the value of i after each step )    &lt;br /&gt;
&lt;br /&gt;
Cat6k(tcl)#ios_config  “int g1/4.$i” “encapsulation dot1q $vlan” “ ip address 192.0.$ip.1 255.255.255.0” “no shut”  ( Here we are giving the commands we want to run on config mode on the switch , each command in seperate double colons)&lt;br /&gt;
&lt;br /&gt;
Cat6k(tcl)#incr ip; ( incrementing the value of ip )&lt;br /&gt;
&lt;br /&gt;
Cat6k(tcl)#incr vlan; ( incrementing the value of vlan )&lt;br /&gt;
&lt;br /&gt;
Cat6k(tcl)#} ( closing the loop )&lt;br /&gt;
&lt;br /&gt;
==Related show Commands==&lt;br /&gt;
This section provides information you can use to confirm your configuration is working properly.&lt;br /&gt;
&lt;br /&gt;
show ip interface brief to verify the sub-interfaces and there ip addresses.&lt;/div&gt;</summary>
		<author><name>Vlodha</name></author>	</entry>

	</feed>