<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Network | DCMST</title><link>https://portfolio.devcrumbs.com/category/network/</link><atom:link href="https://portfolio.devcrumbs.com/category/network/index.xml" rel="self" type="application/rss+xml"/><description>Network</description><generator>Wowchemy (https://wowchemy.com)</generator><language>en-us</language><lastBuildDate>Sat, 21 Nov 2020 00:00:00 +0000</lastBuildDate><image><url>https://portfolio.devcrumbs.com/media/icon_hu28290437db960aa4e7d19bb9f7230401_6937_512x512_fill_lanczos_center_3.png</url><title>Network</title><link>https://portfolio.devcrumbs.com/category/network/</link></image><item><title>Backing Up a Ruckus Switch Config</title><link>https://portfolio.devcrumbs.com/backing-up-ruckus-config/</link><pubDate>Sat, 21 Nov 2020 00:00:00 +0000</pubDate><guid>https://portfolio.devcrumbs.com/backing-up-ruckus-config/</guid><description>&lt;p>I want to do some changes on my home network to improve the performance, so I will implement VLANs on my network.
But before I do that I want to document how to perform a backup of my Ruckus ICX 7150 Switch.&lt;/p>
&lt;p>In a &lt;a href="https://portfolio.devcrumbs.com/configure-ruckus-switch/">past post&lt;/a> I mentioned how to enable ssh and web cofiguration on the Ruckus switch,
so my first attemtp was to download the configuration file from the web interface but unfortunately it is not possible to do it, there is not an option for that.
What I did is go to the &lt;a href="http://docs.ruckuswireless.com/fastiron/hardware/icx7150-installguide/GUID-25306120-376C-44B2-BAE7-3D969EC889A3.html" target="_blank" rel="noopener">documentation&lt;/a>
and found the &lt;code>copy&lt;/code> command but I need a &lt;a href="https://en.wikipedia.org/wiki/Trivial_File_Transfer_Protocol" target="_blank" rel="noopener">TFTP server&lt;/a> to be able to download the backup file.&lt;/p>
&lt;p>Let&amp;rsquo;s start!&lt;/p>
&lt;ol>
&lt;li>
&lt;p>Install a TFTP server - This is easy will depend on your Operative System, for my is an ArchLinux laptop.&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-shell" data-lang="shell">&lt;span class="line">&lt;span class="cl">yay -Sy atftp
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>The configuration file for atftp is &lt;code>/etc/conf.d/atftpd&lt;/code>&lt;/p>
&lt;/li>
&lt;li>
&lt;p>Next step, is login on your Ruckus switch and perform the copy command:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-shell" data-lang="shell">&lt;span class="line">&lt;span class="cl">ssh &amp;lt;USER&amp;gt;@&amp;lt;SWITCH-IP&amp;gt;
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">copy running-config tftp &amp;lt;TFTP-SERVER-IP&amp;gt; myconfig.cfg
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="c1">#In my case is:&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">ssh ruckus@192.168.50.5
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">copy running-config tftp 192.168.50.4 myconfig.cfg
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;/li>
&lt;li>
&lt;p>Verify that the file is on your TFTP server, by default, the configured directory for atftp is &lt;code>/srv/atftp/&lt;/code> so you should go that location and verify that the generated file is created.&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-shell" data-lang="shell">&lt;span class="line">&lt;span class="cl">&lt;span class="nb">cd&lt;/span> /srv/atftp
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">ls -la
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;/li>
&lt;/ol>
&lt;p>That&amp;rsquo;s all, you can restore your switch configuration if needed.&lt;/p>
&lt;p>Bye!&lt;/p></description></item><item><title>Configure SSH on a Ruckus Switch</title><link>https://portfolio.devcrumbs.com/configure-ruckus-switch/</link><pubDate>Tue, 20 Nov 2018 00:00:00 +0000</pubDate><guid>https://portfolio.devcrumbs.com/configure-ruckus-switch/</guid><description>&lt;p>I just have a Ruckus ICX 7150 Switch on my home and I&amp;rsquo;m trying to get access under ssh and web, to easy configuration and security instead of use telnet.
So, I logged in using telnet and then run the following commands to configure a username/password and begin to receive petitions over port 22(ssh) and port 443(https).
Let&amp;rsquo;s begin!&lt;/p>
&lt;ol>
&lt;li>
&lt;p>We will connect via telnet to the switch.&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-shell" data-lang="shell">&lt;span class="line">&lt;span class="cl">telnet SWITCH_IP
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;/li>
&lt;li>
&lt;p>Once we are on the Switch CLI as a optional step, we can configure an IP on the switch.&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-shell" data-lang="shell">&lt;span class="line">&lt;span class="cl">device&amp;gt; &lt;span class="nb">enable&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">device# configure terminal
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">device&lt;span class="o">(&lt;/span>config&lt;span class="o">)&lt;/span>&lt;span class="c1"># ip address IP_ADDRESS/CIDR&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">device&lt;span class="o">(&lt;/span>config&lt;span class="o">)&lt;/span>&lt;span class="c1"># ip default-gateway IP_GATEWAY&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;/li>
&lt;li>
&lt;p>Now, the next steps are for generate a SSL certificate, a username/password, activate password to login and enable thw web access and ssh access.&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-shell" data-lang="shell">&lt;span class="line">&lt;span class="cl">device&lt;span class="o">(&lt;/span>config&lt;span class="o">)&lt;/span>&lt;span class="c1"># crypto-ssl certificate generate&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">device&lt;span class="o">(&lt;/span>config&lt;span class="o">)&lt;/span>&lt;span class="c1"># username USERNAME password PASSWORD&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">device&lt;span class="o">(&lt;/span>config&lt;span class="o">)&lt;/span>&lt;span class="c1"># aaa authentication login default local&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">device&lt;span class="o">(&lt;/span>config&lt;span class="o">)&lt;/span>&lt;span class="c1"># aaa authentication web-server default local&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;/li>
&lt;li>
&lt;p>It may take several minutes to generate the certificate key. After that, save the configuration.&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-shell" data-lang="shell">&lt;span class="line">&lt;span class="cl">device&lt;span class="o">(&lt;/span>config&lt;span class="o">)&lt;/span>&lt;span class="c1"># write memory&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;/li>
&lt;/ol>
&lt;p>Now you are able to login on your switch using ssh or web.&lt;/p>
&lt;p>&lt;strong>References:&lt;/strong>&lt;/p>
&lt;ul>
&lt;li>Blog with ruckus commands &lt;sup id="fnref:1">&lt;a href="#fn:1" class="footnote-ref" role="doc-noteref">1&lt;/a>&lt;/sup>&lt;/li>
&lt;/ul>
&lt;div class="footnotes" role="doc-endnotes">
&lt;hr>
&lt;ol>
&lt;li id="fn:1">
&lt;p>&lt;a href="https://docs.ruckuswireless.com/fastiron/08.0.50/fastiron-08050-commandref/GUID-E60DB55B-5E68-40EC-A999-73C6C071EFF7.html" target="_blank" rel="noopener">Ruckus ICX7150-C12P – Initial Configuration&lt;/a>&amp;#160;&lt;a href="#fnref:1" class="footnote-backref" role="doc-backlink">&amp;#x21a9;&amp;#xfe0e;&lt;/a>&lt;/p>
&lt;/li>
&lt;/ol>
&lt;/div></description></item><item><title>OSI Model Cheat Sheet</title><link>https://portfolio.devcrumbs.com/osi-model-cheat-sheet/</link><pubDate>Wed, 13 Sep 2017 00:00:00 +0000</pubDate><guid>https://portfolio.devcrumbs.com/osi-model-cheat-sheet/</guid><description>&lt;p>If anyone need a good OSI Model cheat sheet, as me:&lt;/p>
&lt;figure id="figure-osi-model">
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >&lt;img alt="OSI Model diagram" srcset="
/media/posts/osi-model-cheat-sheet/OSI-TCP-Model-v1_hu87e76766e3a8bb40ab6e0b3e53b2ee47_128999_6e7b24321fac5f8194d5d723c62d5878.webp 400w,
/media/posts/osi-model-cheat-sheet/OSI-TCP-Model-v1_hu87e76766e3a8bb40ab6e0b3e53b2ee47_128999_79bc635f9cd536c552dd2458163f92b5.webp 760w,
/media/posts/osi-model-cheat-sheet/OSI-TCP-Model-v1_hu87e76766e3a8bb40ab6e0b3e53b2ee47_128999_1200x1200_fit_q90_h2_lanczos_3.webp 1200w"
src="https://portfolio.devcrumbs.com/media/posts/osi-model-cheat-sheet/OSI-TCP-Model-v1_hu87e76766e3a8bb40ab6e0b3e53b2ee47_128999_6e7b24321fac5f8194d5d723c62d5878.webp"
width="760"
height="525"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;figcaption>
OSI Model diagram
&lt;/figcaption>&lt;/figure></description></item></channel></rss>