<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-4576340616806294060</id><updated>2024-08-30T02:19:42.380-07:00</updated><title type='text'>Random Networking Topics</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://networkingrandom.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4576340616806294060/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://networkingrandom.blogspot.com/'/><author><name>MOHIT KUMAR GREWAL</name><uri>http://www.blogger.com/profile/17541555526998699010</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>5</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4576340616806294060.post-5365371729667374627</id><published>2012-06-26T06:50:00.000-07:00</published><updated>2012-06-26T06:50:14.335-07:00</updated><title type='text'>script for measuring traffic at ethernet ports</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://networkingrandom.blogspot.com/feeds/5365371729667374627/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4576340616806294060/5365371729667374627' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4576340616806294060/posts/default/5365371729667374627'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4576340616806294060/posts/default/5365371729667374627'/><link rel='alternate' type='text/html' href='http://networkingrandom.blogspot.com/2012/06/script-for-measuring-traffic-at.html' title='script for measuring traffic at ethernet ports'/><author><name>MOHIT KUMAR GREWAL</name><uri>http://www.blogger.com/profile/17541555526998699010</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4576340616806294060.post-6726898809268014592</id><published>2012-06-26T06:48:00.001-07:00</published><updated>2012-07-08T04:44:42.805-07:00</updated><title type='text'>vi Editor</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b&gt;Invoking: &amp;nbsp;&lt;/b&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;vi&lt;/b&gt; &amp;lt;file&amp;gt;&lt;/span&gt;&lt;br /&gt;
Format:&lt;b&gt; [count][command]&lt;/b&gt;, &amp;nbsp;count repeats effect of command&lt;br /&gt;
By default Vi starts in command mode. If you wish to add something to file then switch Vi to input mode by pressing any one of the below:&lt;br /&gt;
&lt;b&gt;a &lt;/b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Append after cursor&lt;br /&gt;
&lt;b&gt;i &amp;nbsp;&lt;/b&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Insert before cursor&lt;br /&gt;
&lt;b&gt;o&lt;/b&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Open line below&lt;br /&gt;
&lt;b&gt;O &amp;nbsp;&lt;/b&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Open line above&lt;br /&gt;
&lt;b&gt;:r&lt;/b&gt; &amp;lt;file&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Insert &amp;lt;file&amp;gt; after current line&lt;br /&gt;
&lt;br /&gt;
To exit input mode, press &lt;b&gt;Esc.&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;File management commands&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;:w name&lt;/b&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; write edit buffer to file name&lt;br /&gt;
&lt;b&gt;:wq&lt;/b&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;write to file and quit&lt;br /&gt;
&lt;b&gt;:q! &amp;nbsp;&lt;/b&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Quit without saving changes&lt;br /&gt;
&lt;b&gt;ZZ &amp;nbsp; &lt;/b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; same as :wq&lt;br /&gt;
&lt;b&gt;:sh&lt;/b&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; execute shell commands&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Undo commands&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;u&lt;/b&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;undo last change&lt;br /&gt;
&lt;b&gt;U&lt;/b&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; undo all changes on line&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Recovering deletions&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;p&lt;/b&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; put general buffer after cursor&lt;br /&gt;
&lt;b&gt;P&lt;/b&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; put general buffer before cursor&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Search and replace commands&lt;/b&gt;&lt;br /&gt;
Syntax:&lt;br /&gt;
&amp;nbsp;&lt;b&gt; :[address]s/old_text/new_text/&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Address components:&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;.&lt;/b&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; current line&lt;br /&gt;
&lt;b&gt;n &lt;/b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; line number n&lt;br /&gt;
&lt;b&gt;.+m&lt;/b&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; current line plus m lines&lt;br /&gt;
&lt;b&gt;$ &amp;nbsp;&lt;/b&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; last line&lt;br /&gt;
&lt;b&gt;/string/&lt;/b&gt; &amp;nbsp; a line that containts &quot;string&quot;&lt;br /&gt;
&lt;b&gt;% &amp;nbsp;&lt;/b&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;entire file&lt;br /&gt;
&lt;b&gt;[addr1],[addr2]&lt;/b&gt; &amp;nbsp; specifies a range&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Example:&lt;/b&gt;&lt;br /&gt;
To replace first&amp;nbsp;occurrence&amp;nbsp;of &amp;nbsp;&#39;City&#39; with &#39;Country&#39; in each of 31 lines starting with current line(.) and continuing for the 30 that follow (.+30).&lt;br /&gt;
&lt;b&gt;:.,.+30s/City/Country&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
To replace every occurrence of &#39;city&#39; with &#39;country&#39;(because of &quot;g&quot;).&lt;br /&gt;
&lt;b&gt;:%s/city/country/g&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://networkingrandom.blogspot.com/feeds/6726898809268014592/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4576340616806294060/6726898809268014592' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4576340616806294060/posts/default/6726898809268014592'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4576340616806294060/posts/default/6726898809268014592'/><link rel='alternate' type='text/html' href='http://networkingrandom.blogspot.com/2012/06/vi-editor.html' title='vi Editor'/><author><name>MOHIT KUMAR GREWAL</name><uri>http://www.blogger.com/profile/17541555526998699010</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4576340616806294060.post-7932001069947552232</id><published>2012-06-26T06:47:00.002-07:00</published><updated>2012-06-26T06:47:37.610-07:00</updated><title type='text'>GUI using Shell Scripting</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://networkingrandom.blogspot.com/feeds/7932001069947552232/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4576340616806294060/7932001069947552232' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4576340616806294060/posts/default/7932001069947552232'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4576340616806294060/posts/default/7932001069947552232'/><link rel='alternate' type='text/html' href='http://networkingrandom.blogspot.com/2012/06/gui-using-shell-scripting.html' title='GUI using Shell Scripting'/><author><name>MOHIT KUMAR GREWAL</name><uri>http://www.blogger.com/profile/17541555526998699010</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4576340616806294060.post-6108814386665124114</id><published>2012-06-26T06:44:00.001-07:00</published><updated>2012-06-26T06:44:57.257-07:00</updated><title type='text'>Ethernet NIC card Bonding in Linux</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://networkingrandom.blogspot.com/feeds/6108814386665124114/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4576340616806294060/6108814386665124114' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4576340616806294060/posts/default/6108814386665124114'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4576340616806294060/posts/default/6108814386665124114'/><link rel='alternate' type='text/html' href='http://networkingrandom.blogspot.com/2012/06/ethernet-nic-card-bonding-in-linux.html' title='Ethernet NIC card Bonding in Linux'/><author><name>MOHIT KUMAR GREWAL</name><uri>http://www.blogger.com/profile/17541555526998699010</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4576340616806294060.post-3236842472575795422</id><published>2007-12-09T05:24:00.000-08:00</published><updated>2018-01-08T03:06:46.410-08:00</updated><title type='text'>Configuring HP 3500 switch for Openflow in Lab</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b&gt;Connecting to switch&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
1.connect switch to computer using LAN cable(RJ45 ends) .If using windows use &quot;putty&quot; to telnet in switch or if using linux, &quot;ssh&quot; to switch from terminal.&lt;br /&gt;
&lt;b&gt;ssh -X openflow@&amp;lt;ip-address-switch&amp;gt;&lt;/b&gt;&lt;br /&gt;
before this you need to find out the ip address of the switch(hint: ping). To configure switch using this specific commands are used.&lt;br /&gt;
&lt;br /&gt;
OR&lt;br /&gt;
&lt;br /&gt;
2. type ip address of switch in browser(java should be installed) and enter, GUI interface of switch for configuration will open. It can be used to configure switch, it&#39;s very easy and self&amp;nbsp;explanatory.&lt;br /&gt;
&lt;br /&gt;
OR&lt;br /&gt;
&lt;br /&gt;
3. connect switch to serial port of computer.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://networkingrandom.blogspot.com/feeds/3236842472575795422/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4576340616806294060/3236842472575795422' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4576340616806294060/posts/default/3236842472575795422'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4576340616806294060/posts/default/3236842472575795422'/><link rel='alternate' type='text/html' href='http://networkingrandom.blogspot.com/2007/12/its-me-mohit-grewal.html' title='Configuring HP 3500 switch for Openflow in Lab'/><author><name>MOHIT KUMAR GREWAL</name><uri>http://www.blogger.com/profile/17541555526998699010</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>