<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>The Network Stack</title>
    <link>https://thenetworkstack.com/</link>
    <description>Recent content on The Network Stack</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Mon, 17 Jul 2023 15:38:52 +0000</lastBuildDate>
    <atom:link href="https://thenetworkstack.com/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>About this blog</title>
      <link>https://thenetworkstack.com/about/</link>
      <pubDate>Sat, 15 Jul 2023 21:45:32 +0000</pubDate>
      <guid>https://thenetworkstack.com/about/</guid>
      <description>&lt;p&gt;My name is Daniel Kuchenski. My career has spanned from Ops to Engineering (including internal IT and customer facing infrastructure teams), but you&amp;rsquo;ll probably find me these days talking about the benefits of automation, identity centric security or infrastructure-as-code.&lt;/p&gt;
&lt;p&gt;I find blogging a great way to remember and understand a subject, so I created &lt;a href=&#34;https://thenetworkstack.com/&#34;&gt;thenetworkstack.com&lt;/a&gt; to serve two purposes:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Function as my personal &amp;ldquo;notebook&amp;rdquo;, with information I want to reference later&lt;/li&gt;
&lt;li&gt;Provide solutions to problems I&amp;rsquo;ve faced, so you aren&amp;rsquo;t faced with this terrible problem:&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;img alt=&#34;xkcd&#34; loading=&#34;lazy&#34; src=&#34;https://imgs.xkcd.com/comics/wisdom_of_the_ancients.png&#34;&gt;&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>My name is Daniel Kuchenski. My career has spanned from Ops to Engineering (including internal IT and customer facing infrastructure teams), but you&rsquo;ll probably find me these days talking about the benefits of automation, identity centric security or infrastructure-as-code.</p>
<p>I find blogging a great way to remember and understand a subject, so I created <a href="/">thenetworkstack.com</a> to serve two purposes:</p>
<ol>
<li>Function as my personal &ldquo;notebook&rdquo;, with information I want to reference later</li>
<li>Provide solutions to problems I&rsquo;ve faced, so you aren&rsquo;t faced with this terrible problem:</li>
</ol>
<p><img alt="xkcd" loading="lazy" src="https://imgs.xkcd.com/comics/wisdom_of_the_ancients.png"></p>
<p>This blog originally focused on networking, so the majority of content still revolves around switches, routers, wifi, firewalls, and voip. But when I have time, I hope to post new content on the problems I&rsquo;m solving now. Hope you enjoy!</p>
<p>Daniel Kuchenski<br>
<a href="https://www.linkedin.com/in/danielkuchenski/">https://www.linkedin.com/in/danielkuchenski/</a></p>
]]></content:encoded>
    </item>
    <item>
      <title>AWS Session Manager - Zero Trust Access</title>
      <link>https://thenetworkstack.com/aws-session-manager-zero-trust-access/</link>
      <pubDate>Mon, 16 Mar 2020 00:10:04 +0000</pubDate>
      <guid>https://thenetworkstack.com/aws-session-manager-zero-trust-access/</guid>
      <description>&lt;p&gt;When working with AWS, there are plenty of features that make your life easier, but it&amp;rsquo;s rare to find a feature that feels like magic&amp;hellip;&lt;/p&gt;
&lt;p&gt;Before we dive into the magic, what&amp;rsquo;s the problem we&amp;rsquo;re trying to solve? When working with servers anywhere, usually there needs to be some sort of remote access to SSH or RDP and install/troubleshoot things as needed. Worst case, your server has a public IP with port 22 (SSH) open to the world, which means theoretically anyone, anywhere in the world could break in. As you get more advanced, you setup VPN tunnels or bastion hosts to secure your remote access. This can increase in complexity very quickly with multiple VPC&amp;rsquo;s across multiple regions, multipied by each AWS account. And with the rise in &amp;ldquo;Zero Trust&amp;rdquo; networking, how do you securely provide access without blindly trusting network CIDR&amp;rsquo;s?&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>When working with AWS, there are plenty of features that make your life easier, but it&rsquo;s rare to find a feature that feels like magic&hellip;</p>
<p>Before we dive into the magic, what&rsquo;s the problem we&rsquo;re trying to solve? When working with servers anywhere, usually there needs to be some sort of remote access to SSH or RDP and install/troubleshoot things as needed. Worst case, your server has a public IP with port 22 (SSH) open to the world, which means theoretically anyone, anywhere in the world could break in. As you get more advanced, you setup VPN tunnels or bastion hosts to secure your remote access. This can increase in complexity very quickly with multiple VPC&rsquo;s across multiple regions, multipied by each AWS account. And with the rise in &ldquo;Zero Trust&rdquo; networking, how do you securely provide access without blindly trusting network CIDR&rsquo;s?</p>
<p>Enter AWS Systems Manager Session Manager. While not a very magical name, it does provide a magical experience. Session Manager gives you remote access to your servers without opening any ports in security groups, building any VPN tunnels, or using bastion hosts. All access is based on IAM permissions, and sessions are proxied by AWS Systems Manager. You can either use the AWS Console for web access, or the AWS CLI for a native &ldquo;terminal&rdquo; experience.</p>
<p><strong>What are the requirements?</strong><br>
The <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/session-manager-getting-started.html">official documentation</a> has the most detail, but the short answer is:</p>
<ol>
<li>Verify SSM agent is running on your EC2 instances with an Instance Role that gives access to Systems Manager</li>
<li>If you&rsquo;re using a local terminal:<br>
a. Verify <a href="https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-install.html">AWS CLI 1.16.12</a> or later is installed<br>
b. Install the <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/session-manager-working-with-install-plugin.html">Session Manager Plugin for AWS CLI</a></li>
</ol>
<p>Once the requirements are met, you can view your managed instances by going to <em>Systems Manager</em> -&gt; <em>Managed Instances</em> in the AWS Console. You can easily start a web-based session by clicking an Instance and then clicking <em>Actions</em> -&gt; <em>Start Session</em>. The same thing can be accomplished from the EC2 console by clicking your instance and then <em>Connect</em> -&gt; <em>Connection Method: Session Manager</em>. While this feels similar to other tools (like a VMware console), the real magic is using the terminal on your local computer.</p>
<p>You can start a remote &ldquo;SSH&rdquo; style session with your instances that have zero inbound access with this command:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">$ aws ssm start-session --target instance_id
</span></span></code></pre></div><p>At this point, you have SSH access to your instance, and can go through all your normal installation or troubleshooting steps. The first time you do this feels like magic, as you realize all the time you no longer need to spend with VPN tunnels, bastion hosts, and opening up security groups for remote access.</p>
<p><strong>But wait, there&rsquo;s more!</strong> Not only can you initiate remote access sessions for SSH or Powershell, but SSM can also do <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/session-manager-working-with-sessions-start.html">port-forwarding</a> from your local computer to the remote server! Want to see what a particular web-server is showing on port 80? Just forward a random local port (ex. 9999) to your web-server port 80, and then navigate to <a href="http://localhost:9999">http://localhost:9999</a> in your web-browser. How about Windows RDP access? Session manager only supports SSH or Powershell for remote sessions, but with the port-forwarding feature, we can also get remote RDP access:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">$ aws ssm start-session --target instance_id --document-name AWS-StartPortForwardingSession --parameters <span class="nv">portNumber</span><span class="o">=</span><span class="s2">&#34;3389&#34;</span>,localPortNumber<span class="o">=</span><span class="s2">&#34;33389&#34;</span>
</span></span></code></pre></div><p>Since the &ldquo;localPortNumber&rdquo; is set to 33389 above, you would just RDP to 127.0.0.1:33389 to port-forward to your remote instance.</p>
<p>Ok, at this point AWS has provided zero trust remote access, but remembering the AWS CLI SSM commands (especially port-forwarding) aren&rsquo;t the most intuitive. Also, getting the EC2 instance id requires going back and forth between your terminal the AWS web console. I decided to write a Python script that abstracts some of complexity while making it easy to start remote sessions and port-fowarding.</p>
<p>I&rsquo;ve called this script <strong>AWS Remote</strong>: <a href="https://github.com/dkuchenski/aws-remote">https://github.com/dkuchenski/aws-remote</a></p>
<p>Some of the main features of AWS Remote:</p>
<ul>
<li>Listing all EC2 instance ids, important attributes, and SSM management status</li>
<li>Start remote sessions via instance id or instance name</li>
<li>Friendly port-forward syntax via instance id or instance name</li>
</ul>
<p>So instead of remembering the AWS CLI syntax and finding instance id&rsquo;s, you can do this:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">$ aws-remote session instance2-example.domain.com
</span></span></code></pre></div><p>or</p>
<pre tabindex="0"><code>$ aws-remote port-forward 8080 80 instance2-example.domain.com
</code></pre><p><em>Note: The instance &ldquo;name&rdquo; is referencing the Name tag of the instance</em></p>
<p>This script uses a combination of the Python Boto3 SDK and the AWS CLI to get information from AWS and start sessions based on your parameters. This is also the first time I&rsquo;ve used <a href="https://click.palletsprojects.com/en/7.x/">Click</a> to build the command line interface. Click is great for building easy to use CLI&rsquo;s, and therefore you can use <code>--help</code> at any point to see what your available options are. I&rsquo;ve also mimicked the AWS CLI <code>--profile</code> and <code>--region</code> options for a familiar setup.</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">$ aws-remote --help
</span></span><span class="line"><span class="cl">Usage: aws-remote <span class="o">[</span>OPTIONS<span class="o">]</span> COMMAND <span class="o">[</span>ARGS<span class="o">]</span>...
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">  AWS Remote is a simple, <span class="nb">command</span> line tool to view and interact with AWS
</span></span><span class="line"><span class="cl">  instances via SSM. Requires the AWS CLI and Session Manager Plugin to be
</span></span><span class="line"><span class="cl">  installed locally.
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">Options:
</span></span><span class="line"><span class="cl">  --profile TEXT  Specify AWS profile
</span></span><span class="line"><span class="cl">  --region TEXT   Specify AWS region
</span></span><span class="line"><span class="cl">  --help          Show this message and exit.
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">Commands:
</span></span><span class="line"><span class="cl">  list          List EC2 instances and SSM management status
</span></span><span class="line"><span class="cl">  port-forward  Start SSM port forward to instance id/name
</span></span><span class="line"><span class="cl">  session       Start SSM session with instance id/name
</span></span></code></pre></div><p>I&rsquo;m still figuring out the best way to distribute scripts like this, but for now there are a couple installation steps that can be found here: <a href="https://github.com/dkuchenski/aws-remote/blob/master/README.md">https://github.com/dkuchenski/aws-remote/blob/master/README.md</a></p>
<p>Hope AWS Remote is a useful tool, and if you have any feedback, please let me know!</p>
<p>Amazon Blog about Session Manager:<br>
<a href="https://aws.amazon.com/blogs/aws/new-session-manager/">https://aws.amazon.com/blogs/aws/new-session-manager/</a></p>
<p>References for using Click in a Python CLI:<br>
<a href="https://dbader.org/blog/mastering-click-advanced-python-command-line-apps">https://dbader.org/blog/mastering-click-advanced-python-command-line-apps</a><br>
<a href="https://stackoverflow.com/questions/23626972/how-do-i-pass-variables-to-other-methods-using-pythons-click-command-line-inte">https://stackoverflow.com/questions/23626972/how-do-i-pass-variables-to-other-methods-using-pythons-click-command-line-inte</a></p>
]]></content:encoded>
    </item>
    <item>
      <title>AWS Transit Gateway</title>
      <link>https://thenetworkstack.com/aws-transit-gateway/</link>
      <pubDate>Fri, 30 Nov 2018 16:28:22 +0000</pubDate>
      <guid>https://thenetworkstack.com/aws-transit-gateway/</guid>
      <description>&lt;p&gt;At re:Invent 2018, AWS announced the Transit Gateway, finally giving us a native solution to provide scalable transit connectivity. After attending sessions and deploying Transit Gateway, I wanted to dive into the solution and see what is possible.&lt;/p&gt;
&lt;h4 id=&#34;tech-specs&#34;&gt;&lt;strong&gt;Tech Specs&lt;/strong&gt;&lt;/h4&gt;
&lt;p&gt;In case you haven&amp;rsquo;t read the &lt;a href=&#34;#preofficialdocs&#34;&gt;official docs&lt;/a&gt;, the AWS Transit Gateway is a regional layer3 router connecting VPC, VPN, Direct Connect (soon) across multiple accounts, with support for multiple route tables (VRFs). The Transit Gateway (TGW) has &lt;em&gt;much&lt;/em&gt; higher scalability limits than VPC peering.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>At re:Invent 2018, AWS announced the Transit Gateway, finally giving us a native solution to provide scalable transit connectivity. After attending sessions and deploying Transit Gateway, I wanted to dive into the solution and see what is possible.</p>
<h4 id="tech-specs"><strong>Tech Specs</strong></h4>
<p>In case you haven&rsquo;t read the <a href="#preofficialdocs">official docs</a>, the AWS Transit Gateway is a regional layer3 router connecting VPC, VPN, Direct Connect (soon) across multiple accounts, with support for multiple route tables (VRFs). The Transit Gateway (TGW) has <em>much</em> higher scalability limits than VPC peering.</p>
<p><img alt="tgw-limits" loading="lazy" src="/images/2018/11/tgw-limits.png"></p>
<p><em>How did Amazon put a big router in the cloud?</em><br>
The Transit Gateway is part of the AWS Hyperplane architecture, an internal AWS service that provides terabits of capacity. This is tested and proven tech, already powering NLB, NAT Gateway, and EFS:</p>
<p><img alt="tgw-hyperplane" loading="lazy" src="/images/2018/11/tgw-hyperplane.jpg"></p>
<h4 id="configuration"><strong>Configuration</strong></h4>
<p>To setup a TGW, log into your AWS account, and go to VPC. When you click &ldquo;Create Transit Gateway&rdquo;, you&rsquo;ll be greeted with this screen:</p>
<p><img alt="tgw-create" loading="lazy" src="/images/2018/11/tgw-create.png"></p>
<p>There are a couple options that weren&rsquo;t immediately clear to me, so lets go through them all:</p>
<ul>
<li><strong>Name tag:</strong> Up to you, I use $accountName-$region-tgw</li>
<li><strong>Description:</strong> ^</li>
<li><strong>Amazon side ASN:</strong> Depends on your routing policy, I use a unique private ASN per TGW for routing policy flexibility</li>
<li><strong>DNS support:</strong> Allows private DNS resolution across VPCs, I would keep this checked</li>
<li><strong>VPN ECMP support:</strong> A single VPN connection is limited to 1.25Gbps, so enable ECMP and use multiple VPN connections to aggregate VPN throughput. AWS has tested up to 50Gbps successfully with ECMP, but theoretically there is &ldquo;no limit&rdquo;.</li>
<li><strong>Default route table association:</strong> Automatically associate attachments with the default route table. For example, when you attach a VPC to the TGW, use the default route table. This depends on how you use route tables, but I would keep this checked.</li>
<li><strong>Default route table propagation:</strong> Automatically propogate routes from attachments into the default route table. This will allow anything connected to the default route table to route to each other (assuming the VPC route table is also configured). Depending on how you use the TGW, you may not want this. If you do not want spoke-to-spoke connectivity, do not check this.</li>
<li><strong>Auto accept shared attachments:</strong> Automatically accept cross-account attachments to your VPC. I would leave this unchecked.</li>
</ul>
<p><em>CAUTION</em>: You <strong>cannot</strong> change the above values later. You would need to create a new TGW.</p>
<p>Once your TGW is created, you need to &ldquo;attach&rdquo; it to a VPC or VPN connection. For VPN, this should look familiar, as you use BGP or static routing to connect to a customer gateway. For VPC, things start to deviate from previous transit solutions. First, you must select VPC subnets in every AZ that you plan to use. This provisions an ENI in those subnets that the TGW then uses to route traffic to that AZ. <em>You can only select one subnet per AZ.</em> <strong>This does not affect routing to other subnets in the AZ</strong>, its just what the TGW uses to route to that AZ. Then, you manually add routes in the route table that point to the TGW target. The VPC route table limits have not changed (50 route default, 100 route max), so it is best practice to use a summary route to the TGW. I would just route the RFC1918 address ranges (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16) to the TGW, and then any VPC peering you may do will still work with a more specific route.</p>
<p>Once the TGW is attached to your VPCs, you then need to associate the attachment with a route table, and propopage routes into the route table. If you left all the default options when creating the TGW, both of these actions are done automatically. This provides <em>flat</em>, any-to-any VPC routing out of the box.</p>
<p><img alt="tgw-any" loading="lazy" src="/images/2018/11/tgw-any.jpg"></p>
<p>If you are looking for <em>isolated</em> hub-and-spoke routing (prevent spokes from talking), then we need to change our config:</p>
<ol>
<li>Create a new TGW route table (VRF) for your hub location, which could be another VPC or VPN</li>
<li>Associate the hub attachment with the TGW hub route table</li>
<li>Propagate the spoke routes into the TGW hub route table</li>
<li>Propagate the hub routes into the TGW default route table, used by the spokes</li>
<li>If the default route table has all the spoke routes present, delete those. You can always add routes back if needed. This prevents the spokes from routing to each other, while still allowing access to the hub.</li>
</ol>
<p><img alt="tgw-isolated" loading="lazy" src="/images/2018/11/tgw-isolated.jpg"></p>
<p>Finally, since TGW is a regional service, how do you connect multiple regions? Right now, this would be done with a transit VPC, or an on-premise router. But if you can wait until early 2019, AWS should have a native solution!</p>
<p><img alt="tgw-multiregion" loading="lazy" src="/images/2018/11/tgw-multiregion.jpg"></p>
<p>To summarize, the two architectures discussed here were:</p>
<ol>
<li><strong>Flat, any-to-any connectivity.</strong> Achieved with the default TGW configuration. All associations and propagations go into the default route table.</li>
<li><strong>Isolated, hub-and-spoke connectivity.</strong> Requires another route table for the hub, and changing route propagation so the spokes only see the hubs route. The hub route table should have propagated routes from all the spokes.</li>
</ol>
<p>AWS Transit Gateway is a great addition to the AWS networking stack, and really provides a extremely scalable, secure solution for routing in the cloud.</p>
<hr>
<h4 id="official-docs"><strong>Official Docs</strong></h4>
<p><a href="https://aws.amazon.com/about-aws/whats-new/2018/11/introducing-aws-transit-gateway/">Introducing AWS Transit Gateway</a><br>
<a href="https://aws.amazon.com/transit-gateway/">AWS Transit Gateway Solution</a><br>
<a href="https://docs.aws.amazon.com/vpc/latest/tgw/what-is-transit-gateway.html">AWS Transit Gateway Docs</a></p>
<h4 id="update-aws-has-posted-all-the-slides-from-the-net402-session"><strong>Update:</strong> AWS has posted all the slides from the NET402 session</h4>
<iframe allowfullscreen="" frameborder="0" height="485" marginheight="0" marginwidth="0" scrolling="no" src="https://www.slideshare.net/slideshow/embed_code/key/zDwhn3Fj4nxlcd" style="border:1px solid #CCC; border-width:1px; margin-bottom:5px; max-width: 100%;" width="595"> </iframe>
<p><strong><a href="//www.slideshare.net/AmazonWebServices/new-launch-aws-transit-gateway-and-transit-vpcs-reference-architectures-for-many-vpcs-net402-aws-reinvent-2018">[NEW LAUNCH!] AWS Transit Gateway and Transit VPCs - Reference Architectures for Many VPCs (NET402) - AWS re:Invent 2018</a></strong></p>
]]></content:encoded>
    </item>
    <item>
      <title>AWS Certified Advanced Networking in 20 Days</title>
      <link>https://thenetworkstack.com/aws-certified-advanced-networking-in-20-days/</link>
      <pubDate>Mon, 12 Nov 2018 15:06:52 +0000</pubDate>
      <guid>https://thenetworkstack.com/aws-certified-advanced-networking-in-20-days/</guid>
      <description>&lt;p&gt;Can the AWS Certified Advanced Networking Specialty exam be legitemately passed with only a few weeks of studying? &lt;strong&gt;Yes.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Is there a secret shortcut? &lt;strong&gt;No.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Although there is no shortcut, I will discuss my &lt;strong&gt;previous experience&lt;/strong&gt;, &lt;strong&gt;study materials&lt;/strong&gt;, and &lt;strong&gt;general impressions&lt;/strong&gt; of the exam. If you have already been working with AWS networking, and wondering what it takes to be certified, this post should give you a pretty good idea. Regarding my timeline, I passed the AWS Certified Solutions Architect Associate exam on 10/18/18, and then passed the AWS Certified Advanced Networking Specialty exam twenty days later on 11/7/18.&lt;br&gt;
\&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>Can the AWS Certified Advanced Networking Specialty exam be legitemately passed with only a few weeks of studying? <strong>Yes.</strong></p>
<p>Is there a secret shortcut? <strong>No.</strong></p>
<p>Although there is no shortcut, I will discuss my <strong>previous experience</strong>, <strong>study materials</strong>, and <strong>general impressions</strong> of the exam. If you have already been working with AWS networking, and wondering what it takes to be certified, this post should give you a pretty good idea. Regarding my timeline, I passed the AWS Certified Solutions Architect Associate exam on 10/18/18, and then passed the AWS Certified Advanced Networking Specialty exam twenty days later on 11/7/18.<br>
\</p>
<h4 id="1-previous-experience"><strong>1. Previous Experience</strong></h4>
<p>First, I&rsquo;ve worked in &ldquo;traditional&rdquo; networking before starting my AWS experience, and have passed the Cisco CCNP and CCDP exams. This is a huge advantage if you are looking to take the AWS Certified Advanced Network Specialty exam (ANS), since the <a href="https://d1.awsstatic.com/training-and-certification/eligibilityupdates/AWS%20Certified%20Advanced%20Networking%20-%20Speciality_Exam_Guide_v1.2_FINAL.pdf">exam guide</a> recommends the following &ldquo;General IT Knowledge&rdquo;:</p>
<ul>
<li>Advanced networking architectures and interconnectivity options (e.g., IP VPN, MPLS/VPLS)</li>
<li>Networking technologies within the OSI model, and how they affect implementation decisions</li>
<li>Development of automation scripts and tools</li>
<li>Routing architectures (including static and dynamic)</li>
<li>Multi-region solutions for a global enterprise</li>
<li>Highly available connectivity solutions (e.g., DX, VPN)</li>
<li>CIDR and sub-netting (IPv4 and IPv6)</li>
<li>IPv6 transition challenges</li>
<li>Generic solutions for network security features, including WAF, IDS, IPS, DDoS protection, and Economic Denial of Service/Sustainability (EDoS).</li>
</ul>
<p>90% of those topics are covered by the CCNP, and if you have worked in an enterprise environment, you have probably seen or used similar network security features listed on the last line.</p>
<p>Second, I have been working with AWS networking for about 4 years. This started out small, troubleshooting a security group, or creating a vpc, and growing to designing multi-account, multi-region network services and connectivity. This was supplemented by the knowledge I recently gained studying for and taking the AWS SAA exam. Even though an associate exam is no longer required to take a specialty exam, I would highly recommend it, so you can learn the AWS way of doing things &ldquo;right&rdquo;.<br>
\</p>
<h4 id="2-study-materials"><strong>2. Study Materials</strong></h4>
<p>Even with the experience described above, I did not immediately go and take the exam. For me, passing the exam isn&rsquo;t just filling in the correct answer, its learning the AWS approach to solving problems, and all the available solutions. I used two main resources to study for the exam:</p>
<ul>
<li>Linux Academy <a href="https://linuxacademy.com/amazon-web-services/training/course/name/aws-certified-networking-specialty">Online Course</a></li>
<li>The AWS Certified Advanced Networking <a href="https://www.amazon.com/Certified-Advanced-Networking-Official-Study/dp/1119439833/">Official Study Guide</a></li>
</ul>
<p>After using Linux Academy for the SAA exam, I was excited to try their ANS cource. Unfortunately I wasn&rsquo;t as impressed, maybe because I was already familiar with the material, but there also weren&rsquo;t as many labs, and the quizes towards the end felt lazy with only a couple questions each. Overall, I did find the material useful and mostly listened to the instructor at 1.25x or 1.5x speed while taking notes on important points. I still recommend Linux Academy as a general training resource, since I&rsquo;m a fan of their on-demand labs and wide range of content.</p>
<p>If you are looking to get the most bang for your buck, I would definitely purchase the official study guide. The guide is written by seven AWS Solutions Architects, and I found the content very thorough. At the end of every chapter are resources to review, exam essentials, exercises and review questions. The book also includes online practice exams and flashcards. I recommend taking the practice exams over and over again until you genuinely understand each question and the correct answer.</p>
<p>Last, AWS provides whitepapers and various documentation that can also be used as study material. Near the end of my studying I also found more content on <a href="https://aws.amazon.com/answers/networking/">AWS Answers</a>. For example, these articles on network connectivity:</p>
<ul>
<li><a href="https://aws.amazon.com/answers/networking/aws-multiple-data-center-ha-network-connectivity/">Multiple Data Center HA Network Connectivity</a></li>
<li><a href="https://aws.amazon.com/answers/networking/aws-single-data-center-ha-network-connectivity/">Single Data Center HA Network Connectivity</a><br>
\</li>
</ul>
<h4 id="3-general-impressions"><strong>3. General Impressions</strong></h4>
<p>I thought this was a difficult test. It isn&rsquo;t enough to know one solution to a given scenario. AWS expects you to know every solution to a scenario, the benefits and limits of each solution, and be able determine the best solution <em>for the scenario</em>. <strong>You need to deep dive into each subject</strong>. There were still times that I didn&rsquo;t 100% know the answer that AWS was looking for, and I had to make an educated guess. I think &ldquo;Domain 5.0: Design and implement for security and compliance&rdquo; from the <a href="https://d1.awsstatic.com/training-and-certification/eligibilityupdates/AWS%20Certified%20Advanced%20Networking%20-%20Speciality_Exam_Guide_v1.2_FINAL.pdf">exam guide</a> was my biggest challenge. Unfortunately I can&rsquo;t go into more detail, as I don&rsquo;t want to risk violating the <a href="https://aws.amazon.com/certification/certification-agreement/">exam agreement</a>. I am proud to have passed the AWS ANS exam, and I think it is worth pursuing if you work with AWS networking frequently.</p>
<p>Hopefully this post was helpful, if you&rsquo;d like to discuss AWS networking, come find me at re:Invent 2018! I can be reached via <a href="https://twitter.com/DanielKuchenski">Twitter</a>.<br>
\</p>
<p><img alt="aws-ans-small" loading="lazy" src="/images/2018/11/aws-ans-small.png"></p>
<p>PS. I also discovered a couple other blog posts with some amazing study content after I had already passed the exam:</p>
<p><a href="https://blog.ashiny.cloud/2018/07/29/aws-certified-advanced-networking-specialty/">https://blog.ashiny.cloud/2018/07/29/aws-certified-advanced-networking-specialty/</a></p>
<p><a href="https://www.itdiversified.com/aws-certified-advanced-networking-prep-direct-connect/">https://www.itdiversified.com/aws-certified-advanced-networking-prep-direct-connect/</a><br>
<a href="https://www.itdiversified.com/aws-certified-advanced-networking-prep-vpc/">https://www.itdiversified.com/aws-certified-advanced-networking-prep-vpc/</a><br>
<a href="https://www.itdiversified.com/aws-certified-advanced-networking-prep-vpn/">https://www.itdiversified.com/aws-certified-advanced-networking-prep-vpn/</a><br>
<a href="https://www.itdiversified.com/aws-certified-advanced-networking-prep-route-53/">https://www.itdiversified.com/aws-certified-advanced-networking-prep-route-53/</a></p>
<p><a href="https://www.whizlabs.com/blog/aws-certified-advanced-networking-specialty-certification-preparation/">https://www.whizlabs.com/blog/aws-certified-advanced-networking-specialty-certification-preparation/</a></p>
]]></content:encoded>
    </item>
    <item>
      <title>Ansible 2.5 - New Network Modules</title>
      <link>https://thenetworkstack.com/ansible-2-5-new-network-modules/</link>
      <pubDate>Mon, 26 Mar 2018 14:25:52 +0000</pubDate>
      <guid>https://thenetworkstack.com/ansible-2-5-new-network-modules/</guid>
      <description>&lt;p&gt;Ansible 2.5 just came out, and with it comes new network modules (and the network_cli and netconf connectivity methods). The new modules allow us to manage certain IOS configurations without always depending on the &amp;ldquo;ios_config&amp;rdquo; module, while the network_cli connectivity method means we don&amp;rsquo;t always need to configure a &amp;ldquo;provider&amp;rdquo; for every network playbook. These new modules and connectivity methods allow networking configuration management to look and feel similar to our server management playbooks, which is great for cross-functional teams and reusability.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>Ansible 2.5 just came out, and with it comes new network modules (and the network_cli and netconf connectivity methods). The new modules allow us to manage certain IOS configurations without always depending on the &ldquo;ios_config&rdquo; module, while the network_cli connectivity method means we don&rsquo;t always need to configure a &ldquo;provider&rdquo; for every network playbook. These new modules and connectivity methods allow networking configuration management to look and feel similar to our server management playbooks, which is great for cross-functional teams and reusability.</p>
<blockquote>
<p><strong>Ansible 2.5 Release Info:</strong><br>
<a href="https://www.ansible.com/blog/coming-soon-networking-features-in-ansible-2.5">New Networking Features in Ansible 2.5</a><br>
<a href="http://docs.ansible.com/ansible/devel/modules/list_of_network_modules.html">List of All Network Modules in Ansible 2.5</a><br>
<a href="http://docs.ansible.com/ansible/devel/network/user_guide/network_best_practices_2.5.html">Network Best Practices for Ansible 2.5</a></p>
</blockquote>
<p>For a quick introduction, I&rsquo;m going to take my previously discussed <a href="/ansible-vlan-provisioning/">VLAN provisioning playbook</a> and convert it to Ansible 2.5 syntax.</p>
<p>First, remember to upgrade to Ansible 2.5. If you have already have <a href="/ansible-installation/">ansible installed</a>, then just upgrade with:</p>
<pre tabindex="0"><code>apt-get update &amp;&amp; apt-get install ansible
</code></pre><p>Our first major change is going to use &ldquo;group_vars&rdquo; to define connection settings for our network devices. By default, Ansible will read any variable in group_vars/all.yml, group_vars/&lt;group_name&gt; and host_vars/&lt;host_name&gt; when a playbook is executed.  Since we are defining how to connect to <strong>all</strong> our Cisco IOS devices, I am going to put our connection variables in <strong>groups_vars/ios-switches.yml</strong></p>
<pre tabindex="0"><code>ansible_connection: network_cli
ansible_network_os: ios
ansible_user: ciscoadmin
ansible_ssh_pass: cisco123
</code></pre><p>To use the network_cli connection, you must specify the &ldquo;ansible_network_os&rdquo;. Also, please <strong>do not</strong> store your password in plain-text and instead use Ansible Vault, but to keep this example simple, we are using the password &ldquo;cisco123&rdquo;.</p>
<p>Since our &ldquo;ansible_connection&rdquo; is defined in group_vars, we no longer need the &ldquo;connection: local&rdquo; parameter in our playbook.</p>
<p>Next, instead of using the &ldquo;ios_config&rdquo; module to create and name VLAN&rsquo;s, let&rsquo;s use the new <strong>ios_vlan</strong> module.</p>
<pre tabindex="0"><code>---
- hosts: ios-switches
  vars:
    vlan_id: 998
    vlan_name: Ansible_VLAN
    
tasks:
    - name: Provision VLAN
      ios_vlan:
        vlan_id: &#34;{{ vlan_id }}&#34;
        name: &#34;{{ vlan_name }}&#34;
        state: present

    - name: Show VLAN
      ios_command:
        commands: show vlan brief
      register: show_vlan

    - debug: var=show_vlan.stdout_lines
</code></pre><p>As you can see the <strong>ios_vlan</strong> module simplifies our VLAN provisioning process, since we can define the VLAN ID and the VLAN NAME in a single task. The &ldquo;state&rdquo; of the VLAN is not required to create a VLAN, but I included it to show how the new modules use declaritive statements to make creating/removing configuration easier.  If we want to remove a VLAN, just change the &ldquo;state&rdquo; to <strong>absent</strong>. I also left in our &ldquo;show vlan&rdquo; task from last time, so we can verify our configuration change without logging into the switch manually.</p>
<p>Now to run the playbook:</p>
<pre tabindex="0"><code>root@ubuntu:/etc/ansible# ansible-playbook network_new-vlan.yml

PLAY [ios-switches] *************************************************************************************************************************************

TASK [Provision VLAN] ***********************************************************************************************************************************
changed: [10.170.200.2]

TASK [Show VLAN] ****************************************************************************************************************************************
ok: [10.170.200.2]

TASK [debug] ********************************************************************************************************************************************
ok: [10.170.200.2] =&gt; {
    &#34;show_vlan.stdout_lines&#34;: [
        [
            &#34;VLAN Name                             Status    Ports&#34;,
            &#34;---- -------------------------------- --------- -------------------------------&#34;,
            &#34;1    default                          active    Gi0/10, Gi0/11, Gi0/12&#34;,
            &#34;10   FW_VLAN                          active    Gi0/3, Gi0/4, Gi0/5, Gi0/6, Gi0/7&#34;,
            &#34;20   Data_VLAN                        active    Gi0/1, Gi0/2&#34;,
            &#34;30   Voice_VLAN                       active    Gi0/1, Gi0/2, Gi0/3, Gi0/4, Gi0/5, Gi0/6, Gi0/7&#34;,
            &#34;998  Ansible_VLAN                     active    &#34;,
            &#34;1002 fddi-default                     act/unsup &#34;,
            &#34;1003 token-ring-default               act/unsup &#34;,
            &#34;1004 fddinet-default                  act/unsup &#34;,
            &#34;1005 trnet-default                    act/unsup&#34;
        ]
    ]
}

PLAY RECAP **********************************************************************************************************************************************
10.170.200.2                : ok=4    changed=1    unreachable=0    failed=0
</code></pre><p>Success!! While this is great for individual VLAN changes, the real power comes when you define all your environment VLAN&rsquo;s in group_var or host_var files, and looping through the &ldquo;ios_vlan&rdquo; task for every VLAN required.  I&rsquo;ll save that for a future post!</p>
<p>You can find this playbook (including ansible.cfg and directory structure) on my github: <a href="https://github.com/dkuchenski/thenetworkstack-ansible/tree/master/vlan-provisioning-2.5">https://github.com/dkuchenski/thenetworkstack-ansible/tree/master/vlan-provisioning-2.5</a></p>
]]></content:encoded>
    </item>
    <item>
      <title>Optimize Ruckus Configuration - Part 2</title>
      <link>https://thenetworkstack.com/optimize-ruckus-configuration-part-2/</link>
      <pubDate>Mon, 19 Feb 2018 16:56:50 +0000</pubDate>
      <guid>https://thenetworkstack.com/optimize-ruckus-configuration-part-2/</guid>
      <description>&lt;p&gt;A couple years ago I posted how to &lt;a href=&#34;https://thenetworkstack.com/optimize-ruckus-configuration/&#34;&gt;Optimize Ruckus Configuration&lt;/a&gt;, and since then I&amp;rsquo;ve been continually tweaking so that my dense, multi-story WiFi environment performs well with Windows, Mac OSX, and mobile devices.  Here are my current optimizations:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Note: This is based on Ruckus ZoneDirector 10.0.1.0 build 44&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;System Wide:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Channel Optimization: Optimize for Performance. This enables all the 5GHz channels, which is especially useful in a dense environment.&lt;/li&gt;
&lt;li&gt;Self-Healing: Automatically adjust 2.4Ghz and 5Ghz channels using Background scanning (I found ChannelFly too busy)&lt;/li&gt;
&lt;li&gt;Background Scanning: Run a background scan every 3600 seconds. The default is too short, causing unnecessary channel changes.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;AP Specific:&lt;/strong&gt;&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>A couple years ago I posted how to <a href="/optimize-ruckus-configuration/">Optimize Ruckus Configuration</a>, and since then I&rsquo;ve been continually tweaking so that my dense, multi-story WiFi environment performs well with Windows, Mac OSX, and mobile devices.  Here are my current optimizations:</p>
<p><em>Note: This is based on Ruckus ZoneDirector 10.0.1.0 build 44</em></p>
<p><strong>System Wide:</strong></p>
<ul>
<li>Channel Optimization: Optimize for Performance. This enables all the 5GHz channels, which is especially useful in a dense environment.</li>
<li>Self-Healing: Automatically adjust 2.4Ghz and 5Ghz channels using Background scanning (I found ChannelFly too busy)</li>
<li>Background Scanning: Run a background scan every 3600 seconds. The default is too short, causing unnecessary channel changes.</li>
</ul>
<p><strong>AP Specific:</strong></p>
<ul>
<li>Radio B/G/N(2.4G): Only allows channels 1, 6, 11</li>
<li>Radio A/N/AC(5G) Indoor: Depending on the environment, I may allow all, or disable certain DFS channels or Apple TV peer-to-peer channel (149).</li>
<li>Channelization 2.4GHz: 20</li>
<li>Channelization 5.0GHz: 40 (80 just uses too many channels in a dense environment)</li>
<li>I also disable the 2.4GHz radio on approximately every other AP, since AP placement is built for 5GHz coverage. This helps with 2.4GHz channel contention.</li>
<li>Turn down TX power for 2.4GHz radios, and potentially 5GHz radios depending on placement.</li>
</ul>
<p><strong>WLAN Specific:</strong></p>
<ul>
<li>If wireless clients do not need to communicate directly with each other (less common with everything &ldquo;cloud&rdquo;), enable Wireless client isolation.</li>
<li>We want Band Balancing, so uncheck &ldquo;Do not perform Band Balancing on this WLAN service&rdquo;</li>
<li>Enable OFDM Only (Disable legacy 802.11b only clients)</li>
<li>BSS Min Rate: 24.00mbps (Encourages roaming to closer AP)</li>
<li>Enable 802.11k</li>
</ul>
<p>With these changes, I have little complaints from users, and wireless &ldquo;just works&rdquo;. Of course, Apple clients (particulary OSX) are the most difficult, but most of their problems can be solved by turning their WiFi off/on, or sometimes resetting PRAM.</p>
]]></content:encoded>
    </item>
    <item>
      <title>AWS - CloudFormation - Create VPC</title>
      <link>https://thenetworkstack.com/aws-cloudformation-create-vpc/</link>
      <pubDate>Sat, 27 Jan 2018 20:14:00 +0000</pubDate>
      <guid>https://thenetworkstack.com/aws-cloudformation-create-vpc/</guid>
      <description>&lt;p&gt;If you have worked with AWS networking, you know there is a laundry list of items that need to be initally configured so the environment is ready for use:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;VPC&lt;/li&gt;
&lt;li&gt;Internet Gateway&lt;/li&gt;
&lt;li&gt;VPN Gateway&lt;/li&gt;
&lt;li&gt;Public Subnets&lt;/li&gt;
&lt;li&gt;Private Subnets&lt;/li&gt;
&lt;li&gt;Public Route Tables&lt;/li&gt;
&lt;li&gt;Private Route Tables&lt;/li&gt;
&lt;li&gt;NAT Gateways&lt;/li&gt;
&lt;li&gt;&lt;em&gt;and more depending on your environment&lt;/em&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Since AWS is a software defined cloud datacenter, you will get more and more requests for a &lt;em&gt;Prod environment&lt;/em&gt;, then &lt;em&gt;Dev environment&lt;/em&gt;, then &lt;em&gt;QA environment&lt;/em&gt;, then &lt;em&gt;DevOps environment&lt;/em&gt;, etc&amp;hellip;but wait, this also needs to be done in &lt;strong&gt;every&lt;/strong&gt; region! Instead of spending your time pointing and clicking your way through the AWS GUI, Amazon has provided an infrastructure automation solution called &lt;strong&gt;CloudFormation&lt;/strong&gt;. CloudFormation uses the AWS API&amp;rsquo;s to automate the provisioning of AWS resources, and its very simple to use.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>If you have worked with AWS networking, you know there is a laundry list of items that need to be initally configured so the environment is ready for use:</p>
<ul>
<li>VPC</li>
<li>Internet Gateway</li>
<li>VPN Gateway</li>
<li>Public Subnets</li>
<li>Private Subnets</li>
<li>Public Route Tables</li>
<li>Private Route Tables</li>
<li>NAT Gateways</li>
<li><em>and more depending on your environment</em></li>
</ul>
<p>Since AWS is a software defined cloud datacenter, you will get more and more requests for a <em>Prod environment</em>, then <em>Dev environment</em>, then <em>QA environment</em>, then <em>DevOps environment</em>, etc&hellip;but wait, this also needs to be done in <strong>every</strong> region! Instead of spending your time pointing and clicking your way through the AWS GUI, Amazon has provided an infrastructure automation solution called <strong>CloudFormation</strong>. CloudFormation uses the AWS API&rsquo;s to automate the provisioning of AWS resources, and its very simple to use.</p>
<ol>
<li>Set up your YAML or JSON file that describes your infrastructure</li>
<li>Use the AWS-CLI or GUI to launch (or delete) your infrastructure</li>
</ol>
<p>Luckily AWS has great <a href="https://docs.aws.amazon.com/codebuild/latest/userguide/cloudformation-vpc-template.html">sample docs</a>, and I have added VPN Gateway parts, extra subnets, and my naming scheme to the code below (also available on my <a href="https://github.com/dkuchenski/thenetworkstack-aws/blob/master/cloudformation-vpc-create.yaml">github</a>). YAML is easy to read, so feel free to take and change what you need for your environment:</p>
<pre tabindex="0"><code>Description: 

    This template deploys a VPC, with three public and private subnets spread 
    across three Availability Zones. It deploys an Internet Gateway, with a default 
    route in the public subnets. It deploys three NAT Gateways (one in each AZ), 
    and default routes for them in the private subnets. It deploys a VPN gateway,
    attaches the gateway to the VPC and enables route propagation in all route tables.

Parameters:
    EnvironmentName:
        Description: An environment name that will be prefixed to resource names
        Type: String
        Default: thenetworkstack
    EnvironmentLocation:
        Description: Name of the AWS region that is being used (ex. us-west-2)
        Type: String
        Default: us-west-2
    VpcCIDR:
        Description: Please enter the IP range (CIDR notation) for this VPC
        Type: String
        Default: 10.64.0.0/19
    PublicSubnet1CIDR:
        Description: Please enter the IP range (CIDR notation) for the public subnet in the first Availability Zone
        Type: String
        Default: 10.64.0.0/22
    PublicSubnet2CIDR:
        Description: Please enter the IP range (CIDR notation) for the public subnet in the second Availability Zone
        Type: String
        Default: 10.64.4.0/22
    PublicSubnet3CIDR:
        Description: Please enter the IP range (CIDR notation) for the public subnet in the third Availability Zone
        Type: String
        Default: 10.64.8.0/22
    PrivateSubnet1CIDR:
        Description: Please enter the IP range (CIDR notation) for the private subnet in the first Availability Zone
        Type: String
        Default: 10.64.16.0/22
    PrivateSubnet2CIDR:
        Description: Please enter the IP range (CIDR notation) for the private subnet in the second Availability Zone
        Type: String
        Default: 10.64.20.0/22
    PrivateSubnet3CIDR:
        Description: Please enter the IP range (CIDR notation) for the private subnet in the third Availability Zone
        Type: String
        Default: 10.64.24.0/22
Resources:
    VPC: 
        Type: AWS::EC2::VPC
        Properties:
            CidrBlock: !Ref VpcCIDR
            EnableDnsSupport: True
            EnableDnsHostnames: True
            Tags: 
                - Key: Name 
                  Value: !Sub ${EnvironmentName}-vpc
    InternetGateway:
        Type: AWS::EC2::InternetGateway
        Properties:
            Tags:
                - Key: Name
                  Value: !Sub ${EnvironmentName}-igw
    VPNGateway: 
        Type: AWS::EC2::VPNGateway
        Properties: 
            Type: ipsec.1
            Tags: 
                - Key: Name
                  Value: !Sub ${EnvironmentName}-vpg
    InternetGatewayAttachment:
        Type: AWS::EC2::VPCGatewayAttachment
        Properties:
            InternetGatewayId: !Ref InternetGateway
            VpcId: !Ref VPC
    VPNGatewayAttachment:
        Type: AWS::EC2::VPCGatewayAttachment
        Properties:
            VpnGatewayId: !Ref VPNGateway
            VpcId: !Ref VPC
    PublicSubnet1: 
        Type: AWS::EC2::Subnet
        Properties:
            VpcId: !Ref VPC
            AvailabilityZone: !Select [ 0, !GetAZs &#39;&#39; ]
            CidrBlock: !Ref PublicSubnet1CIDR
            MapPublicIpOnLaunch: true
            Tags: 
                - Key: Name 
                  Value: !Sub ${EnvironmentName}-public-${EnvironmentLocation}a
    PublicSubnet2: 
        Type: AWS::EC2::Subnet
        Properties:
            VpcId: !Ref VPC
            AvailabilityZone: !Select [ 1, !GetAZs &#39;&#39; ]
            CidrBlock: !Ref PublicSubnet2CIDR
            MapPublicIpOnLaunch: true
            Tags: 
                - Key: Name 
                  Value: !Sub ${EnvironmentName}-public-${EnvironmentLocation}b
    PublicSubnet3: 
        Type: AWS::EC2::Subnet
        Properties:
            VpcId: !Ref VPC
            AvailabilityZone: !Select [ 2, !GetAZs &#39;&#39; ]
            CidrBlock: !Ref PublicSubnet3CIDR
            MapPublicIpOnLaunch: true
            Tags: 
                - Key: Name 
                  Value: !Sub ${EnvironmentName}-public-${EnvironmentLocation}c
    PrivateSubnet1: 
        Type: AWS::EC2::Subnet
        Properties:
            VpcId: !Ref VPC
            AvailabilityZone: !Select [ 0, !GetAZs &#39;&#39; ]
            CidrBlock: !Ref PrivateSubnet1CIDR
            MapPublicIpOnLaunch: false
            Tags: 
                - Key: Name 
                  Value: !Sub ${EnvironmentName}-private-${EnvironmentLocation}a
    PrivateSubnet2: 
        Type: AWS::EC2::Subnet
        Properties:
            VpcId: !Ref VPC
            AvailabilityZone: !Select [ 1, !GetAZs &#39;&#39; ]
            CidrBlock: !Ref PrivateSubnet2CIDR
            MapPublicIpOnLaunch: false
            Tags: 
                - Key: Name 
                  Value: !Sub ${EnvironmentName}-private-${EnvironmentLocation}b
    PrivateSubnet3: 
        Type: AWS::EC2::Subnet
        Properties:
            VpcId: !Ref VPC
            AvailabilityZone: !Select [ 2, !GetAZs &#39;&#39; ]
            CidrBlock: !Ref PrivateSubnet3CIDR
            MapPublicIpOnLaunch: false
            Tags: 
                - Key: Name 
                  Value: !Sub ${EnvironmentName}-private-${EnvironmentLocation}c
    NatGateway1EIP:
        Type: AWS::EC2::EIP
        DependsOn: InternetGatewayAttachment
        Properties: 
            Domain: vpc
    NatGateway2EIP:
        Type: AWS::EC2::EIP
        DependsOn: InternetGatewayAttachment
        Properties:
            Domain: vpc
    NatGateway3EIP:
        Type: AWS::EC2::EIP
        DependsOn: InternetGatewayAttachment
        Properties:
            Domain: vpc
    NatGateway1: 
        Type: AWS::EC2::NatGateway
        Properties: 
            AllocationId: !GetAtt NatGateway1EIP.AllocationId
            SubnetId: !Ref PublicSubnet1
            Tags:
                - Key: Name
                  Value: !Sub ${EnvironmentName}-${EnvironmentLocation}a
    NatGateway2: 
        Type: AWS::EC2::NatGateway
        Properties:
            AllocationId: !GetAtt NatGateway2EIP.AllocationId
            SubnetId: !Ref PublicSubnet2
            Tags:
                - Key: Name
                  Value: !Sub ${EnvironmentName}-${EnvironmentLocation}b
    NatGateway3: 
        Type: AWS::EC2::NatGateway
        Properties:
            AllocationId: !GetAtt NatGateway3EIP.AllocationId
            SubnetId: !Ref PublicSubnet3
            Tags:
                - Key: Name
                  Value: !Sub ${EnvironmentName}-${EnvironmentLocation}c
    PublicRouteTable:
        Type: AWS::EC2::RouteTable
        Properties: 
            VpcId: !Ref VPC
            Tags: 
                - Key: Name 
                  Value: !Sub ${EnvironmentName}-public
    DefaultPublicRoute: 
        Type: AWS::EC2::Route
        DependsOn: InternetGatewayAttachment
        Properties: 
            RouteTableId: !Ref PublicRouteTable
            DestinationCidrBlock: 0.0.0.0/0
            GatewayId: !Ref InternetGateway
    PublicSubnet1RouteTableAssociation:
        Type: AWS::EC2::SubnetRouteTableAssociation
        Properties:
            RouteTableId: !Ref PublicRouteTable
            SubnetId: !Ref PublicSubnet1
    PublicSubnet2RouteTableAssociation:
        Type: AWS::EC2::SubnetRouteTableAssociation
        Properties:
            RouteTableId: !Ref PublicRouteTable
            SubnetId: !Ref PublicSubnet2
    PublicSubnet3RouteTableAssociation:
        Type: AWS::EC2::SubnetRouteTableAssociation
        Properties:
            RouteTableId: !Ref PublicRouteTable
            SubnetId: !Ref PublicSubnet3
    PrivateRouteTable1:
        Type: AWS::EC2::RouteTable
        Properties: 
            VpcId: !Ref VPC
            Tags: 
                - Key: Name 
                  Value: !Sub ${EnvironmentName}-private-${EnvironmentLocation}a
    DefaultPrivateRoute1:
        Type: AWS::EC2::Route
        Properties:
            RouteTableId: !Ref PrivateRouteTable1
            DestinationCidrBlock: 0.0.0.0/0
            NatGatewayId: !Ref NatGateway1
    PrivateSubnet1RouteTableAssociation:
        Type: AWS::EC2::SubnetRouteTableAssociation
        Properties:
            RouteTableId: !Ref PrivateRouteTable1
            SubnetId: !Ref PrivateSubnet1
    PrivateRouteTable2:
        Type: AWS::EC2::RouteTable
        Properties: 
            VpcId: !Ref VPC
            Tags: 
                - Key: Name 
                  Value: !Sub ${EnvironmentName}-private-${EnvironmentLocation}b
    DefaultPrivateRoute2:
        Type: AWS::EC2::Route
        Properties:
            RouteTableId: !Ref PrivateRouteTable2
            DestinationCidrBlock: 0.0.0.0/0
            NatGatewayId: !Ref NatGateway2
    PrivateSubnet2RouteTableAssociation:
        Type: AWS::EC2::SubnetRouteTableAssociation
        Properties:
            RouteTableId: !Ref PrivateRouteTable2
            SubnetId: !Ref PrivateSubnet2
    PrivateRouteTable3:
        Type: AWS::EC2::RouteTable
        Properties: 
            VpcId: !Ref VPC
            Tags: 
                - Key: Name 
                  Value: !Sub ${EnvironmentName}-private-${EnvironmentLocation}c
    DefaultPrivateRoute3:
        Type: AWS::EC2::Route
        Properties:
            RouteTableId: !Ref PrivateRouteTable3
            DestinationCidrBlock: 0.0.0.0/0
            NatGatewayId: !Ref NatGateway3
    PrivateSubnet3RouteTableAssociation:
        Type: AWS::EC2::SubnetRouteTableAssociation
        Properties:
            RouteTableId: !Ref PrivateRouteTable3
            SubnetId: !Ref PrivateSubnet3
    VPNGatewayRouteProp: 
        Type: &#34;AWS::EC2::VPNGatewayRoutePropagation&#34;
        Properties:
            RouteTableIds: [!Ref PublicRouteTable, !Ref PrivateRouteTable1, !Ref PrivateRouteTable2, !Ref PrivateRouteTable3]
            VpnGatewayId: !Ref VPNGateway
        DependsOn: VPNGatewayAttachment
Outputs: 
    VPC: 
        Description: A reference to the created VPC
        Value: !Ref VPC
    PublicSubnets:
        Description: A list of the public subnets
        Value: !Join [ &#34;,&#34;, [ !Ref PublicSubnet1, !Ref PublicSubnet2, !Ref PublicSubnet3 ]]
    PrivateSubnets:
        Description: A list of the private subnets
        Value: !Join [ &#34;,&#34;, [ !Ref PrivateSubnet1, !Ref PrivateSubnet2, !Ref PrivateSubnet3 ]]
    PublicSubnet1:
        Description: A reference to the public subnet in the 1st Availability Zone
        Value: !Ref PublicSubnet1
    PublicSubnet2: 
        Description: A reference to the public subnet in the 2nd Availability Zone
        Value: !Ref PublicSubnet2
    PublicSubnet3: 
        Description: A reference to the public subnet in the 3rd Availability Zone
        Value: !Ref PublicSubnet3
    PrivateSubnet1:
        Description: A reference to the private subnet in the 1st Availability Zone
        Value: !Ref PrivateSubnet1
    PrivateSubnet2: 
        Description: A reference to the private subnet in the 2nd Availability Zone
        Value: !Ref PrivateSubnet2
    PrivateSubnet3: 
        Description: A reference to the private subnet in the 3rd Availability Zone
        Value: !Ref PrivateSubnet3
    VPNGateway:
        Description: A reference to the VPNGateway created in the VPC
        Value: !Ref VPNGateway
</code></pre><p>Once your YAML file is setup the way you want, you can log into your AWS account and then:</p>
<ol>
<li>Click Services -&gt; CloudFormation -&gt; Create new stack</li>
<li>Click &ldquo;Upload a template to Amazon S3&rdquo; and choose your YAML file</li>
<li>Give the stack a name, ex: prod-us-west-vpc</li>
<li>Change any default parameters if needed, then click &ldquo;Next&rdquo; and &ldquo;Create&rdquo;</li>
</ol>
<p>Your VPC will be created in the region the GUI is set to, and you can easily delete everything you created by deleting the CloudFormation stack.</p>
]]></content:encoded>
    </item>
    <item>
      <title>Ansible - BadHostKeyException</title>
      <link>https://thenetworkstack.com/ansible-badhostkeyexception/</link>
      <pubDate>Sat, 27 Jan 2018 18:58:42 +0000</pubDate>
      <guid>https://thenetworkstack.com/ansible-badhostkeyexception/</guid>
      <description>&lt;p&gt;When executing an ansible playbook, you may get the following error:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;An exception occurred during task execution. To see the full traceback, use -vvv. The error was: paramiko.BadHostKeyException: Host key &lt;span class=&#34;k&#34;&gt;for&lt;/span&gt; server switch-name does not match!
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;This probably happened after you changed the name of your network device, and generated new RSA keys.  Or, if you are using DNS device names in ansible, resolve the name of your network device from your ansible server and verify the DNS resolution is correct.  To fix the issue, edit your &amp;ldquo;known_hosts&amp;rdquo; file and remove the key associated with the network device throwing the error:&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>When executing an ansible playbook, you may get the following error:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">An exception occurred during task execution. To see the full traceback, use -vvv. The error was: paramiko.BadHostKeyException: Host key <span class="k">for</span> server switch-name does not match!
</span></span></code></pre></div><p>This probably happened after you changed the name of your network device, and generated new RSA keys.  Or, if you are using DNS device names in ansible, resolve the name of your network device from your ansible server and verify the DNS resolution is correct.  To fix the issue, edit your &ldquo;known_hosts&rdquo; file and remove the key associated with the network device throwing the error:</p>
<ol>
<li>Open your known_hosts file</li>
</ol>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">vi ~/.ssh/known_hosts
</span></span></code></pre></div><ol>
<li>Search for the line with the network device RSA key</li>
</ol>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">/network_device_name
</span></span></code></pre></div><ol>
<li>Delete the RSA key for that network device (&ldquo;dd&rdquo; deletes the entire line)</li>
</ol>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">dd
</span></span></code></pre></div><ol>
<li>Save the known_hosts file</li>
</ol>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl"><span class="c1">#Press the escape key first</span>
</span></span><span class="line"><span class="cl">:wq
</span></span></code></pre></div><p>If you don&rsquo;t want ansible to perform this check, edit your <strong>ansible.cfg</strong> file with:</p>
<pre tabindex="0"><code>host_key_checking = False
</code></pre>]]></content:encoded>
    </item>
    <item>
      <title>Pluribus Networks - Whitebox Fabric #NFD16</title>
      <link>https://thenetworkstack.com/pluribus-networks-whitebox-fabric-nfd16/</link>
      <pubDate>Fri, 03 Nov 2017 20:21:12 +0000</pubDate>
      <guid>https://thenetworkstack.com/pluribus-networks-whitebox-fabric-nfd16/</guid>
      <description>&lt;p&gt;On day two of &lt;a href=&#34;http://techfieldday.com/event/nfd16/&#34;&gt;Networking Field Day&lt;/a&gt;, Pluribus Networks gave us a rundown on what is possible with their Netvisor OS, whitebox hardware, and a distributed architecture. I was impressed with the flexibility of the solution, but like any design choice, there are some limitations to be aware of.&lt;/p&gt;
&lt;p&gt;As a relative newcomer to the Pluribus world, I wanted to know what Pluribus was made of. The answer?&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Whitebox (or Pluribus branded) switch &lt;strong&gt;hardware&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Layer 3&lt;/strong&gt; connectivity between switches&lt;/li&gt;
&lt;li&gt;Pluribus &lt;strong&gt;Netvisor Operating System&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&#34;hardware&#34;&gt;Hardware&lt;/h3&gt;
&lt;p&gt;Most switch hardware is now pretty generic, so Pluribus gives you the choice to run Dell, D-Link, Edge-Core or Pluribus hardware, which means the magic is really in the software. I&amp;rsquo;m not going to spend time going over &lt;a href=&#34;http://www.pluribusnetworks.com/products/open-hardware/&#34;&gt;hardware options&lt;/a&gt;, because with those choices, you should be able to easily find an option that fits your price/performance needs - that&amp;rsquo;s the beauty of whitebox.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>On day two of <a href="http://techfieldday.com/event/nfd16/">Networking Field Day</a>, Pluribus Networks gave us a rundown on what is possible with their Netvisor OS, whitebox hardware, and a distributed architecture. I was impressed with the flexibility of the solution, but like any design choice, there are some limitations to be aware of.</p>
<p>As a relative newcomer to the Pluribus world, I wanted to know what Pluribus was made of. The answer?</p>
<ul>
<li>Whitebox (or Pluribus branded) switch <strong>hardware</strong></li>
<li><strong>Layer 3</strong> connectivity between switches</li>
<li>Pluribus <strong>Netvisor Operating System</strong></li>
</ul>
<h3 id="hardware">Hardware</h3>
<p>Most switch hardware is now pretty generic, so Pluribus gives you the choice to run Dell, D-Link, Edge-Core or Pluribus hardware, which means the magic is really in the software. I&rsquo;m not going to spend time going over <a href="http://www.pluribusnetworks.com/products/open-hardware/">hardware options</a>, because with those choices, you should be able to easily find an option that fits your price/performance needs - that&rsquo;s the beauty of whitebox.</p>
<h3 id="layer-3">Layer 3</h3>
<p>Next on the list, why L3 connectivity? What about my precious L2 network? Well, the Netvisor OS uses VXLAN for L2 connectivity, which gives you some very interesting design flexibility. For example, you can run Cisco or Arista in your core/spine, and just use Pluribus at the edge/leaf nodes (where L2 actually matters). Your core provides L3 connectivity, and your Pluribus edge will route all our L2 traffic as needed over L3 via VXLAN. Why would you do this? How about lowering upgrade costs by leaving your core as-is. Or run two different fabrics side by side. Maybe span your L2 edge across datacenters? Well&hellip;let&rsquo;s not get too crazy&hellip;</p>
<p>Pluribus will advertise Netvisor OS as a DCI solution, but like I mentioned before, every design has a trade-off, and generally L2 DCI has a <a href="http://blog.ipspace.net/2011/12/large-scale-l2-dci-true-story.html">steep price</a> - Pluribus is no different. It is important to ask questions like &ldquo;What happens to both sides of the fabric if the DCI goes down&rdquo;. The good part? The Netvisor fabric will continue to run as-is in split brain mode.  The bad? You will be locked from making any configuration changes on any side until the DCI is restored. Personally, I would run two separate fabrics that are not dependent on the DCI.</p>
<h3 id="netvisor-operating-system">Netvisor Operating System</h3>
<p>Now, the most interesting part of the Pluribus solution - Netvisor OS. There are so many different features and components, but I&rsquo;m only going to focus on two areas that grabbed my attention during the presentation:</p>
<ol>
<li><strong>Management Capabilities</strong></li>
<li><strong>Network Virtualization</strong></li>
</ol>
<h4 id="management-capabilities"><em>Management Capabilities</em></h4>
<p>Immediately I noticed that there are no controllers running the Netvisor OS fabric. Each switch is running the Netvisor OS application, with full-mesh connectivity to all other switches in the fabric. You can log into the CLI <em>or</em> Web <em>or</em> API from <em>any</em> switch and manage the entire fabric! Besides fabric wide configuration, you can also revert changes with <strong>fabric wide rollback</strong>. While controller-less has it&rsquo;s benefits, there are some scaling limitations to be aware of that other &ldquo;controller-required&rdquo; solutions do not encounter.  Right now, a Pluribus network is limited to 40 switches in a single fabric. Considering two top-of-rack switches should easily be able to support 1000 VM&rsquo;s in any modern design (in <a href="/the-half-rack-datacenter/">half a rack</a>), this shouldn&rsquo;t be a concern for many, but it&rsquo;s good to be aware.</p>
<p>Pluribus has also built out integrations with other management platforms, like VMware and Nutanix. The VMware integration works closely with all the major VMware products - ESXi, VSAN, and NSX. The Netvisor OS switch fabric will automatically build networks and VXLAN tunnels to support new ESXi hosts coming online and on-demand vMotions to ensure full VM mobility across the fabric. VSAN cluster multicast configurations are completely automated on the network side. NSX is particularly interesting, as Netvisor OS doesn&rsquo;t just provide L3 connectivity for NSX networks, it also provides visibility into the traffic <em><strong>inside</strong></em> the NSX VXLAN tunnels.</p>
<p>On top of management flexibility and third-party integrations, Pluribus has also built out a analytics/telemetry platform that allows deep visibility into all your network traffic. In the future, I&rsquo;d like to see Pluribus provide a tight integration with Kubernetes for container networking.</p>
<h4 id="network-virtualization"><em>Network Virtualization</em></h4>
<p>100% Network/Tenant Virtualization. Not everyone <em>needs</em> this feature, but if you do, this is incredibly slick. Pluribus has virtualized the entire network stack for us, just like server hypervisors have done for the systems guys. When you create a new &ldquo;tenant&rdquo; in Netvisor OS, the tenant will have their own management portal, full set of VLANs, routing protocols, and policies - all running on the same underlying hardware. Tenant &ldquo;A&rdquo; can log into the CLI and make changes completely independent of Tenant &ldquo;B&rdquo;. This concept may not be completely new if you are used to working with VDCs on Cisco Nexus 7ks, but if you are used to working on Nexus 9ks (which is what Cisco is pushing for all new datacenter deployments - especially if you are using VXLAN), then this feature will be new to you.</p>
<p><img alt="pluribus-virtualization" loading="lazy" src="/images/2017/09/pluribus-virtualization.PNG"></p>
<p>Even if you&rsquo;re not a multi-tenant datacenter provider, virtualizing your network infrastructure can be used for a number of scenarios:</p>
<ul>
<li>Separate Dev, QA and Prod environments</li>
<li>Separate External, DMZ and Internal networks</li>
<li>PCI network segments</li>
<li>Guest and Contractor networks</li>
<li>Automation testing</li>
</ul>
<p>This is just another way for the network to provide value by reducing network costs for separate environments, and decrease risk by limiting changes to each unique environment.</p>
<p>For new datacenter builds, or even more mild datacenter refreshes, Pluribus has the capability to fit in with a solid set of features and integrations. Giving network operators the choice to bring our own hardware means we&rsquo;re not limited by the vendor&rsquo;s hardware pricing or design. And while Pluribus is far from the only company providing a network operating system on whitebox hardware, their network management and virtualization stack are differentiating features that deserve a look.</p>
<blockquote>
<p><strong>Disclosure:</strong> I attended this presentation as part of Networking Field Day, a <a href="http://techfieldday.com/">Tech Field Day</a> event. All expenses related to the event were sponsored, in addition to any free swag given out by vendors. All opinions expressed on <a href="/">The Network Stack</a> are my own and not those of Tech Field Day, vendors or my employer.</p>
</blockquote>
]]></content:encoded>
    </item>
    <item>
      <title>Troubleshooting Disk Space Usage</title>
      <link>https://thenetworkstack.com/troubleshooting-disk-space-usage/</link>
      <pubDate>Mon, 16 Oct 2017 17:07:40 +0000</pubDate>
      <guid>https://thenetworkstack.com/troubleshooting-disk-space-usage/</guid>
      <description>&lt;p&gt;A couple years ago, my coworker wrote a great post on finding disk space issues in Linux and how to resolve them. Helped me out this weekend when a critical server was having issues, so wanted to post it here:&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;http://www.randomlyexpressed.com/diagnosing-linux-disk-usage/&#34;&gt;http://www.randomlyexpressed.com/diagnosing-linux-disk-usage/&lt;/a&gt;&lt;/p&gt;
&lt;hr&gt;
&lt;p&gt;&lt;strong&gt;For future reference &lt;em&gt;(after reading the post above)&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Show filesystem usage:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;~$ df -h
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Show &lt;em&gt;all&lt;/em&gt; files/directories consuming space:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;~$ du -kx / &lt;span class=&#34;p&#34;&gt;|&lt;/span&gt; sort -nr &lt;span class=&#34;p&#34;&gt;|&lt;/span&gt; more
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Show directories in current location:&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>A couple years ago, my coworker wrote a great post on finding disk space issues in Linux and how to resolve them. Helped me out this weekend when a critical server was having issues, so wanted to post it here:</p>
<p><a href="http://www.randomlyexpressed.com/diagnosing-linux-disk-usage/">http://www.randomlyexpressed.com/diagnosing-linux-disk-usage/</a></p>
<hr>
<p><strong>For future reference <em>(after reading the post above)</em></strong></p>
<p>Show filesystem usage:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">~$ df -h
</span></span></code></pre></div><p>Show <em>all</em> files/directories consuming space:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">~$ du -kx / <span class="p">|</span> sort -nr <span class="p">|</span> more
</span></span></code></pre></div><p>Show directories in current location:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">~$ du -hc <span class="p">|</span> sort -h
</span></span><span class="line"><span class="cl">~$ du -hc --max<span class="o">=</span><span class="m">1</span> <span class="p">|</span> sort -h <span class="c1">#This limits your directory listing to one level</span>
</span></span></code></pre></div><p>List files in directory:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">~$ ls -larth
</span></span></code></pre></div><p>List files in directory sorted by size, ascending:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">~$ ls -lSrh
</span></span></code></pre></div><p>List and then delete any .log file older than 7 days:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">~$ find . -type f -name <span class="s2">&#34;*.log&#34;</span> -mtime +7 -print -exec rm -fr <span class="o">{}</span> <span class="se">\;</span>
</span></span></code></pre></div><p>Another easy way to reclaim space by removing unused dependencies:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">~$ apt-get autoremove
</span></span></code></pre></div>]]></content:encoded>
    </item>
    <item>
      <title>Ansible - VLAN Provisioning</title>
      <link>https://thenetworkstack.com/ansible-vlan-provisioning/</link>
      <pubDate>Wed, 11 Oct 2017 05:44:05 +0000</pubDate>
      <guid>https://thenetworkstack.com/ansible-vlan-provisioning/</guid>
      <description>&lt;p&gt;&lt;em&gt;Note: There is a &lt;a href=&#34;https://thenetworkstack.com/ansible-2-5-new-network-modules/&#34;&gt;newer guide&lt;/a&gt; for VLAN provisioning with Ansible 2.5&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Ansible is such a powerfull tool that it can be easy to get lost in all the possibilities. Running your &amp;ldquo;network infrastructure as code&amp;rdquo; with full configs auto-generated and checked into git is the dream, but we can &lt;em&gt;start simple&lt;/em&gt; with automating time-consuming tasks. This post will focus on getting ansible up and running with a playbook to configure new vlans across your switches.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p><em>Note: There is a <a href="/ansible-2-5-new-network-modules/">newer guide</a> for VLAN provisioning with Ansible 2.5</em></p>
<p>Ansible is such a powerfull tool that it can be easy to get lost in all the possibilities. Running your &ldquo;network infrastructure as code&rdquo; with full configs auto-generated and checked into git is the dream, but we can <em>start simple</em> with automating time-consuming tasks. This post will focus on getting ansible up and running with a playbook to configure new vlans across your switches.</p>
<blockquote>
<p><a href="/ansible-installation/">see my guide for installing Ansible on Ubuntu 16.04</a></p>
</blockquote>
<p>First, we need to build our Ansible <strong>hosts</strong> file which is an inventory list of our network devices. We can categorize and group devices within the hosts file, which makes configuring the right devices easier down the road.</p>
<pre tabindex="0"><code>root@ubuntu:~# cd /etc/ansible/
root@ubuntu:/etc/ansible# vi hosts
# This is the default ansible &#39;hosts&#39; file.
#
[networkdevices:children]
switches
routers

[switches]
switch01.thenetworkstack.com
switch02 ansible_host=10.170.200.1
10.170.200.2

[routers]
</code></pre><p>I created a parent group called <strong>networkdevices</strong>, and then made two &ldquo;child&rdquo; groups called <strong>switches</strong> and <strong>routers</strong>. For the VLAN playbook we are going to create, we only really care about the <strong>switches</strong> group, but I wanted to show how you can easily create a grouping structure. For defining your actual network devices, there are three main options shown above in the <strong>switches</strong> group:</p>
<ul>
<li>The fully-qualified domain name of the device (assuming you have DNS working)</li>
<li>A local device name, and define the device ip address with the &ldquo;ansible_host&rdquo; variable</li>
<li>The ip address of the device</li>
</ul>
<p>After you configure your Ansible hosts file with a network device or two, we can start building a <strong>playbook</strong>. A playbook is Ansible&rsquo;s way of defining a set of tasks. Within a playbook, we will use <strong>network modules</strong> to run different types of commands (for example, <em>show</em> vs <em>config</em>) on our devices. Ansible comes with support for most major network devices, listed here: <a href="http://docs.ansible.com/ansible/latest/list_of_network_modules.html">http://docs.ansible.com/ansible/latest/list_of_network_modules.html</a></p>
<p>Let&rsquo;s get started with our playbook. First, give your playbook a name, and make sure it ends in &ldquo;.yml&rdquo;. To start your YAML file, the first line should be &ldquo;&mdash;&rdquo;, and remember <strong>spaces matter</strong>. If you get syntax errors, check your spacing on each line:</p>
<pre tabindex="0"><code>root@ubuntu:/etc/ansible# vi network_new-vlan.yml
---
- hosts: switches
  connection: local

  tasks:
    - name: Show VLAN
      ios_command:
        commands: show vlan brief
      register: show_vlan

    - debug: var=show_vlan.stdout_lines
</code></pre><p>This simple playbook just runs a command (show vlan brief), registers the output of that command to a variable (show_vlan) and then displays the formatted value of the variable (stdout_lines).</p>
<p>You may notice we don&rsquo;t have any credentials stored in this playbook - we will provide them when we run the playbook (I&rsquo;m using <em>cisco</em> as my username):</p>
<pre tabindex="0"><code>root@ubuntu:/etc/ansible# ansible-playbook network_new-vlan.yml -u cisco -k
SSH password:

PLAY [switches] *******************************************************************************************************************************************************************

TASK [Gathering Facts] ************************************************************************************************************************************************************
ok: [10.170.200.2]

TASK [Show VLAN] *****************************************************************************************************************************************************************
ok: [10.170.200.2]

TASK [debug] **********************************************************************************************************************************************************************
ok: [10.170.200.2] =&gt; {
    &#34;show_vlan.stdout_lines&#34;: [
        [
            &#34;VLAN Name                             Status    Ports&#34;,
            &#34;---- -------------------------------- --------- -------------------------------&#34;,
            &#34;1    default                          active    Gi0/10, Gi0/11, Gi0/12&#34;,
            &#34;10   FW_VLAN                          active    Gi0/3, Gi0/4, Gi0/5, Gi0/6, Gi0/7&#34;,
            &#34;20   Data_VLAN                        active    Gi0/1, Gi0/2&#34;,
            &#34;30   Voice_VLAN                       active    Gi0/1, Gi0/2, Gi0/3, Gi0/4, Gi0/5, Gi0/6, Gi0/7&#34;,
            &#34;1002 fddi-default                     act/unsup &#34;,
            &#34;1003 token-ring-default               act/unsup &#34;,
            &#34;1004 fddinet-default                  act/unsup &#34;,
            &#34;1005 trnet-default                    act/unsup&#34;
        ]
    ]
}

PLAY RECAP ************************************************************************************************************************************************************************
10.170.200.2                : ok=3    changed=0    unreachable=0    failed=0
</code></pre><p>Pretty simple! I currently only have a single device in my Ansible hosts file, but with multiple devices you can issue show commands across every switch in your network. You can also modify the playbook above with any &ldquo;show&rdquo; command.</p>
<p>We used the &ldquo;ios_command&rdquo; network module above, but to actually make changes, we will need to use the &ldquo;ios_config&rdquo; network module.</p>
<p>When creating playbooks for common tasks (like creating a vlan), I try to use variables as much as possible so the playbook is easy to reuse. You can see below that I define the <strong>vlan_id</strong> and <strong>vlan_name</strong> variable, which makes them very easy to change when needed - you don&rsquo;t need to edit anything else in the playbook.</p>
<pre tabindex="0"><code>---
- hosts: switches
  connection: local
  vars:
    vlan_id: 998
    vlan_name: Ansible_VLAN

  tasks:
    - name: Configure VLAN ID
      ios_config:
        lines:
          - vlan {{ vlan_id }}

    - name: Configure VLAN Name
      ios_config:
        lines:
          - name {{ vlan_name }}
        parents: vlan {{ vlan_id }}

    - name: Show VLAN
      ios_command:
        commands: show vlan brief
      register: show_vlan

    - debug: var=show_vlan.stdout_lines
</code></pre><p>As you can see, we added the VLAN configuration <em>before</em> our &ldquo;Show VLAN&rdquo; task. There are two parts to configuring a VLAN - the VLAN ID and the VLAN name. The first task configures the VLAN ID on the switch, then the second task tells Ansible to configure the VLAN name under the VLAN ID we just created. Since the VLAN name is part of a heirarchical configuration in Cisco IOS, we can use the &ldquo;parents&rdquo; feature in Ansible to let it know that the name is placed under the VLAN ID configuration.</p>
<p>After the VLAN configuration is completed, our &ldquo;Show VLAN&rdquo; task will display the VLAN database with our newly created VLAN.</p>
<pre tabindex="0"><code>root@ubuntu:/etc/ansible# ansible-playbook network_new-vlan.yml -u admin -k
SSH password:

PLAY [switches] *******************************************************************************************************************************************************************

TASK [Gathering Facts] ************************************************************************************************************************************************************
ok: [10.170.200.2]

TASK [Configure VLAN ID] **********************************************************************************************************************************************************
changed: [10.170.200.2]

TASK [Configure VLAN Name] ********************************************************************************************************************************************************
changed: [10.170.200.2]

TASK [Show VLAN] ******************************************************************************************************************************************************************
ok: [10.170.200.2]

TASK [debug] **********************************************************************************************************************************************************************
ok: [10.170.200.2] =&gt; {
    &#34;show_vlan.stdout_lines&#34;: [
        [
            &#34;VLAN Name                             Status    Ports&#34;,
            &#34;---- -------------------------------- --------- -------------------------------&#34;,
            &#34;1    default                          active    Gi0/10, Gi0/11, Gi0/12&#34;,
            &#34;10   FW_VLAN                          active    Gi0/3, Gi0/4, Gi0/5, Gi0/6, Gi0/7&#34;,
            &#34;20   Data_VLAN                        active    Gi0/1, Gi0/2&#34;,
            &#34;30   Voice_VLAN                       active    Gi0/1, Gi0/2, Gi0/3, Gi0/4, Gi0/5, Gi0/6, Gi0/7&#34;,
            &#34;998  Ansible_VLAN                     active    &#34;,
            &#34;1002 fddi-default                     act/unsup &#34;,
            &#34;1003 token-ring-default               act/unsup &#34;,
            &#34;1004 fddinet-default                  act/unsup &#34;,
            &#34;1005 trnet-default                    act/unsup&#34;
        ]
    ]
}

PLAY RECAP ************************************************************************************************************************************************************************
10.170.200.2                : ok=5    changed=2    unreachable=0    failed=0

root@ubuntu:/etc/ansible#
</code></pre><p>Success!!</p>
<p>Now when a new VLAN needs to be provisioned, just change the <strong>vlan_id</strong> and <strong>vlan_name</strong> vars, and you can configure a VLAN across your entire network in less than a minute.</p>
<p>You can also find the <strong>hosts</strong> file and <strong>playbook</strong> on my github: <a href="https://github.com/dkuchenski/thenetworkstack-ansible/tree/master/vlan-provisioning">https://github.com/dkuchenski/thenetworkstack-ansible/tree/master/vlan-provisioning</a></p>
]]></content:encoded>
    </item>
    <item>
      <title>Cisco Config Basics - User Port</title>
      <link>https://thenetworkstack.com/cisco-config-basics-user-port/</link>
      <pubDate>Fri, 29 Sep 2017 14:58:38 +0000</pubDate>
      <guid>https://thenetworkstack.com/cisco-config-basics-user-port/</guid>
      <description>&lt;p&gt;This is my first post in a series I&amp;rsquo;m calling &lt;strong&gt;Cisco Config Basics&lt;/strong&gt;. These posts will serve as a reference for anyone new to Cisco, or those of you just looking to compare your current configs. After the full config, I will explain each config item line-by-line.&lt;/p&gt;
&lt;p&gt;In a campus network, the User Port has a lot riding on it - vlan config, security controls, DHCP protection, PoE settings&amp;hellip;not to mention new IPv6 policy that is needed &lt;strong&gt;even if you&amp;rsquo;re not running IPv6&lt;/strong&gt; in your network! As promised I will give the full config first, then explain everything:&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>This is my first post in a series I&rsquo;m calling <strong>Cisco Config Basics</strong>. These posts will serve as a reference for anyone new to Cisco, or those of you just looking to compare your current configs. After the full config, I will explain each config item line-by-line.</p>
<p>In a campus network, the User Port has a lot riding on it - vlan config, security controls, DHCP protection, PoE settings&hellip;not to mention new IPv6 policy that is needed <strong>even if you&rsquo;re not running IPv6</strong> in your network! As promised I will give the full config first, then explain everything:</p>
<p><strong>User Port Config (Catalyst 2960X - IOS 15.2.2E6)</strong></p>
<pre tabindex="0"><code>interface GigabitEthernet1/0/1
 switchport access vlan 10
 switchport mode access
 switchport voice vlan 20
 switchport port-security maximum 6
 switchport port-security violation  restrict
 switchport port-security aging time 2
 switchport port-security
 load-interval 30
 no snmp trap link-status
 no logging event link-status
 power inline police action log
 no power efficient-ethernet
 storm-control broadcast level pps 1k 500
 storm-control action shutdown
 storm-control action trap
 spanning-tree portfast
 ip dhcp snooping limit rate 100
 ipv6 nd raguard attach-policy RA-BLOCK
 ipv6 dhcp guard attach-policy DHCP-CLIENT
</code></pre><p><em>Whew, that&rsquo;s a decent amount of config!</em> Let&rsquo;s take a look:</p>
<p><code>switchport access vlan 10</code><br>
Sets the &lsquo;untagged&rsquo; vlan for the port. Most end-user computers/devices are not vlan aware, so this is the vlan the connected device will join.</p>
<p><code>switchport mode access</code><br>
Forces the port into access mode instead of &lsquo;dynamic desirable&rsquo; - it will not negotiate to be a trunk port.</p>
<p><code>switchport voice vlan 20</code><br>
Set the &rsquo;tagged&rsquo; vlan for VoIP devices. VoIP phones need to know to tag their traffic to this vlan, usually done through CDP, LLDP, or DHCP options.</p>
<p><code>switchport port-security maximum 6</code><br>
Allows a maximum of six devices (mac-addresses) connected to the port. At a minimum, two mac-addresses need to be allowed for their computer and phone. 6 devices allows for a little wiggle room, while still protecting the switch from any mac-address flooding attempts.</p>
<p><code>switchport port-security violation restrict</code><br>
The &lsquo;restrict&rsquo; parameter will drop traffic from any mac-addresses past the maximum (6) limit. You can also use the &lsquo;shutdown&rsquo; option to shut down the port instead.</p>
<p><code>switchport port-security aging time 2</code><br>
If a device is connected to a port, but inactive, it&rsquo;s mac-address will be flushed after 2 minutes. Devices that physically disconnect will have their mac-address flushed immediately.</p>
<p><code>switchport port-security</code><br>
The port-security commands above do not take effect until port-security is enabled on the port with this command. By default, port-security will automatically shutdown the port when a new MAC address is detected, which is why we tuned the config above with &lsquo;violation restrict&rsquo; and &lsquo;aging time 2&rsquo;. You can see the port-security policy on an interface with the command &lsquo;show port-security interface g1/0/1&rsquo;.</p>
<p><code>load-interval 30</code><br>
By default, Cisco calculates the load (utilization) of an interface over a 5 minute average. This makes it harder to see bursty traffic, so I prefer to lower the interval to the minimum - 30 seconds.</p>
<p><code>no snmp trap link-status</code><br>
No need to flood your snmp trap server with interface up/down events for user ports. This information isn&rsquo;t generally helpful since users will be connecting and disconnecting their computers all the time, better to get rid of the noise.</p>
<p><code>no logging event link-status</code><br>
Same as the command above, but for your switch logs and syslog server.</p>
<p><code>power inline police action log</code><br>
Instead of disabling a port for exceeding power allocation, a syslog message is generated, notifying you of a misbehaving device.</p>
<p><code>no power efficient-ethernet</code><br>
Disables Energy Efficient Ethernet (EEE - 802.3az), which is supposed to reduce power consumption during idle usage, but I&rsquo;ve seen weird behavior from a number of devices that is solved by disabled EEE.</p>
<p><code>storm-control broadcast level pps 1k 500</code><br>
Storm-control is used to detect a flood of broadcast, unknown unicast, or unknown multicast traffic and shutdown the port. The first number represents the &lsquo;rising threshold&rsquo; after which traffic is blocked. The second number is the &lsquo;falling threshold&rsquo; where traffic will no longer be blocked if it falls back below this value. There are multiple ways to configure this feature (% utilization, bps, pps), but this example uses pps to enforce a 1000 packet-per-second threshold for broadcast traffic, which I have found to be a good general number to start. This number will vary and can be tuned depending on your environment.</p>
<p><code>storm-control action shutdown</code><br>
When a storm is detected, the port is shutdown. The port can recover with the &rsquo;errdisable recovery&rsquo; global policy shown below or manually typing &rsquo;no shutdown&rsquo; in the interface configuration.</p>
<p><code>storm-control action trap</code><br>
Also sends an SNMP trap when the storm is detected, in addition to the shutdown above.</p>
<p><code>spanning-tree portfast</code><br>
Spanning-tree portfast places the port in the forwarding state immediately, instead of going through all the initial spanning-tree states. Helps the connected computer obtain an IP address and get on the network faster. Only use this if connecting to a non-switch device.</p>
<p><code>ip dhcp snooping limit rate 100</code><br>
Limits the number of DHCP requests to 100 requests per second. This prevents a misconfigured or malicious device from DOS&rsquo;ing your DHCP server.</p>
<p><code>ipv6 nd raguard attach-policy RA-BLOCK</code><br>
Blocks rogue IPv6 router advertisement (RA) messages. Even if you do not use IPv6 in your network, a rogue device could start advertising itself as a IPv6 router and funnel traffic through itself, since most modern operating systems will prefer IPv6 over IPv4.</p>
<p><code>ipv6 dhcp guard attach-policy DHCP-CLIENT</code><br>
This blocks IPv6 DHCP server replies and advertisements from unauthorized (end-user) ports.</p>
<hr>
<p><strong>Global Switch Config</strong></p>
<p>In addition to the user port config, there are global switch settings that are needed as well.</p>
<pre tabindex="0"><code>spanning-tree mode rapid-pvst
spanning-tree logging
spanning-tree portfast bpduguard default

errdisable recovery cause udld
errdisable recovery cause bpduguard
errdisable recovery cause link-flap
errdisable recovery cause psecure-violation
errdisable recovery cause dhcp-rate-limit
errdisable recovery cause storm-control

ipv6 nd raguard policy RA-ALLOW
 device-role router
ipv6 nd raguard policy RA-BLOCK
 device-role host #default role
ipv6 snooping logging packet drop
ipv6 snooping logging resolution-veto
ipv6 dhcp guard policy DHCP-CLIENT
 device-role client #default role
ipv6 dhcp guard policy DHCP-TRUST
 trusted-port

ip dhcp snooping vlan 1-4094
no ip dhcp snooping information option
ip dhcp snooping

interface Port-channel1
 ip dhcp snooping trust
</code></pre><p><code>spanning-tree mode rapid-pvst</code><br>
Enables rapid per-vlan spanning-tree, which I would recommend as the default spanning-tree setting for a Cisco network.</p>
<p><code>spanning-tree logging</code><br>
Spanning-tree events are logged in the device logs and syslog.</p>
<p><code>spanning-tree portfast bpduguard default</code><br>
Enables bpduguard on every port that has &lsquo;spanning-tree portfast&rsquo; configured. With this, the switch will shutdown any port that recieves bpdus, which protects your network from rogue switches being plugged in and potentially becoming spanning-tree root.</p>
<p><code>errdisable recovery cause udld</code><br>
<code>errdisable recovery cause bpduguard</code><br>
<code>errdisable recovery cause link-flap</code><br>
<code>errdisable recovery cause psecure-violation</code><br>
<code>errdisable recovery cause dhcp-rate-limit</code><br>
<code>errdisable recovery cause storm-control</code><br>
Sets auto-recovery for the policies above (udld, bpduguard, link-flap, psecure-violation, dhcp-rate-limit, storm-control). Default recovery is 300 seconds. If the issue is still present after auto-recovery, the port will shut and wait another 300 seconds.</p>
<p><code>ipv6 nd raguard policy RA-ALLOW</code><br>
<code>device-role router</code><br>
This defines a raguard policy you can attach to a port. This policy would be attached to a port connected to your IPv6 router, as the &lsquo;device-role router&rsquo; allows RA&rsquo;s on the port.</p>
<p><code>ipv6 nd raguard policy RA-BLOCK</code><br>
<code>device-role host (default)</code><br>
This raguard policy is meant to be attached to a user-facing port, and blocks any RA&rsquo;s received on the port.</p>
<p><code>ipv6 snooping logging packet drop</code><br>
When IPv6 DHCP messages are dropped, a syslog message is generated.</p>
<p><code>ipv6 snooping logging resolution-veto</code><br>
Additional logging in case the switch &lsquo;vetos&rsquo; an IPv6 neighbor solicitation.</p>
<p><code>ipv6 dhcp guard policy DHCP-CLIENT</code><br>
<code>device-role client (default)</code><br>
This defines a dhcp guard policy that you can attach to a port. With the role &lsquo;client&rsquo; the port will block ingress IPv6 DHCP server reply and advertisement messages.</p>
<p><code>ipv6 dhcp guard policy DHCP-TRUST</code><br>
<code>trusted-port</code><br>
The &rsquo;trusted-port&rsquo; setting in this DHCP guard policy allows IPv6 DHCP server reply and advertisement messages. In the configuration example, we are applying the &lsquo;ipv6 dhcp guard policy DHCP-CLIENT&rsquo; on each indivitual port, so we don&rsquo;t need to apply a trusted-port policy to the uplink interface. If you applied the &lsquo;DHCP-CLIENT&rsquo; policy to the entire VLAN, then you would need to apply the trusted-port policy on an uplink, but unfortunately Cisco does currently support use of trusted-port policies on etherchannel interfaces.</p>
<p><code>ip dhcp snooping vlan 1-4094</code><br>
You must specify which VLANs IPv4 DHCP snooping is enabled on, and so I enable it for all VLANs. Makes it easy when you add a new VLAN, you don&rsquo;t have to also modify your DHCP snooping config.</p>
<p><code>no ip dhcp snooping information option</code><br>
Disables the switch from adding option 82 into the DHCP request before forwarding to DHCP server, which I&rsquo;ve never seen needed (and can potentially break DHCP if you don&rsquo;t disable it).</p>
<p><code>ip dhcp snooping</code><br>
Enables IPv4 DHCP snooping on the switch. DHCP snooping uses the concept of &rsquo;trust&rsquo; to only allow DHCP server reply messages from specified ports. This protects you from someone plugging in a DHCP server and handing out IP addresses to your clients.</p>
<p><code>interface Port-channel1</code><br>
<code>ip dhcp snooping trust</code><br>
This is an example of an IPv4 &rsquo;trusted&rsquo; DHCP port. I&rsquo;m using a port-channel interface, but it can be any type of port, typically an interface that is facing your DHCP server.</p>
<hr>
<p><strong>Final Thoughts</strong></p>
<p>After all that, is there anything still left for user facing ports? Of course, <strong>QoS</strong>! I won&rsquo;t be going over QoS in this post, but it&rsquo;s an important thing to research and implement correctly, especially if you have VoIP/Video in your environment.</p>
<p>The config above will <em>vary based on your environment</em>, but it&rsquo;s a solid start to configuring and securing your user edge. Please let me know if you have any suggestions or improvements in the comments below!</p>
]]></content:encoded>
    </item>
    <item>
      <title>Veriflow - The Formal Future #NFD16</title>
      <link>https://thenetworkstack.com/veriflow-the-formal-future-nfd16/</link>
      <pubDate>Wed, 20 Sep 2017 04:37:09 +0000</pubDate>
      <guid>https://thenetworkstack.com/veriflow-the-formal-future-nfd16/</guid>
      <description>&lt;p&gt;&lt;strong&gt;Formal verification.&lt;/strong&gt; Two words unfamiliar to me before Networking Field Day. To provide a brief summary, formal verification uses mathematical proofs to verify a system is working as designed – the same process used to create &lt;a href=&#34;https://www.quantamagazine.org/formal-verification-creates-hacker-proof-code-20160920/&#34;&gt;hacker-proof code&lt;/a&gt;. Veriflow has taken this method and applied it to networking to verify the intended design or operation of the network.&lt;/p&gt;
&lt;p&gt;But what does this actually mean to us as network operators? Instead of monitoring isolated metrics like an interfaces’ utilization, we can monitor the intent of the entire network as a whole, including security policies. As a practical example, you can write policy that says:&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p><strong>Formal verification.</strong> Two words unfamiliar to me before Networking Field Day. To provide a brief summary, formal verification uses mathematical proofs to verify a system is working as designed – the same process used to create <a href="https://www.quantamagazine.org/formal-verification-creates-hacker-proof-code-20160920/">hacker-proof code</a>. Veriflow has taken this method and applied it to networking to verify the intended design or operation of the network.</p>
<p>But what does this actually mean to us as network operators? Instead of monitoring isolated metrics like an interfaces’ utilization, we can monitor the intent of the entire network as a whole, including security policies. As a practical example, you can write policy that says:</p>
<p><code>The user network should never be able to access tcp port 3306 in the datacenter network.</code></p>
<p><em>and</em></p>
<p><code>Datacenter network links should always be redundant.</code></p>
<p>Veriflow will monitor the operational state of your network – mac address tables, route tables, access control lists, firewall rules, and alert you if your policy is violated. As more and more network devices are added to your network, this becomes an increasingly powerful tool.</p>
<p><img alt="veriflow-slide" loading="lazy" src="/images/2017/09/veriflow-slide.PNG"></p>
<p>Let’s get into the nitty gritty, <strong>how does this work</strong>? Veriflow’s solution is made up of two components – the “collector” and the “verification engine”. The collector is a VM that runs in your environment, using SSH credentials to log into your network devices and gather operational state using various &lsquo;show&rsquo; commands.</p>
<p>Once the collector has aggregated the data, it forwards all network info to the verification engine, which can be another local VM or SaaS environment run by Veriflow. The nice thing about the SaaS option is that the collector VM never shares your SSH credentials with the verification system. Once the data is in the verification system, it is modeled to predict network-wide behavior and evaluated against any policy rules you have created. Each time the collector retrieves data (user configurable intervals), this is considered a “network snapshot”, and is kept as long as you have the space to store it. A typical network snapshot is 1-2 MB per device. By keeping these snapshots, you have a documented history of your network, and you can go back to <em>any</em> point in time to see what has changed. Besides security policies, this can help you verify network operation after an operating system upgrade, since Veriflow will inform you of any state change, for example if a routing table is incorrect because of a misapplied route-map.</p>
<p>For Networking Field Day, Veriflow also announced the 2.0 version of its software with two features I wanted to callout:</p>
<p>First, <strong>CloudPredict</strong> enables the collector to use API credentials to connect to your AWS environment and gather routing table info, security group rules, and S3 bucket policies. Since “the cloud” can sometimes be a wild west run by developers, CloudPredict can allow you to monitor network and security changes even when others have write access to your accounts – like when you need to make sure your dev VPC is completely isolated from your PCI VPC.</p>
<p>Second, <strong>Preflight</strong> will model your network changes to see potential impact <em>before changes go live</em>. At launch, Preflight only models ACL changes, which is a good start towards more intelligent network change control.</p>
<p>With these new features, and others I haven’t mentioned yet (like automatic network diagram generation), Veriflow was one of my favorite presentations at <a href="http://techfieldday.com/event/nfd16/">NFD16</a>. I think Veriflow is showing us where the future of network monitoring and configuration verification is headed. Monitoring the network intent is much more elegant that writing individual alert rules for interface utilization, cpu and memory thresholds, and link up/down events. Testing network policy before applying to your live network – that’s a dream most of us can’t afford with completely redundant network hardware.</p>
<p>Veriflow is doing a lot right, and while listening to their presentation I couldn&rsquo;t help but think about how their platfrom could be expanded into additional areas. I&rsquo;ll be watching to see if any of the following will be rolled into future releases:</p>
<ol>
<li>Expand Preflight checks to include more components, with API access so we can build Preflight config verification into network automation workflows.</li>
<li>Network utilization analysis. If a link is becoming saturated, use historical data of other existing links to know where traffic should be moved to. If a network device fails, will traffic flow overload the remaining links?</li>
<li>Gather netflow data from the network to compare operational state to actual network flows - also use with Preflight checks to show what traffic flows would be affected.</li>
</ol>
<p>Formal verification and monitoring the &ldquo;intent&rdquo; of the network are exciting advances, and I believe will have a real impact for the network operator.</p>
<p><a href="https://www.veriflow.net/press/veriflow-delivers-industrys-first-verification-solution-hybrid-cloud-networks/">Veriflow 2.0 Press Release</a></p>
<blockquote>
<p><strong>Disclosure:</strong> I attended this presentation as part of Networking Field Day, a <a href="http://techfieldday.com/">Tech Field Day</a> event. All expenses related to the event were sponsored, in addition to any free swag given out by vendors. All opinions expressed on <a href="/">The Network Stack</a> are my own and not those of Tech Field Day, vendors or my employer.</p>
</blockquote>
]]></content:encoded>
    </item>
    <item>
      <title>SSH with Duo MFA and Active Directory</title>
      <link>https://thenetworkstack.com/ssh-with-duo-mfa-and-active-directory/</link>
      <pubDate>Wed, 30 Aug 2017 23:03:22 +0000</pubDate>
      <guid>https://thenetworkstack.com/ssh-with-duo-mfa-and-active-directory/</guid>
      <description>&lt;p&gt;Duo has thorough &lt;a href=&#34;https://duo.com/docs/duounix&#34;&gt;documentation&lt;/a&gt; for adding MFA to your SSH sessions, but there are a couple additional steps needed to also integrate with Active Directory. This post will go through the installation for both Duo and Active Directory for Ubuntu 16.04. For other Linux distros, the Duo documentation linked above has you covered.&lt;br&gt;
\&lt;/p&gt;
&lt;h4 id=&#34;system-components&#34;&gt;&lt;strong&gt;System components:&lt;/strong&gt;&lt;/h4&gt;
&lt;ul&gt;
&lt;li&gt;Ubuntu 16.04 server&lt;/li&gt;
&lt;li&gt;Duo MFA account&lt;/li&gt;
&lt;li&gt;Duo Unix package&lt;/li&gt;
&lt;li&gt;Centify Express for Active Directory integration&lt;br&gt;
\&lt;/li&gt;
&lt;/ul&gt;
&lt;h4 id=&#34;duo-installation&#34;&gt;&lt;strong&gt;Duo Installation:&lt;/strong&gt;&lt;/h4&gt;
&lt;p&gt;Install OpenSSL development headers and libraries:&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>Duo has thorough <a href="https://duo.com/docs/duounix">documentation</a> for adding MFA to your SSH sessions, but there are a couple additional steps needed to also integrate with Active Directory. This post will go through the installation for both Duo and Active Directory for Ubuntu 16.04. For other Linux distros, the Duo documentation linked above has you covered.<br>
\</p>
<h4 id="system-components"><strong>System components:</strong></h4>
<ul>
<li>Ubuntu 16.04 server</li>
<li>Duo MFA account</li>
<li>Duo Unix package</li>
<li>Centify Express for Active Directory integration<br>
\</li>
</ul>
<h4 id="duo-installation"><strong>Duo Installation:</strong></h4>
<p>Install OpenSSL development headers and libraries:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">apt-get install libssl-dev libpam-dev -y
</span></span></code></pre></div><p>Add Duo repository and install duo-unix package:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl"><span class="nb">echo</span> <span class="s1">&#39;deb http://pkg.duosecurity.com/Ubuntu xenial main&#39;</span> <span class="p">|</span> tee /etc/apt/sources.list.d/duosecurity.list
</span></span><span class="line"><span class="cl">curl -s https://duo.com/APT-GPG-KEY-DUO <span class="p">|</span> apt-key add -
</span></span><span class="line"><span class="cl">apt-get update
</span></span><span class="line"><span class="cl">apt-get install duo-unix
</span></span></code></pre></div><p>Edit <strong>/etc/duo/pam_duo.conf</strong> with your integration key, secret key, and API host. You can find these values in the <a href="https://admin.duosecurity.com">Duo Administration page</a> for your &ldquo;UNIX Application&rdquo;.</p>
<pre tabindex="0"><code>[duo]
; Duo integration key
ikey = XXXXXXXXXXXXXXXXXXXXXXX
; Duo secret key
skey = XXXXXXXXXXXXXXXXXXXXXXX
; Duo API host
host = XXXXXXXXXXXXXXXXXXXXXXX
; Send command for Duo Push authentication
;pushinfo = yes
</code></pre><h4 id="centrify-installation"><strong>Centrify Installation:</strong></h4>
<p>First, edit <strong>/etc/ssh/sshd_config</strong> so that ChallengeResponseAuthentication is set to &ldquo;yes&rdquo;</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl"><span class="c1"># Change to yes to enable challenge-response passwords (beware issues with</span>
</span></span><span class="line"><span class="cl"><span class="c1"># some PAM modules and threads)</span>
</span></span><span class="line"><span class="cl">ChallengeResponseAuthentication yes
</span></span></code></pre></div><p>Download, unzip, and install Centrify Express:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">wget https://downloads.centrify.com/products/centrify-suite/2017-update-1/centrify-suite-2017.1-deb7-x86_64.tgz
</span></span><span class="line"><span class="cl">tar -xvzf centrify-suite-2017.1-deb7-x86_64.tgz
</span></span><span class="line"><span class="cl">./install-express.sh
</span></span></code></pre></div><p>Go through the installation script to connect to your Active Directory environment:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">You can <span class="nb">type</span> Q at any prompt to quit the installation and <span class="nb">exit</span>
</span></span><span class="line"><span class="cl">the script without making any changes to your environment.
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">How <span class="k">do</span> you want to proceed? <span class="o">(</span>E<span class="p">|</span>S<span class="p">|</span>X<span class="p">|</span>C<span class="p">|</span>Q<span class="o">)</span> <span class="o">[</span>X<span class="o">]</span>: X
</span></span><span class="line"><span class="cl">Do you want to <span class="k">continue</span> to install in Express mode? <span class="o">(</span>C<span class="p">|</span>Y<span class="p">|</span>Q<span class="p">|</span>N<span class="o">)</span> <span class="o">[</span>Y<span class="o">]</span>:Y
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">Do you want to run adcheck to verify your AD environment? <span class="o">(</span>Q<span class="p">|</span>Y<span class="p">|</span>N<span class="o">)</span> <span class="o">[</span>Y<span class="o">]</span>:Y
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">Please enter the Active Directory domain to check <span class="o">[</span>company.com<span class="o">]</span>: your-domain.com
</span></span><span class="line"><span class="cl">Join an Active Directory domain? <span class="o">(</span>Q<span class="p">|</span>Y<span class="p">|</span>N<span class="o">)</span> <span class="o">[</span>Y<span class="o">]</span>:Y
</span></span><span class="line"><span class="cl">    Enter the Active Directory domain to join <span class="o">[</span>your-domain.com<span class="o">]</span>:
</span></span><span class="line"><span class="cl">    Enter the Active Directory authorized user <span class="o">[</span>administrator<span class="o">]</span>: your-admin
</span></span><span class="line"><span class="cl">    Enter the password <span class="k">for</span> the Active Directory user:
</span></span><span class="line"><span class="cl">    Enter the computer name <span class="o">[</span>server-name<span class="o">]</span>:
</span></span><span class="line"><span class="cl">    Enter the container DN <span class="o">[</span>Computers<span class="o">]</span>:
</span></span><span class="line"><span class="cl">    Enter the name of the domain controller <span class="o">[</span>auto detect<span class="o">]</span>:
</span></span><span class="line"><span class="cl">Reboot the computer after installation? <span class="o">(</span>Q<span class="p">|</span>Y<span class="p">|</span>N<span class="o">)</span> <span class="o">[</span>Y<span class="o">]</span>: Y
</span></span></code></pre></div><p>After the server restarts, you should be able to login with your Active Directory credentials via SSH, but you are not prompted for Duo MFA. To support this, we need to edit <strong>/etc/pam.d/common-auth</strong> as follows:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl"><span class="c1"># lines inserted by Centrify Direct Control { CentrifyDC 5.4.1-455 }</span>
</span></span><span class="line"><span class="cl"><span class="c1">#auth   sufficient      pam_centrifydc.so</span>
</span></span><span class="line"><span class="cl"><span class="c1">#auth   requisite       pam_centrifydc.so deny</span>
</span></span><span class="line"><span class="cl">auth    requisite       pam_centrifydc.so
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="c1"># here are the per-package modules (the &#34;Primary&#34; block)</span>
</span></span><span class="line"><span class="cl"><span class="c1">#auth   [success=1 default=ignore]      pam_unix.so nullok_secure</span>
</span></span><span class="line"><span class="cl">auth    requisite       pam_unix.so nullok_secure
</span></span><span class="line"><span class="cl">auth  <span class="o">[</span><span class="nv">success</span><span class="o">=</span><span class="m">1</span> <span class="nv">default</span><span class="o">=</span>ignore<span class="o">]</span> /lib64/security/pam_duo.so
</span></span></code></pre></div><p>In both sections, I commented out the existing config and added the necessary lines so that pam_duo is used after a successful pam_centrifydc authentication.</p>
<p>Next, we need to edit <strong>/etc/pam.d/sshd</strong> and comment out &ldquo;@include common-auth&rdquo; so we can add the Centrify and Duo PAM modules (but we don&rsquo;t need pam_unix):</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl"><span class="c1"># Standard Un*x authentication.</span>
</span></span><span class="line"><span class="cl"><span class="c1">#@include common-auth</span>
</span></span><span class="line"><span class="cl">auth    requisite       pam_centrifydc.so
</span></span><span class="line"><span class="cl">auth    <span class="o">[</span><span class="nv">success</span><span class="o">=</span><span class="m">1</span> <span class="nv">default</span><span class="o">=</span>ignore<span class="o">]</span>      /lib64/security/pam_duo.so
</span></span><span class="line"><span class="cl">auth    requisite       pam_deny.so
</span></span><span class="line"><span class="cl">auth    required        pam_permit.so
</span></span></code></pre></div><p>You should be able to SSH to the server with your Active Directory credentials, and then be prompted for Duo MFA (assuming you have a Duo account that matches your AD username)<br>
\</p>
<h4 id="active-directory-group-restriction"><strong>Active Directory Group Restriction:</strong></h4>
<p>You may also want to restrict SSH access to users in a certain Active Directory group. This can be done with two lines in <strong>/etc/ssh/sshd_config</strong> at the end of the config, after &ldquo;UsePAM yes&rdquo;:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">UsePAM yes
</span></span><span class="line"><span class="cl"><span class="c1">#########</span>
</span></span><span class="line"><span class="cl">UseDNS no
</span></span><span class="line"><span class="cl">AllowGroups root your-group-name
</span></span></code></pre></div><p>Be sure to add the &lsquo;root&rsquo; group so that you can still manage your server with the root account if needed. Restart SSH and your group restriction will be in effect:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">service ssh restart
</span></span></code></pre></div>]]></content:encoded>
    </item>
    <item>
      <title>The Half Rack Datacenter</title>
      <link>https://thenetworkstack.com/the-half-rack-datacenter/</link>
      <pubDate>Tue, 22 Aug 2017 15:03:49 +0000</pubDate>
      <guid>https://thenetworkstack.com/the-half-rack-datacenter/</guid>
      <description>&lt;p&gt;A couple years ago, Ivan Pepelnjak wrote an interesting blog showing how &lt;a href=&#34;http://blog.ipspace.net/2014/10/all-you-need-are-two-top-of-rack.html&#34;&gt;all you need are two top-of-rack switches&lt;/a&gt;. Iwan Rahabok followed up on the systems side, with the perspective that &lt;a href=&#34;http://virtual-red-dot.info/1000-vm-per-rack-is-the-new-minimum/&#34;&gt;1000 VM per rack is the new minimum&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Now in mid 2017, I&amp;rsquo;d like to show you how we can fit &lt;strong&gt;2M network routes&lt;/strong&gt;, &lt;strong&gt;1PB of storage&lt;/strong&gt;, and over &lt;strong&gt;1000 VM&amp;rsquo;s&lt;/strong&gt; in a &lt;strong&gt;half rack&lt;/strong&gt;. Don&amp;rsquo;t worry, I included redundancy as well.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>A couple years ago, Ivan Pepelnjak wrote an interesting blog showing how <a href="http://blog.ipspace.net/2014/10/all-you-need-are-two-top-of-rack.html">all you need are two top-of-rack switches</a>. Iwan Rahabok followed up on the systems side, with the perspective that <a href="http://virtual-red-dot.info/1000-vm-per-rack-is-the-new-minimum/">1000 VM per rack is the new minimum</a>.</p>
<p>Now in mid 2017, I&rsquo;d like to show you how we can fit <strong>2M network routes</strong>, <strong>1PB of storage</strong>, and over <strong>1000 VM&rsquo;s</strong> in a <strong>half rack</strong>. Don&rsquo;t worry, I included redundancy as well.</p>
<p><em>Disclaimer: My examples use specific vendor equipment to show how this is possible, but I&rsquo;m sure you can find different devices to acheive the same goal. I am not employed by any of these vendors, and only picked this equipment because it fits the design goal well.</em></p>
<h4 id="infrastructure"><strong>Infrastructure:</strong></h4>
<p>(2) Arista 7280CR2K-30<br>
(10) Netapp HCI 2U Servers - 13x Large Compute Nodes &amp; 25x Large Storage Nodes</p>
<p>My network choice is fairly straight-forward. Dual-purpose switches with high-capacity ports that support 10/25/40/50/100 GbE, and also function as edge peering routers that handle 2M routes each.</p>
<p>For compute/storage, I chose to go hyper-converged, as I believe the era of big storage controllers is over. Distributed, fast storage is here to stay, and using something like Netapp HCI provides a controller-less architecture that allows you to add capacity and performance without worrying about your controller throughput. To be fair, I&rsquo;ve been wary of hyper-converged products, but Netapp HCI retains the benefit of separate compute/storage upgrades like a traditional compute/storage stack.</p>
<p><img alt="half-rack-datacenter" loading="lazy" src="/images/2017/08/half-rack-datacenter.png"></p>
<hr>
<h4 id="compute-sizing"><strong>Compute Sizing:</strong></h4>
<p>I currently run enterprise, dev, qa and prod workloads in 100% virtualized environments. I have VM&rsquo;s that range from 1 vCPU and 512 Mb RAM to 16 vCPU and 64 Gb RAM. I took my total provisioned vCPU/RAM and divided by total VM&rsquo;s to get my average use, which is 2 vCPU and 4Gb RAM per VM.</p>
<p>1000 VM = <em>2000 vCPU</em> and <em>4 Tb RAM</em></p>
<p>I do not overcommit RAM, but I overcommit 5:1/vCPU:pCPU with good results. This may vary in your environment.</p>
<p>2000 vCPU ÷ 5 = <em>400 pCPU</em></p>
<p>Each Netapp HCI large compute node contains 36 pCPU.</p>
<p>400 pCPU ÷ 36 = <em>11.1 Netapp large compute nodes</em>, lets round up to 12. N+1 means we need <em>13 large nodes</em>. This will also provide almost 10 Tb of RAM, which is more than enough. <em>Note: If you can push 10:1 overcommit on your compute, you can run 2000 VM&rsquo;s per half rack!</em></p>
<h4 id="storage-sizing"><strong>Storage Sizing:</strong></h4>
<p>Netapp claims 44 Tb of storage capacity with 10x space efficiency (dedup/compression/compaction) per large storage node. This may seem like a stretch, but it really depends on your workloads. My datastores see anywhere from 1.5x to 38x efficiency. My average is 23x, so 10x is actually a very reasonable number for me.</p>
<p>1 Pb ÷ 44 Tb = <em>23.2 Large storage nodes</em>, round up to 24. N+1 means we need <em>25 large nodes</em>.</p>
<hr>
<p><em>Compute and Storage Totals:</em></p>
<p>13 Compute + 25 Storage = <em>38 Total Nodes</em>. Each 2U Netapp HCI server holds 4 nodes, so divide 38 by 4 = <em>9.5 2U servers</em>. 10 servers will give us 2 free node slots for future use, and we use a total of 20U.</p>
<hr>
<h4 id="network-routingswitching"><strong>Network Routing/Switching:</strong></h4>
<p>Each Netapp HCI node has 2x or 4x 10/25Gb ports (depending if its a compute or storage node). For our configuration, we will just use 2x 25Gb ports per node, for a total of 76 25Gb ports for the servers. We also need 2x ports for internet peering, and another 2x ports for WAN connectivity for a total of 80 ports. Each Arista 7280CR2K-30 gives us 120 10/25Gb ports, so we have plenty of capacity. The 7280CR2K-30 also handles 2M routes, so we can take full internet BGP feeds with no problem. Just separate your internal/external route tables appropriately.</p>
<h4 id="security"><strong>Security:</strong></h4>
<p>To keep everything to a half rack, we can use VMware NSX with distributed Palo Alto firewalls. If you prefer a physical firewall, the Arista switches have plenty of room, you will just go over our half rack goal  :)</p>
<h4 id="and-there-you-have-it-2m-network-routes-1pb-of-storage-and-over-1000-vms-in-a-half-rack">And there you have it! <strong>2M network routes</strong>, <strong>1PB of storage</strong>, and over <strong>1000 VM&rsquo;s</strong> in a <strong>half rack</strong>.</h4>
]]></content:encoded>
    </item>
    <item>
      <title>Active Directory Powershell</title>
      <link>https://thenetworkstack.com/active-directory-powershell/</link>
      <pubDate>Fri, 04 Aug 2017 19:28:01 +0000</pubDate>
      <guid>https://thenetworkstack.com/active-directory-powershell/</guid>
      <description>&lt;p&gt;Using this page to keep track of all the useful powershell &amp;ldquo;mini-scripts&amp;rdquo; I&amp;rsquo;ve used:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Copy users from one security group to another security group&lt;/strong&gt;&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;Add-ADGroupMember -Identity destination-group-name -Members (Get-ADGroupMember -Identity source-group-name -Recursive)
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;strong&gt;Add &lt;em&gt;enabled&lt;/em&gt; users from an OU to a security group&lt;/strong&gt;&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;Get-ADUser -SearchBase &amp;#39;OU=Your-OU,DC=corp,DC=company,DC=com&amp;#39; -Filter {Enabled -eq $true} | ForEach-Object {Add-ADGroupMember -Identity &amp;#39;your-group-name&amp;#39; -Members $_ }
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;strong&gt;Add users from a CSV file to a security group (username column is called &amp;ldquo;name&amp;rdquo;)&lt;/strong&gt;&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>Using this page to keep track of all the useful powershell &ldquo;mini-scripts&rdquo; I&rsquo;ve used:</p>
<p><strong>Copy users from one security group to another security group</strong></p>
<pre tabindex="0"><code>Add-ADGroupMember -Identity destination-group-name -Members (Get-ADGroupMember -Identity source-group-name -Recursive)
</code></pre><p><strong>Add <em>enabled</em> users from an OU to a security group</strong></p>
<pre tabindex="0"><code>Get-ADUser -SearchBase &#39;OU=Your-OU,DC=corp,DC=company,DC=com&#39; -Filter {Enabled -eq $true} | ForEach-Object {Add-ADGroupMember -Identity &#39;your-group-name&#39; -Members $_ }
</code></pre><p><strong>Add users from a CSV file to a security group (username column is called &ldquo;name&rdquo;)</strong></p>
<pre tabindex="0"><code>import-csv c:\users.csv | Foreach-Object {add-adgroupmember -Identity your-group-name -Members $_.name}
</code></pre><p><strong>Update user objects with organization attributes from a CSV file</strong></p>
<pre tabindex="0"><code>import-csv c:\users.csv | Foreach-Object {Set-ADUser -Identity $_.name -Department $_.department -Title $_.title -Manager $_.manager}
</code></pre><p><strong>Create security-groups from a CSV file (group-name column is called &ldquo;name&rdquo;)</strong></p>
<pre tabindex="0"><code>import-csv c:\groups.csv | Foreach-Object {new-adgroup -name $_.name -GroupCategory security -GroupScope global -Path &#34;ou=Your-OU,dc=corp,dc=company,dc=com&#34;}
</code></pre><p><strong>Export list of all <em>enabled</em> users in an OU</strong></p>
<pre tabindex="0"><code>Get-ADUser -SearchBase &#39;OU=Your-OU,DC=corp,DC=company,DC=com&#39; -Filter {Enabled -eq $true} -Property * | Select -Property Name,SamAccountName,UserPrincipalName,mail,Title,Manager,Department | export-csv &#39;c:\users.csv&#39; -notype
</code></pre><p><strong>Export list of all <em>enabled</em> users in an security group</strong></p>
<pre tabindex="0"><code>Get-ADGroupMember -Identity your-group-name | ? ObjectClass -eq &#34;User&#34; | Get-ADUser | ? Enabled | Select Name | out-file C:\group_membership.txt
</code></pre>]]></content:encoded>
    </item>
    <item>
      <title>Ansible Installation - Ubuntu 16.04</title>
      <link>https://thenetworkstack.com/ansible-installation/</link>
      <pubDate>Sun, 23 Jul 2017 07:21:34 +0000</pubDate>
      <guid>https://thenetworkstack.com/ansible-installation/</guid>
      <description>This post will focus on getting Ansible up and running on a Ubuntu 16.04 server (in three steps).</description>
      <content:encoded><![CDATA[<p>For network automation, I believe the best tool out there right now is Ansible. Ansible is open-source, agentless, has a large community, and is easy to get started quickly. For the major networking vendors, there are already pre-built modules making it simple to interface with their equipment. This post will focus on getting Ansible up and running on a Ubuntu 16.04 server (<em>in three steps</em>), and following posts will show how to use Ansible to automate network configuration.</p>
<p>Assuming this is a fresh install, first install &lsquo;software-properties-common&rsquo;:<br>
<code>sudo apt-get install software-properties-common</code></p>
<p>Then add Ansible&rsquo;s PPA (Personal Project Archive) to Ubuntu:<br>
<code>sudo apt-add-repository --yes --update ppa:ansible/ansible</code></p>
<p>Install Ansible:<br>
<code>sudo apt-get install ansible</code></p>
<p><strong>And that&rsquo;s it, your Ansible installation is complete!</strong></p>
<p>The Ansible installation should have included python, verify it is installed:<br>
<code>python -V</code></p>
<p>You can also verify the version of Ansible installed:<br>
<code>ansible --version</code></p>
<p>Ansible: <a href="https://www.ansible.com/">https://www.ansible.com/</a><br>
Ansible Getting Started: <a href="https://www.ansible.com/get-started">https://www.ansible.com/get-started</a><br>
Network Modules: <a href="http://docs.ansible.com/ansible/latest/list_of_network_modules.html">http://docs.ansible.com/ansible/latest/list_of_network_modules.html</a></p>
]]></content:encoded>
    </item>
    <item>
      <title>Palo Alto Dynamic Block List and AWS</title>
      <link>https://thenetworkstack.com/palo-alto-dynamic-block-list-and-aws/</link>
      <pubDate>Wed, 28 Jun 2017 04:36:34 +0000</pubDate>
      <guid>https://thenetworkstack.com/palo-alto-dynamic-block-list-and-aws/</guid>
      <description>&lt;p&gt;Palo Alto firewalls have a neat feature called &amp;ldquo;DBL&amp;rdquo; - Dynamic Block List. This feature allows the firewall to grab a list of ip addresses or domains from an http page.  You have to format the web page cleanly (&lt;a href=&#34;https://live.paloaltonetworks.com/t5/Learning-Articles/Working-with-External-Block-List-EBL-Formats-and-Limitations/ta-p/58795&#34;&gt;https://live.paloaltonetworks.com/t5/Learning-Articles/Working-with-External-Block-List-EBL-Formats-and-Limitations/ta-p/58795&lt;/a&gt;), but it allows you to update the web page dynamically, and the firewall will update it&amp;rsquo;s policy accordingly.&lt;/p&gt;
&lt;p&gt;For my use case, we had some new dynamic dev services being tested in AWS, with service ports that we typically don&amp;rsquo;t allow for outbound traffic.  Instead of opening up our security policy to the internet (&lt;em&gt;any&lt;/em&gt; destination), I used a DBL to open up the ports to AWS ip addresses only.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>Palo Alto firewalls have a neat feature called &ldquo;DBL&rdquo; - Dynamic Block List. This feature allows the firewall to grab a list of ip addresses or domains from an http page.  You have to format the web page cleanly (<a href="https://live.paloaltonetworks.com/t5/Learning-Articles/Working-with-External-Block-List-EBL-Formats-and-Limitations/ta-p/58795">https://live.paloaltonetworks.com/t5/Learning-Articles/Working-with-External-Block-List-EBL-Formats-and-Limitations/ta-p/58795</a>), but it allows you to update the web page dynamically, and the firewall will update it&rsquo;s policy accordingly.</p>
<p>For my use case, we had some new dynamic dev services being tested in AWS, with service ports that we typically don&rsquo;t allow for outbound traffic.  Instead of opening up our security policy to the internet (<em>any</em> destination), I used a DBL to open up the ports to AWS ip addresses only.</p>
<p>Luckily Amazon publishes their ip addresses here: <a href="https://ip-ranges.amazonaws.com/ip-ranges.json">https://ip-ranges.amazonaws.com/ip-ranges.json</a></p>
<p>I created a quick script that curls the address above, then greps the file and creates a new file with only the ip ranges, so that the palo alto firewall can read the ip ranges successfully.</p>
<pre tabindex="0"><code>#!/bin/bash
dir=/usr/share/nginx/html/dynamiclist

curl https://ip-ranges.amazonaws.com/ip-ranges.json &gt; $dir/aws-ip.json
grep -E -o &#34;([0-9]{1,3}[\.]){3}[0-9]{1,3}/[0-9]{1,2}&#34; $dir/aws-ip.json &gt; $dir/aws-ip.txt
</code></pre><p>As you can probably figure out, I&rsquo;m hosting this file on a nginx server, so the palo alto firewall just needs to read &ldquo;<a href="http://myservername/dynamiclist/aws-ip.txt">http://myservername/dynamiclist/aws-ip.txt</a>&rdquo;. You can put this script it your cron.d directory and have it run as often as you&rsquo;d like!</p>
<p>DBL setup from Palo Alto&rsquo;s support site:<br>
<a href="https://live.paloaltonetworks.com/t5/Configuration-Articles/How-to-Configure-Dynamic-Block-List-DBL-or-External-Block-List/ta-p/53414">https://live.paloaltonetworks.com/t5/Configuration-Articles/How-to-Configure-Dynamic-Block-List-DBL-or-External-Block-List/ta-p/53414</a></p>
]]></content:encoded>
    </item>
    <item>
      <title>ADFS MFA with Office 365</title>
      <link>https://thenetworkstack.com/adfs-mfa-with-office-365/</link>
      <pubDate>Sat, 27 May 2017 01:06:39 +0000</pubDate>
      <guid>https://thenetworkstack.com/adfs-mfa-with-office-365/</guid>
      <description>&lt;p&gt;We wanted to implement MFA (multi-factor authentication) for our ADFS servers when authenticating to Office 365.  If you just want basic “MFA for all users” then the AD FS GUI will allow you to select your MFA provider and enable.  I needed a more granular policy:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;Only enable MFA if the user is a member of a specific security group &lt;strong&gt;AND&lt;/strong&gt; the user is coming from outside the corporate network &lt;strong&gt;AND&lt;/strong&gt; it is a browser based authentication request&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;</description>
      <content:encoded><![CDATA[<p>We wanted to implement MFA (multi-factor authentication) for our ADFS servers when authenticating to Office 365.  If you just want basic “MFA for all users” then the AD FS GUI will allow you to select your MFA provider and enable.  I needed a more granular policy:</p>
<blockquote>
<p><em>Only enable MFA if the user is a member of a specific security group <strong>AND</strong> the user is coming from outside the corporate network <strong>AND</strong> it is a browser based authentication request</em></p>
</blockquote>
<p>The third part of that policy is in place so that a user can still use activesync or skype for business, since they do not support MFA (or microsoft modern authentication) right now.</p>
<p>Granular ADFS policies are set using “claims”, which can be combined together with “&amp;&amp;” statements.  Here are the three claims I needed enabled:</p>
<p><em>Only enable MFA for members of a security group (use your own group SID in <strong>Value == &quot; &ldquo;</strong>)</em></p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-text" data-lang="text"><span class="line"><span class="cl">c:[Type == “http://schemas.microsoft.com/ws/2008/06/identity/claims/groupsid&amp;#8221;, Value == “S-1-2-46-1537777264-XXXXXXXXXXXXX”] &amp;&amp;
</span></span></code></pre></div><p><em>Only enable MFA for users outside the corporate network (auth requests that go through the AD FS web proxy)</em></p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-text" data-lang="text"><span class="line"><span class="cl">c1:[Type == “http://schemas.microsoft.com/ws/2012/01/insidecorporatenetwork&amp;#8221;, Value == “false”] &amp;&amp;
</span></span></code></pre></div><p><em>Only enable MFA for browser based requests</em></p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-text" data-lang="text"><span class="line"><span class="cl">c2:[Type == “http://schemas.microsoft.com/2012/01/requestcontext/claims/x-ms-endpoint-absolute-path&amp;#8221;, Value =~ “(/adfs/ls)|(/adfs/oauth2)”]
</span></span></code></pre></div><h3 id="configuration"><strong>Configuration</strong></h3>
<p>To apply these claims, first enable the MFA provider using the GUI.  Open AD FS, click on “Authentication Policies” and then click “Edit Global Multi-Factor Authentication” on the left-hand side.  From there you can select your MFA provider and click “Apply”.  After this, you must use powershell.  I also used powershell variables to make the process a little cleaner.</p>
<p>First, the <strong>$mfarule</strong> variable contains all three claims above, joined together with <strong>&amp;&amp;</strong>:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-text" data-lang="text"><span class="line"><span class="cl">PS C:\windows\system32&gt; $mfarule=&#39;c:[Type == &#34;http://schemas.microsoft.com/ws/2008/06/identity/claims/groupsid&#34;, Value == &#34;S-1-2-46-1537777264-XXXXXXXXXXXXX&#34;] &amp;&amp; c1:[Type == &#34;http://schemas.microsoft.com/ws/2012/01/insidecorporatenetwork&#34;, Value == &#34;false&#34;] &amp;&amp; c2:[Type == &#34;http://schemas.microsoft.com/2012/01/requestcontext/claims/x-ms-endpoint-absolute-path&#34;, Value =~ &#34;(/adfs/ls)|(/adfs/oauth2)&#34;] =&gt; issue(Type = &#34;http://schemas.microsoft.com/ws/2008/06/identity/claims/authenticationmethod&#34;, Value = &#34;http://schemas.microsoft.com/claims/multipleauthn&#34;);&#39;
</span></span></code></pre></div><p>Second, we set the <strong>$rpt</strong> variable with the name of the Relying Party Trust that needs MFA.</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-text" data-lang="text"><span class="line"><span class="cl">PS C:\windows\system32&gt; $rpt = Get-AdfsRelyingPartyTrust –Name &#34;Microsoft Office 365 Identity Platform&#34;
</span></span></code></pre></div><p>Last, we use both the variables we defined before and set the MFA rule.</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-text" data-lang="text"><span class="line"><span class="cl">PS C:\windows\system32&gt; Set-AdfsRelyingPartyTrust –TargetRelyingParty $rpt –AdditionalAuthenticationRules $mfarule
</span></span></code></pre></div><p>And now you are done!  The following command reverts the changes made back to default:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-text" data-lang="text"><span class="line"><span class="cl">PS C:\windows\system32&gt; Set-AdfsRelyingPartyTrust –TargetRelyingParty $rpt –AdditionalAuthenticationRules &#39;&#39;
</span></span></code></pre></div><h3 id="additional-commands"><strong>Additional Commands</strong></h3>
<p>The commands above enable MFA just for the Office 365 relying party (so I can have different policies per party).  If you would like to enable these settings on a global scale, use this:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-text" data-lang="text"><span class="line"><span class="cl">PS C:\windows\system32&gt; Set-AdfsAdditionalAuthenticationRule -AdditionalAuthenticationRules $mfarule
</span></span></code></pre></div><p>And finally, to see all your changes made:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-text" data-lang="text"><span class="line"><span class="cl">PS C:\windows\system32&gt; Get-AdfsRelyingPartyTrust -Name DisplayNameofRelyingTrust
</span></span></code></pre></div><hr>
<p>These blogs were extremely helpful throughout this process:</p>
<p><a href="https://doubledit.co.uk/2015/10/21/adfs-multi-factor-authentication-force-mfa-for-browser-based-access-to-office-365/">https://doubledit.co.uk/2015/10/21/adfs-multi-factor-authentication-force-mfa-for-browser-based-access-to-office-365/</a></p>
<p><a href="http://blog.auth360.net/2014/10/23/mfa-conditional-access-policies-in-ad-fs-2012-r2/">http://blog.auth360.net/2014/10/23/mfa-conditional-access-policies-in-ad-fs-2012-r2/</a></p>
<p><a href="http://blogs.msdn.com/b/ramical/archive/2014/01/30/under-the-hood-tour-on-multi-factor-authentication-in-ad-fs-part-1-policy.aspx">http://blogs.msdn.com/b/ramical/archive/2014/01/30/under-the-hood-tour-on-multi-factor-authentication-in-ad-fs-part-1-policy.aspx</a></p>
<p><a href="https://technet.microsoft.com/en-us/library/dn479343(v=wps.630).aspx">https://technet.microsoft.com/en-us/library/dn479343(v=wps.630).aspx</a></p>
]]></content:encoded>
    </item>
    <item>
      <title>Cisco CSR License Install</title>
      <link>https://thenetworkstack.com/cisco-csr-license-install/</link>
      <pubDate>Wed, 17 May 2017 22:37:50 +0000</pubDate>
      <guid>https://thenetworkstack.com/cisco-csr-license-install/</guid>
      <description>&lt;p&gt;Found a great blog post on installing a demo license on the CSR router (&lt;a href=&#34;http://www.burningnode.com/2016/02/08/the-csr1000v-license-and-the-100kbps/&#34;&gt;http://www.burningnode.com/2016/02/08/the-csr1000v-license-and-the-100kbps/&lt;/a&gt;), but I came across one additional (and important step below).&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;TL;DR - Make sure to accept the end user agreement and SAVE before reloading!&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;ip-10-128-228-209#reload
% Unfortunately EULA is not detected for following feature/features:
% security
% Please configure &amp;#39;license accept end user agreement&amp;#39; and
% use &amp;#39;write&amp;#39; command to ensure license configurations take effect
% Continue reload will cause functionality loss for above feature/features.

Continue to reload? (yes/[no]): no

ip-10-128-228-209# conf t
ip-10-128-228-209(config)#license accept end user agreement
PLEASE  READ THE  FOLLOWING TERMS  CAREFULLY. INSTALLING THE LICENSE OR
LICENSE  KEY  PROVIDED FOR  ANY CISCO  PRODUCT  FEATURE  OR  USING SUCH
PRODUCT  FEATURE  CONSTITUTES  YOUR  FULL ACCEPTANCE  OF  THE FOLLOWING
TERMS. YOU MUST NOT PROCEED FURTHER IF YOU ARE NOT WILLING TO  BE BOUND
BY ALL THE TERMS SET FORTH HEREIN.

Use of this product feature requires  an additional license from Cisco,
together with an additional  payment.  You may use this product feature
on an evaluation basis, without payment to Cisco, for 60 days. Your use
of the  product,  including  during the 60 day  evaluation  period,  is
subject to the Cisco end user license agreement
http://www.cisco.com/en/US/docs/general/warranty/English/EU1KEN_.html
If you use the product feature beyond the 60 day evaluation period, you
must submit the appropriate payment to Cisco for the license. After the
60 day  evaluation  period,  your  use of the  product  feature will be
governed  solely by the Cisco  end user license agreement (link above),
together  with any supplements  relating to such product  feature.  The
above  applies  even if the evaluation  license  is  not  automatically
terminated  and you do  not receive any notice of the expiration of the
evaluation  period.  It is your  responsibility  to  determine when the
evaluation  period is complete and you are required to make  payment to
Cisco for your use of the product feature beyond the evaluation period.

Your  acceptance  of  this agreement  for the software  features on one
product  shall be deemed  your  acceptance  with  respect  to all  such
software  on all Cisco  products  you purchase  which includes the same
software.  (The foregoing  notwithstanding, you must purchase a license
for each software  feature you use past the 60 days evaluation  period,
so  that  if you enable a software  feature on  1000  devices, you must
purchase 1000 licenses for use past  the 60 day evaluation period.)

Activation  of the  software command line interface will be evidence of
your acceptance of this agreement.

ACCEPT? (yes/[no]): yes
ip-10-128-228-209(config)#exit
ip-10-128-228-209#wr
Building configuration...
[OK]
ip-10-128-228-209#reload
Proceed with reload? [confirm]
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;If you have purchased a BYOL license and are using the same license level, the migration path would be:&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>Found a great blog post on installing a demo license on the CSR router (<a href="http://www.burningnode.com/2016/02/08/the-csr1000v-license-and-the-100kbps/">http://www.burningnode.com/2016/02/08/the-csr1000v-license-and-the-100kbps/</a>), but I came across one additional (and important step below).</p>
<p><em><strong>TL;DR - Make sure to accept the end user agreement and SAVE before reloading!</strong></em></p>
<pre tabindex="0"><code>ip-10-128-228-209#reload
% Unfortunately EULA is not detected for following feature/features:
% security
% Please configure &#39;license accept end user agreement&#39; and
% use &#39;write&#39; command to ensure license configurations take effect
% Continue reload will cause functionality loss for above feature/features.

Continue to reload? (yes/[no]): no

ip-10-128-228-209# conf t
ip-10-128-228-209(config)#license accept end user agreement
PLEASE  READ THE  FOLLOWING TERMS  CAREFULLY. INSTALLING THE LICENSE OR
LICENSE  KEY  PROVIDED FOR  ANY CISCO  PRODUCT  FEATURE  OR  USING SUCH
PRODUCT  FEATURE  CONSTITUTES  YOUR  FULL ACCEPTANCE  OF  THE FOLLOWING
TERMS. YOU MUST NOT PROCEED FURTHER IF YOU ARE NOT WILLING TO  BE BOUND
BY ALL THE TERMS SET FORTH HEREIN.

Use of this product feature requires  an additional license from Cisco,
together with an additional  payment.  You may use this product feature
on an evaluation basis, without payment to Cisco, for 60 days. Your use
of the  product,  including  during the 60 day  evaluation  period,  is
subject to the Cisco end user license agreement
http://www.cisco.com/en/US/docs/general/warranty/English/EU1KEN_.html
If you use the product feature beyond the 60 day evaluation period, you
must submit the appropriate payment to Cisco for the license. After the
60 day  evaluation  period,  your  use of the  product  feature will be
governed  solely by the Cisco  end user license agreement (link above),
together  with any supplements  relating to such product  feature.  The
above  applies  even if the evaluation  license  is  not  automatically
terminated  and you do  not receive any notice of the expiration of the
evaluation  period.  It is your  responsibility  to  determine when the
evaluation  period is complete and you are required to make  payment to
Cisco for your use of the product feature beyond the evaluation period.

Your  acceptance  of  this agreement  for the software  features on one
product  shall be deemed  your  acceptance  with  respect  to all  such
software  on all Cisco  products  you purchase  which includes the same
software.  (The foregoing  notwithstanding, you must purchase a license
for each software  feature you use past the 60 days evaluation  period,
so  that  if you enable a software  feature on  1000  devices, you must
purchase 1000 licenses for use past  the 60 day evaluation period.)

Activation  of the  software command line interface will be evidence of
your acceptance of this agreement.

ACCEPT? (yes/[no]): yes
ip-10-128-228-209(config)#exit
ip-10-128-228-209#wr
Building configuration...
[OK]
ip-10-128-228-209#reload
Proceed with reload? [confirm]
</code></pre><p>If you have purchased a BYOL license and are using the same license level, the migration path would be:</p>
<ol>
<li>Install new license (same procedure as above)</li>
<li>Set new throughput level</li>
<li>No reboot required</li>
</ol>
<p>ip-10-128-228-209#show platform hardware throughput level The current throughput level is 5000000 kb/s ip-10-128-228-209(config)#platform hardware throughput level MB 100 ip-10-128-228-209(config)#exit ip-10-128-228-209#show platform hardware throughput level The current throughput level is 100000 kb/s</p>
]]></content:encoded>
    </item>
    <item>
      <title>Copy File to IOS Router via SCP</title>
      <link>https://thenetworkstack.com/copy-file-to-ios-router-via-scp/</link>
      <pubDate>Wed, 19 Apr 2017 01:40:24 +0000</pubDate>
      <guid>https://thenetworkstack.com/copy-file-to-ios-router-via-scp/</guid>
      <description>&lt;p&gt;Enable SCP on the Cisco router:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;cisco-csr(config)#ip scp server enable
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Copy file from linux server to router with the following syntax:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;scp filename admin@10.0.0.1:flash:/filename
&lt;/code&gt;&lt;/pre&gt;</description>
      <content:encoded><![CDATA[<p>Enable SCP on the Cisco router:</p>
<pre tabindex="0"><code>cisco-csr(config)#ip scp server enable
</code></pre><p>Copy file from linux server to router with the following syntax:</p>
<pre tabindex="0"><code>scp filename admin@10.0.0.1:flash:/filename
</code></pre>]]></content:encoded>
    </item>
    <item>
      <title>ADFS Sign-In Page Customization</title>
      <link>https://thenetworkstack.com/adfs-sign-in-page-customization/</link>
      <pubDate>Fri, 14 Apr 2017 00:19:37 +0000</pubDate>
      <guid>https://thenetworkstack.com/adfs-sign-in-page-customization/</guid>
      <description>&lt;p&gt;If you use ADFS as your primary IdP, you may have noticed that before your users sign in, they have the option to pick the Relying Party they want to sign into under the &amp;ldquo;Sign in to one of the following sites&amp;rdquo; radio button. If ADFS is accessible from the internet (which it mostly likely is if you are using Office 365), this is a giant security concern, as it gives an attacker a view into all the external applications your employees use. With the prevalence of credential phishing and social engineering, you want to limit the information an attacker has about the resources your company uses.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>If you use ADFS as your primary IdP, you may have noticed that before your users sign in, they have the option to pick the Relying Party they want to sign into under the &ldquo;Sign in to one of the following sites&rdquo; radio button. If ADFS is accessible from the internet (which it mostly likely is if you are using Office 365), this is a giant security concern, as it gives an attacker a view into all the external applications your employees use. With the prevalence of credential phishing and social engineering, you want to limit the information an attacker has about the resources your company uses.</p>
<p>Microsoft doesn&rsquo;t have an easy button to change this behavior, but you are able to customize the sign-in page by editing the &ldquo;onboard.js&rdquo; file. This technet article explains how to export your onboard.js file: <a href="https://technet.microsoft.com/en-us/windows-server-docs/identity/ad-fs/operations/advanced-customization-of-ad-fs-sign-in-pages">https://technet.microsoft.com/en-us/windows-server-docs/identity/ad-fs/operations/advanced-customization-of-ad-fs-sign-in-pages</a></p>
<p>Once exported, I copied the file to my workstation and used notepad++ to edit the file and add this block of code to the <strong>bottom of the file</strong>:</p>
<pre tabindex="0"><code>// Do not show idp_OtherRpPanel or idp_ThisRpPanel if signed out
var IsAuthenticated = document.getElementById(&#39;IsAuthenticated&#39;);
    if(IsAuthenticated.innerHTML==&#34;False&#34;) {
        idp_OtherRpPanel.style.display = &#39;none&#39;;
        idp_ThisRpPanel.style.display = &#39;none&#39;;
}
</code></pre><p>This looks at the variable &lsquo;IsAuthenticated&rsquo;, and if it is False, does not display the list of Relying Parties under the &ldquo;Sign in to one of the following sites&rdquo; radio button.</p>
<p>Copy the new onboard.js file to your ADFS server and make the onboard.js active via powershell (step 4 on the technet article).  Once applied, your changes will be live, no need to restart the ADFS service.</p>
<p>***Note - This is not foolproof.  Although the list of relying parties is hidden, it is still viewable in the HTML source code. I still think this is better than nothing.</p>
]]></content:encoded>
    </item>
    <item>
      <title>IPv6 Cisco Deployment</title>
      <link>https://thenetworkstack.com/ipv6-deployment/</link>
      <pubDate>Thu, 06 Apr 2017 18:34:00 +0000</pubDate>
      <guid>https://thenetworkstack.com/ipv6-deployment/</guid>
      <description>&lt;p&gt;I recently deployed a small IPv6 network to support our developers meeting Apple&amp;rsquo;s IPv6 compatibility requirements (&lt;a href=&#34;https://developer.apple.com/support/ipv6/&#34;&gt;https://developer.apple.com/support/ipv6/&lt;/a&gt;). This was a good experience to get my feet wet with IPv6 as we have plans to dual-stack our environment in the coming year. Here are my notes:&lt;/p&gt;
&lt;p&gt;Since this is a test/dev network, I decided to get a /48 IPv6 block from my internet provider.  They routed the /48 to me via a /126 link to my Cisco ASR.  If you are using vrf&amp;rsquo;s on your router, make sure the vrf supports the IPv6 address family:&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>I recently deployed a small IPv6 network to support our developers meeting Apple&rsquo;s IPv6 compatibility requirements (<a href="https://developer.apple.com/support/ipv6/">https://developer.apple.com/support/ipv6/</a>). This was a good experience to get my feet wet with IPv6 as we have plans to dual-stack our environment in the coming year. Here are my notes:</p>
<p>Since this is a test/dev network, I decided to get a /48 IPv6 block from my internet provider.  They routed the /48 to me via a /126 link to my Cisco ASR.  If you are using vrf&rsquo;s on your router, make sure the vrf supports the IPv6 address family:</p>
<pre tabindex="0"><code>vrf definition guest
!
address-family ipv4
exit-address-family
!
address-family ipv6
exit-address-family
</code></pre><p>Enable IPv6 forwarding on the ASR:</p>
<pre tabindex="0"><code>ipv6 unicast-routing
</code></pre><p>This automatically enabled IPv6 CEF for me as well (running 15.4(3)S6)</p>
<pre tabindex="0"><code>asr-1001x#show ipv6 cef summary
IPv6 distributed CEF is enabled and running.
</code></pre><p>Assign the IPv6 addresses to the ASR interfaces:</p>
<pre tabindex="0"><code>interface GigabitEthernet0/0/5
 description wan-provider-edge
 vrf forwarding guest
 negotiation auto
 ipv6 address XXX:XXXX:XXXX:XXXX::2/126
 ipv6 nd ra suppress all
 
interface GigabitEthernet0/0/4
 description wan-internal
 vrf forwarding guest
 negotiation auto
 ipv6 address YYYY:YYYY:YYYY:1::1/64
 ipv6 nd ra suppress all
</code></pre><p>Configure the IPv6 default route going to your WAN provider, and route another /64 block (subnetted from your /48) to your firewall edge:</p>
<pre tabindex="0"><code>ipv6 route vrf guest ::/0 XXXX:XXXX:XXXX:XXXX::1
ipv6 route vrf guest YYYY:YYYY:YYYY:2::/64 YYYY:YYYY:YYYY:1::2
</code></pre><p>Now all your IPv6 routing should be in place.  We use Palo Alto firewalls, so I had to configure the firewall internal and external interfaces with IPv6 addresses and add an IPv6 default route.  I&rsquo;ll write another blog post on how I setup NAT64 on the Palo Alto and DNS64 on a bind server with RADVD for DNS service advertisement.</p>
]]></content:encoded>
    </item>
    <item>
      <title>IPv6 Design</title>
      <link>https://thenetworkstack.com/ipv6-design/</link>
      <pubDate>Thu, 06 Apr 2017 18:32:16 +0000</pubDate>
      <guid>https://thenetworkstack.com/ipv6-design/</guid>
      <description>&lt;p&gt;I&amp;rsquo;m very comfortable developing an IPv4 address plan that accounts for summarization and ease of use. There are new design rules for IPv6, which I am posting here (will update this page as I go):&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;General Rules to Follow:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Allocate every site a /48 block&lt;/li&gt;
&lt;li&gt;Allocate each vlan in the site a /64 (from the above /48)&lt;/li&gt;
&lt;li&gt;P2P links can either be a /64 or /126 - depends if you want to keep it simple or conserve address space&lt;/li&gt;
&lt;li&gt;You don&amp;rsquo;t need to use NAT, assign global addresses to endpoints.  Use security zones on your firewall for security&lt;/li&gt;
&lt;li&gt;Address assignment via SLAAC or DHCPv6 - Android only supports SLAAC&lt;/li&gt;
&lt;li&gt;If you use SLAAC, you must depend on RA for gateway and DNS server assignment&lt;/li&gt;
&lt;li&gt;I deployed SLAAC which works well so far&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;em&gt;As always, these design rules may not apply to your environment, but they should help with your first deployment.&lt;/em&gt;&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>I&rsquo;m very comfortable developing an IPv4 address plan that accounts for summarization and ease of use. There are new design rules for IPv6, which I am posting here (will update this page as I go):</p>
<p><strong>General Rules to Follow:</strong></p>
<ul>
<li>Allocate every site a /48 block</li>
<li>Allocate each vlan in the site a /64 (from the above /48)</li>
<li>P2P links can either be a /64 or /126 - depends if you want to keep it simple or conserve address space</li>
<li>You don&rsquo;t need to use NAT, assign global addresses to endpoints.  Use security zones on your firewall for security</li>
<li>Address assignment via SLAAC or DHCPv6 - Android only supports SLAAC</li>
<li>If you use SLAAC, you must depend on RA for gateway and DNS server assignment</li>
<li>I deployed SLAAC which works well so far</li>
</ul>
<p><em>As always, these design rules may not apply to your environment, but they should help with your first deployment.</em></p>
]]></content:encoded>
    </item>
    <item>
      <title>Windows DHCP not Updating DNS</title>
      <link>https://thenetworkstack.com/windows-dhcp-not-updating-dns/</link>
      <pubDate>Mon, 06 Feb 2017 19:56:46 +0000</pubDate>
      <guid>https://thenetworkstack.com/windows-dhcp-not-updating-dns/</guid>
      <description>&lt;p&gt;Our 2012R2 DC&amp;rsquo;s do DHCP and DNS for our environment, but I found that our client&amp;rsquo;s DNS addresses were frequently incorrect, even though DHCP is supposed to update DNS with the correct entry.  Found this blog post that solved our problems:&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;http://blogs.msmvps.com/acefekay/2009/08/20/dhcp-dynamic-dns-updates-scavenging-static-entries-amp-timestamps-and-the-dnsproxyupdate-group/&#34;&gt;http://blogs.msmvps.com/acefekay/2009/08/20/dhcp-dynamic-dns-updates-scavenging-static-entries-amp-timestamps-and-the-dnsproxyupdate-group/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; If you are unsure about running the dnscmd shown in the blog post, I found the commands to verify the setting before you change it, and how to revert:&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>Our 2012R2 DC&rsquo;s do DHCP and DNS for our environment, but I found that our client&rsquo;s DNS addresses were frequently incorrect, even though DHCP is supposed to update DNS with the correct entry.  Found this blog post that solved our problems:</p>
<p><a href="http://blogs.msmvps.com/acefekay/2009/08/20/dhcp-dynamic-dns-updates-scavenging-static-entries-amp-timestamps-and-the-dnsproxyupdate-group/">http://blogs.msmvps.com/acefekay/2009/08/20/dhcp-dynamic-dns-updates-scavenging-static-entries-amp-timestamps-and-the-dnsproxyupdate-group/</a></p>
<p><strong>Note:</strong> If you are unsure about running the dnscmd shown in the blog post, I found the commands to verify the setting before you change it, and how to revert:</p>
<p>Show current state:</p>
<p><code>dnscmd /info /OpenACLOnProxyUpdates</code></p>
<p>Desired state:</p>
<p><code>dnscmd /config /OpenAclOnProxyUpdates 0</code></p>
<p>Revert to default:</p>
<p><code>dnscmd /config /OpenAclOnProxyUpdates 1</code></p>
]]></content:encoded>
    </item>
    <item>
      <title>vCenter No Longer Reachable</title>
      <link>https://thenetworkstack.com/vcenter-no-longer-reachable/</link>
      <pubDate>Sat, 04 Jun 2016 01:56:55 +0000</pubDate>
      <guid>https://thenetworkstack.com/vcenter-no-longer-reachable/</guid>
      <description>&lt;p&gt;After a power outage, we powered on our VMware infrastructure, and as we went through the process, we quickly realized that vCenter was not coming back online. vCenter was not reachable via icmp or http/https. Logging into the ESXi console showed the VCSA booting very slowly, but eventually it booted up.  Still no network connectivity. After enabling bash and doing an &amp;ldquo;ifconfig&amp;rdquo;, I noticed the eth0 interface was missing. The &amp;ldquo;ip link show&amp;rdquo; confirmed that the VM did not recognize any eth0 devices, but it did pick up an eth1 device. For some reason, the vnic mac address had changed, and vCenter added the nic as a new device. To resolve this:&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>After a power outage, we powered on our VMware infrastructure, and as we went through the process, we quickly realized that vCenter was not coming back online. vCenter was not reachable via icmp or http/https. Logging into the ESXi console showed the VCSA booting very slowly, but eventually it booted up.  Still no network connectivity. After enabling bash and doing an &ldquo;ifconfig&rdquo;, I noticed the eth0 interface was missing. The &ldquo;ip link show&rdquo; confirmed that the VM did not recognize any eth0 devices, but it did pick up an eth1 device. For some reason, the vnic mac address had changed, and vCenter added the nic as a new device. To resolve this:</p>
<ol>
<li>Edit this file on the VCSA: <br>
<code>/etc/udev/rules.d/70-persistent-net.rules</code></li>
<li>Delete (or comment out) all lines</li>
<li>Reboot the VCSA</li>
</ol>
<p>This process will clear the static mac association with the previous eth0 nic, and will allow VCSA to boot up with the new nic/mac address as eth0.</p>
<p>Reference: <a href="http://www.vmwarebits.com/content/how-fix-vcenter-appliance-no-networking-problem">http://www.vmwarebits.com/content/how-fix-vcenter-appliance-no-networking-problem</a></p>
]]></content:encoded>
    </item>
    <item>
      <title>WebEx and ADFS</title>
      <link>https://thenetworkstack.com/webex-and-adfs/</link>
      <pubDate>Tue, 26 Apr 2016 17:04:11 +0000</pubDate>
      <guid>https://thenetworkstack.com/webex-and-adfs/</guid>
      <description>&lt;p&gt;Implemented WebEx with ADFS 3.0 (Windows 2012R2), and found these articles helpful:&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;https://cisco-support.webex.com/guest/articles/en_US/Usability_FAQs/WBX63102/myr=false&#34;&gt;https://cisco-support.webex.com/guest/articles/en_US/Usability_FAQs/WBX63102/myr=false&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;https://digitalglue.wordpress.com/2014/02/11/configuring-cisco-webex-meeting-server-to-work-with-adfs-2-0/&#34;&gt;https://digitalglue.wordpress.com/2014/02/11/configuring-cisco-webex-meeting-server-to-work-with-adfs-2-0/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;But those guides do not go over configuring the sign-out process. By default, when a user sign&amp;rsquo;s out of WebEx, they are not signed out of their SSO session. This can be accomplished with the WSFederation sign-out URL:&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;http://social.technet.microsoft.com/wiki/contents/articles/1439.ad-fs-how-to-invoke-a-ws-federation-sign-out.aspx&#34;&gt;http://social.technet.microsoft.com/wiki/contents/articles/1439.ad-fs-how-to-invoke-a-ws-federation-sign-out.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;To get this working, follow these steps on your ADFS server:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Go to AD FS Manager -&amp;gt; Trust Relationships -&amp;gt; Relying Party Trusts -&amp;gt; WebEx -&amp;gt; Properties&lt;/li&gt;
&lt;li&gt;Under the Endpoints tab, click &amp;ldquo;Add SAML&amp;hellip;&amp;rdquo;&lt;/li&gt;
&lt;li&gt;Endpoint Type = SAML Logout, Binding = POST, Trusted URL = &lt;a href=&#34;https://adfsservername.domainname.com/adfs/ls/?wa=wsignout1.0&#34;&gt;https://adfsservername.domainname.com/adfs/ls/?wa=wsignout1.0&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;</description>
      <content:encoded><![CDATA[<p>Implemented WebEx with ADFS 3.0 (Windows 2012R2), and found these articles helpful:</p>
<p><a href="https://cisco-support.webex.com/guest/articles/en_US/Usability_FAQs/WBX63102/myr=false">https://cisco-support.webex.com/guest/articles/en_US/Usability_FAQs/WBX63102/myr=false</a></p>
<p><a href="https://digitalglue.wordpress.com/2014/02/11/configuring-cisco-webex-meeting-server-to-work-with-adfs-2-0/">https://digitalglue.wordpress.com/2014/02/11/configuring-cisco-webex-meeting-server-to-work-with-adfs-2-0/</a></p>
<p>But those guides do not go over configuring the sign-out process. By default, when a user sign&rsquo;s out of WebEx, they are not signed out of their SSO session. This can be accomplished with the WSFederation sign-out URL:</p>
<p><a href="http://social.technet.microsoft.com/wiki/contents/articles/1439.ad-fs-how-to-invoke-a-ws-federation-sign-out.aspx">http://social.technet.microsoft.com/wiki/contents/articles/1439.ad-fs-how-to-invoke-a-ws-federation-sign-out.aspx</a></p>
<p>To get this working, follow these steps on your ADFS server:</p>
<ol>
<li>Go to AD FS Manager -&gt; Trust Relationships -&gt; Relying Party Trusts -&gt; WebEx -&gt; Properties</li>
<li>Under the Endpoints tab, click &ldquo;Add SAML&hellip;&rdquo;</li>
<li>Endpoint Type = SAML Logout, Binding = POST, Trusted URL = <a href="https://adfsservername.domainname.com/adfs/ls/?wa=wsignout1.0">https://adfsservername.domainname.com/adfs/ls/?wa=wsignout1.0</a></li>
</ol>
]]></content:encoded>
    </item>
    <item>
      <title>Office 365 - Powershell</title>
      <link>https://thenetworkstack.com/office-365-powershell/</link>
      <pubDate>Tue, 12 Apr 2016 06:02:15 +0000</pubDate>
      <guid>https://thenetworkstack.com/office-365-powershell/</guid>
      <description>&lt;p&gt;Connecting to Office 365 via Powershell for the first time? Here are the steps to get started:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Install the &lt;a href=&#34;http://go.microsoft.com/fwlink/?LinkID=286152&#34;&gt;Microsoft Online Services Sign-In Assistant for IT Professionals RTW&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Install the &lt;a href=&#34;http://go.microsoft.com/fwlink/p/?linkid=236297&#34;&gt;Azure Active Directory Module for Windows Powershell (64-bit version)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Open Powershell and run this command the first time you connect on your computer:&lt;/li&gt;
&lt;/ol&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;Set-ExecutionPolicy RemoteSigned
&lt;/code&gt;&lt;/pre&gt;&lt;ol&gt;
&lt;li&gt;Next, run these three commands (you&amp;rsquo;ll do this everytime you want to connect):&lt;/li&gt;
&lt;/ol&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;$UserCredential = Get-Credential

$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection

Import-PSSession $Session
&lt;/code&gt;&lt;/pre&gt;&lt;ol&gt;
&lt;li&gt;You should now be connected.  When finished, run:&lt;/li&gt;
&lt;/ol&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;Remove-PSSession $Session
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;strong&gt;Update:&lt;/strong&gt; Here is an awesome project on github that is a Office 365 Powershell GUI: &lt;a href=&#34;https://github.com/bwya77/O365-Administration-Center&#34;&gt;https://github.com/bwya77/O365-Administration-Center&lt;/a&gt;&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>Connecting to Office 365 via Powershell for the first time? Here are the steps to get started:</p>
<ol>
<li>Install the <a href="http://go.microsoft.com/fwlink/?LinkID=286152">Microsoft Online Services Sign-In Assistant for IT Professionals RTW</a></li>
<li>Install the <a href="http://go.microsoft.com/fwlink/p/?linkid=236297">Azure Active Directory Module for Windows Powershell (64-bit version)</a></li>
<li>Open Powershell and run this command the first time you connect on your computer:</li>
</ol>
<pre tabindex="0"><code>Set-ExecutionPolicy RemoteSigned
</code></pre><ol>
<li>Next, run these three commands (you&rsquo;ll do this everytime you want to connect):</li>
</ol>
<pre tabindex="0"><code>$UserCredential = Get-Credential

$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection

Import-PSSession $Session
</code></pre><ol>
<li>You should now be connected.  When finished, run:</li>
</ol>
<pre tabindex="0"><code>Remove-PSSession $Session
</code></pre><p><strong>Update:</strong> Here is an awesome project on github that is a Office 365 Powershell GUI: <a href="https://github.com/bwya77/O365-Administration-Center">https://github.com/bwya77/O365-Administration-Center</a></p>
<p>Microsoft References:</p>
<p><a href="https://technet.microsoft.com/en-ca/library/jj151815.aspx#bkmk_installmodule">https://technet.microsoft.com/en-ca/library/jj151815.aspx#bkmk_installmodule</a><br>
<a href="https://technet.microsoft.com/en-us/library/jj984289(v=exchg.160).aspx">https://technet.microsoft.com/en-us/library/jj984289(v=exchg.160).aspx</a></p>
]]></content:encoded>
    </item>
    <item>
      <title>The Unspoken Truth About Managing Geeks</title>
      <link>https://thenetworkstack.com/the-unspoken-truth-about-managing-geeks/</link>
      <pubDate>Wed, 24 Feb 2016 20:28:47 +0000</pubDate>
      <guid>https://thenetworkstack.com/the-unspoken-truth-about-managing-geeks/</guid>
      <description>&lt;p&gt;Interesting article on IT culture, definitely worth a read: &lt;a href=&#34;http://www.computerworld.com/article/2527153/it-management/opinion--the-unspoken-truth-about-managing-geeks.html&#34;&gt;http://www.computerworld.com/article/2527153/it-management/opinion--the-unspoken-truth-about-managing-geeks.html&lt;/a&gt;&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>Interesting article on IT culture, definitely worth a read: <a href="http://www.computerworld.com/article/2527153/it-management/opinion--the-unspoken-truth-about-managing-geeks.html">http://www.computerworld.com/article/2527153/it-management/opinion--the-unspoken-truth-about-managing-geeks.html</a></p>
]]></content:encoded>
    </item>
    <item>
      <title>CUCM IM change postgres external database</title>
      <link>https://thenetworkstack.com/cucm-im-change-postgres-external-database/</link>
      <pubDate>Wed, 24 Feb 2016 19:56:00 +0000</pubDate>
      <guid>https://thenetworkstack.com/cucm-im-change-postgres-external-database/</guid>
      <description>&lt;p&gt;If you need to change the postgres external database for CUCM, there a few steps to follow:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Change database server name&lt;br&gt;
a. External server setup -&amp;gt; External databases&lt;/li&gt;
&lt;li&gt;Unassign servers and disable persistent chat&lt;br&gt;
a. Messaging -&amp;gt; Group Chat and Persistent Chat&lt;br&gt;
b. Change &amp;ldquo;Persistant Chat Database Assigntment&amp;rdquo; to unsassigned&lt;br&gt;
c. Uncheck &amp;ldquo;Enable Persistant Chat&amp;rdquo; and Save&lt;/li&gt;
&lt;li&gt;Assign servers and enable persistent chat&lt;br&gt;
a. Messaging -&amp;gt; Group Chat and Persistent Chat&lt;br&gt;
b. Change &amp;ldquo;Persistant Chat Database Assigntment&amp;rdquo; to assigned&lt;br&gt;
c. Check &amp;ldquo;Enable Persistant Chat&amp;rdquo; and Save&lt;/li&gt;
&lt;li&gt;Restart Cisco XCP Router&lt;/li&gt;
&lt;li&gt;Start XCP Text Conference Manager&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;This blog post helped figure out the process:  &lt;a href=&#34;http://collabtechnotes.blogspot.com/2015/07/postgre-sql-cisco-xcp-message-archiver.html&#34;&gt;http://collabtechnotes.blogspot.com/2015/07/postgre-sql-cisco-xcp-message-archiver.html&lt;/a&gt;&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>If you need to change the postgres external database for CUCM, there a few steps to follow:</p>
<ol>
<li>Change database server name<br>
a. External server setup -&gt; External databases</li>
<li>Unassign servers and disable persistent chat<br>
a. Messaging -&gt; Group Chat and Persistent Chat<br>
b. Change &ldquo;Persistant Chat Database Assigntment&rdquo; to unsassigned<br>
c. Uncheck &ldquo;Enable Persistant Chat&rdquo; and Save</li>
<li>Assign servers and enable persistent chat<br>
a. Messaging -&gt; Group Chat and Persistent Chat<br>
b. Change &ldquo;Persistant Chat Database Assigntment&rdquo; to assigned<br>
c. Check &ldquo;Enable Persistant Chat&rdquo; and Save</li>
<li>Restart Cisco XCP Router</li>
<li>Start XCP Text Conference Manager</li>
</ol>
<p>This blog post helped figure out the process:  <a href="http://collabtechnotes.blogspot.com/2015/07/postgre-sql-cisco-xcp-message-archiver.html">http://collabtechnotes.blogspot.com/2015/07/postgre-sql-cisco-xcp-message-archiver.html</a></p>
]]></content:encoded>
    </item>
    <item>
      <title>ASR 1001-X Show Transceiver</title>
      <link>https://thenetworkstack.com/asr-1001-x-show-transceiver/</link>
      <pubDate>Thu, 04 Feb 2016 17:30:33 +0000</pubDate>
      <guid>https://thenetworkstack.com/asr-1001-x-show-transceiver/</guid>
      <description>&lt;p&gt;On our new ASR I was looking for a command similar to &lt;code&gt;show interface 1/0/1 transceiver&lt;/code&gt;, but that didn&amp;rsquo;t exist.  Here are the commands I found relevant to the ASR:&lt;/p&gt;
&lt;p&gt;To show transceiver hardware details:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;#show hw-module interface g0/0/1 transceiver idprom
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;To show transceiver temp and light levels:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;#show hw-module interface g0/0/1 transceiver status
&lt;/code&gt;&lt;/pre&gt;</description>
      <content:encoded><![CDATA[<p>On our new ASR I was looking for a command similar to <code>show interface 1/0/1 transceiver</code>, but that didn&rsquo;t exist.  Here are the commands I found relevant to the ASR:</p>
<p>To show transceiver hardware details:</p>
<pre tabindex="0"><code>#show hw-module interface g0/0/1 transceiver idprom
</code></pre><p>To show transceiver temp and light levels:</p>
<pre tabindex="0"><code>#show hw-module interface g0/0/1 transceiver status
</code></pre>]]></content:encoded>
    </item>
    <item>
      <title>Active Directory Transfer Roles</title>
      <link>https://thenetworkstack.com/active-directory-transfer-roles/</link>
      <pubDate>Thu, 10 Dec 2015 20:25:31 +0000</pubDate>
      <guid>https://thenetworkstack.com/active-directory-transfer-roles/</guid>
      <description>&lt;p&gt;If you need to transfer the Active Directory FSMO roles to a new server, these simple steps were easy to follow.  Took about 5 minutes.&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;http://www.techieshelp.com/how-to-transfer-fsmo-roles-graphical-and-command-line/&#34;&gt;http://www.techieshelp.com/how-to-transfer-fsmo-roles-graphical-and-command-line/&lt;/a&gt;&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>If you need to transfer the Active Directory FSMO roles to a new server, these simple steps were easy to follow.  Took about 5 minutes.</p>
<p><a href="http://www.techieshelp.com/how-to-transfer-fsmo-roles-graphical-and-command-line/">http://www.techieshelp.com/how-to-transfer-fsmo-roles-graphical-and-command-line/</a></p>
]]></content:encoded>
    </item>
    <item>
      <title>Windows SSL Certificate Installation</title>
      <link>https://thenetworkstack.com/windows-ssl-certificate-installation/</link>
      <pubDate>Tue, 01 Dec 2015 23:08:41 +0000</pubDate>
      <guid>https://thenetworkstack.com/windows-ssl-certificate-installation/</guid>
      <description>&lt;p&gt;The Digicert cert utility for Windows make the process so much easier:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;To generate the CSR:&lt;/strong&gt;&lt;br&gt;
&lt;a href=&#34;https://www.digicert.com/util/csr-creation-microsoft-active-directory-ldap-2012-digicert-utility.htm&#34;&gt;https://www.digicert.com/util/csr-creation-microsoft-active-directory-ldap-2012-digicert-utility.htm&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;To install the Cert:&lt;/strong&gt;&lt;br&gt;
&lt;a href=&#34;https://www.digicert.com/ssl-certificate-installation-microsoft-active-directory-ldap-2012.htm&#34;&gt;https://www.digicert.com/ssl-certificate-installation-microsoft-active-directory-ldap-2012.htm&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;For LDAPS on a domain controller, I did not have to import the cert file into the AD DS personal store.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>The Digicert cert utility for Windows make the process so much easier:</p>
<p><strong>To generate the CSR:</strong><br>
<a href="https://www.digicert.com/util/csr-creation-microsoft-active-directory-ldap-2012-digicert-utility.htm">https://www.digicert.com/util/csr-creation-microsoft-active-directory-ldap-2012-digicert-utility.htm</a></p>
<p><strong>To install the Cert:</strong><br>
<a href="https://www.digicert.com/ssl-certificate-installation-microsoft-active-directory-ldap-2012.htm">https://www.digicert.com/ssl-certificate-installation-microsoft-active-directory-ldap-2012.htm</a></p>
<p>For LDAPS on a domain controller, I did not have to import the cert file into the AD DS personal store.</p>
]]></content:encoded>
    </item>
    <item>
      <title>Duo Security - HA Radius Servers</title>
      <link>https://thenetworkstack.com/duo-security-ha-radius-servers/</link>
      <pubDate>Thu, 19 Nov 2015 01:49:07 +0000</pubDate>
      <guid>https://thenetworkstack.com/duo-security-ha-radius-servers/</guid>
      <description>&lt;p&gt;If you are using Duo Security MFA (highly recommended), you may want high-availability for your Duo Radius servers.  Duo doesn&amp;rsquo;t currently have a &amp;ldquo;supported&amp;rdquo; solution for this, but &lt;strong&gt;keepalived&lt;/strong&gt; worked great after a quick call to support.  This is also assuming you have followed Duo&amp;rsquo;s instructions to install their radius server (found &lt;a href=&#34;https://www.duosecurity.com/docs/radius&#34;&gt;here&lt;/a&gt;)&lt;/p&gt;
&lt;p&gt;First, install keepalived (basic instructions for Ubuntu 14.04:  &lt;a href=&#34;https://raymii.org/s/tutorials/Keepalived-Simple-IP-failover-on-Ubuntu.html&#34;&gt;https://raymii.org/s/tutorials/Keepalived-Simple-IP-failover-on-Ubuntu.html&lt;/a&gt;)&lt;/p&gt;
&lt;p&gt;Radius server #1 config:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;vrrp_instance VIP_1 {
 state MASTER
 interface eth0
 virtual_router_id 100
 priority 101
 preempt_delay 30
 advert_int 1
authentication {
 auth_type PASS
  auth_pass password
  }
virtual_ipaddress  {
10.0.0.1 dev eth0
 }
}
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Radius server #2 config:&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>If you are using Duo Security MFA (highly recommended), you may want high-availability for your Duo Radius servers.  Duo doesn&rsquo;t currently have a &ldquo;supported&rdquo; solution for this, but <strong>keepalived</strong> worked great after a quick call to support.  This is also assuming you have followed Duo&rsquo;s instructions to install their radius server (found <a href="https://www.duosecurity.com/docs/radius">here</a>)</p>
<p>First, install keepalived (basic instructions for Ubuntu 14.04:  <a href="https://raymii.org/s/tutorials/Keepalived-Simple-IP-failover-on-Ubuntu.html">https://raymii.org/s/tutorials/Keepalived-Simple-IP-failover-on-Ubuntu.html</a>)</p>
<p>Radius server #1 config:</p>
<pre tabindex="0"><code>vrrp_instance VIP_1 {
 state MASTER
 interface eth0
 virtual_router_id 100
 priority 101
 preempt_delay 30
 advert_int 1
authentication {
 auth_type PASS
  auth_pass password
  }
virtual_ipaddress  {
10.0.0.1 dev eth0
 }
}
</code></pre><p>Radius server #2 config:</p>
<pre tabindex="0"><code>vrrp_instance VIP_1 {
 state BACKUP
 interface eth0
 virtual_router_id 100
 priority 100
 preempt_delay 30
 advert_int 1
authentication {
 auth_type PASS
  auth_pass password
  }
virtual_ipaddress  {
10.0.0.1 dev eth0
 }
}
</code></pre><p>After this was completed, keepalived was up and running, and I could ping/ssh to the VIP, <em><strong>but</strong></em>, Duo was not responding to radius requests on the VIP!? After trying several different options, I called into Duo Support to see if anything could be done.  The support engineer and I discovered that the &ldquo;interface=&rdquo; command in authproxy.cfg could be used to bind to an IP address other than the default eth0 address.  This is what I added to the top of the authproxy.cfg for Duo Radius:</p>
<pre tabindex="0"><code>[main]
interface=10.0.0.1

[ad_client]
...etc
</code></pre><p>After I restarted the duoauthproxy service, radius requests completed successfully using the VIP and my HA solution is complete!  Testing shows 1-second failover times between both servers with keepalived.</p>
<p>View the VIP assigned to eth0:</p>
<pre tabindex="0"><code>ip addr show eth0
</code></pre>]]></content:encoded>
    </item>
    <item>
      <title>Cisco ISR4431 Random Reboot</title>
      <link>https://thenetworkstack.com/cisco-isr4431-random-reboot/</link>
      <pubDate>Mon, 28 Sep 2015 21:51:15 +0000</pubDate>
      <guid>https://thenetworkstack.com/cisco-isr4431-random-reboot/</guid>
      <description>&lt;p&gt;My ISR4431 router has randomly rebooted a couple times, finally found this field notice:&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;http://www.cisco.com/c/en/us/support/docs/field-notices/639/fn63938.html&#34;&gt;http://www.cisco.com/c/en/us/support/docs/field-notices/639/fn63938.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The router is being used for light VPN duties, nothing too heavy.  After upgrading per the Field Notice, all has been fine.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>My ISR4431 router has randomly rebooted a couple times, finally found this field notice:</p>
<p><a href="http://www.cisco.com/c/en/us/support/docs/field-notices/639/fn63938.html">http://www.cisco.com/c/en/us/support/docs/field-notices/639/fn63938.html</a></p>
<p>The router is being used for light VPN duties, nothing too heavy.  After upgrading per the Field Notice, all has been fine.</p>
]]></content:encoded>
    </item>
    <item>
      <title>Active Directory Health Check</title>
      <link>https://thenetworkstack.com/active-directory-health-check/</link>
      <pubDate>Thu, 23 Jul 2015 00:01:52 +0000</pubDate>
      <guid>https://thenetworkstack.com/active-directory-health-check/</guid>
      <description>&lt;p&gt;Migrated a DC and wanted to do some basic AD health checks.&lt;/p&gt;
&lt;p&gt;From the cmd prompt (domain joined pc with sufficient privileges or on the DC):&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Replication Info:&lt;/strong&gt;&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;repadmin /replsummary
repadmin /showrepl
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;strong&gt;Query FSMO role holders, which should confirm that they are online:&lt;/strong&gt;&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;netdom query fsmo
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;strong&gt;General Server Diagnosis:&lt;/strong&gt;&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;dcdiag /a /s:&amp;lt;DC server name&amp;gt;
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;strong&gt;If you want the DC&amp;rsquo;s to force sync and see if there are any issues:&lt;/strong&gt;&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;repadmin /syncall
&lt;/code&gt;&lt;/pre&gt;</description>
      <content:encoded><![CDATA[<p>Migrated a DC and wanted to do some basic AD health checks.</p>
<p>From the cmd prompt (domain joined pc with sufficient privileges or on the DC):</p>
<p><strong>Replication Info:</strong></p>
<pre tabindex="0"><code>repadmin /replsummary
repadmin /showrepl
</code></pre><p><strong>Query FSMO role holders, which should confirm that they are online:</strong></p>
<pre tabindex="0"><code>netdom query fsmo
</code></pre><p><strong>General Server Diagnosis:</strong></p>
<pre tabindex="0"><code>dcdiag /a /s:&lt;DC server name&gt;
</code></pre><p><strong>If you want the DC&rsquo;s to force sync and see if there are any issues:</strong></p>
<pre tabindex="0"><code>repadmin /syncall
</code></pre>]]></content:encoded>
    </item>
    <item>
      <title>Cisco Router Packet Capture and Export</title>
      <link>https://thenetworkstack.com/cisco-router-packet-capture-and-export/</link>
      <pubDate>Wed, 22 Jul 2015 20:05:19 +0000</pubDate>
      <guid>https://thenetworkstack.com/cisco-router-packet-capture-and-export/</guid>
      <description>&lt;p&gt;I&amp;rsquo;ve recently had to troubleshoot some SIP calls going through a Cisco router (CUBE) and needed a way to capture the stream and view it easily.&lt;/p&gt;
&lt;p&gt;To do this, you will need:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;CLI access to the router&lt;/li&gt;
&lt;li&gt;Wireshark installed on your PC&lt;/li&gt;
&lt;li&gt;tftp server installed on your PC (I used tftpd found here: &lt;a href=&#34;http://tftpd32.jounin.net/tftpd32_download.html&#34;&gt;tftpd32&lt;/a&gt;)&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Here are the steps required:&lt;/p&gt;
&lt;p&gt;Log into your router and create the capture policy:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;ip traffic-export profile &amp;lt;name&amp;gt; mode capture bidirectional
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Assign the capture profile to the interface:&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>I&rsquo;ve recently had to troubleshoot some SIP calls going through a Cisco router (CUBE) and needed a way to capture the stream and view it easily.</p>
<p>To do this, you will need:</p>
<ol>
<li>CLI access to the router</li>
<li>Wireshark installed on your PC</li>
<li>tftp server installed on your PC (I used tftpd found here: <a href="http://tftpd32.jounin.net/tftpd32_download.html">tftpd32</a>)</li>
</ol>
<p>Here are the steps required:</p>
<p>Log into your router and create the capture policy:</p>
<pre tabindex="0"><code>ip traffic-export profile &lt;name&gt; mode capture bidirectional
</code></pre><p>Assign the capture profile to the interface:</p>
<pre tabindex="0"><code>interface &lt;interface&gt;
 ip traffic-export apply &lt;name&gt; size 20000000
</code></pre><p>Clear any data and start the export:</p>
<pre tabindex="0"><code>traffic-export interface &lt;interface&gt; clear
traffic-export interface &lt;interface&gt; start
</code></pre><p>Test your application (or in my case, a SIP call)</p>
<p>Once the test is complete, stop the export:</p>
<pre tabindex="0"><code>traffic-export interface &lt;interface&gt; stop
</code></pre><p>Export the captured traffic to your PC via tftp:</p>
<pre tabindex="0"><code>traffic-export interface &lt;interface&gt; copy tftp:
</code></pre><p>Use Wireshark to open the file, then click &ldquo;Telephony&rdquo; at the top and then &ldquo;VoIP Calls&rdquo; to analyze the SIP traffic</p>
<p>Also, if you want to send your logs (in case of a debug) to your PC via tftp, the command is:</p>
<pre tabindex="0"><code>show logging | redirect tftp://tftpserver/destinationfilename
</code></pre><p>Source: <a href="https://thevoiceman.wordpress.com/2014/11/28/ip-traffic-exporting-cube/">https://thevoiceman.wordpress.com/2014/11/28/ip-traffic-exporting-cube/</a></p>
]]></content:encoded>
    </item>
    <item>
      <title>Cisco CUCM/CUBE SIP Troubleshooting</title>
      <link>https://thenetworkstack.com/cisco-cucmcube-sip-troubleshooting/</link>
      <pubDate>Wed, 22 Jul 2015 01:19:36 +0000</pubDate>
      <guid>https://thenetworkstack.com/cisco-cucmcube-sip-troubleshooting/</guid>
      <description>&lt;p&gt;Some quick notes on troubleshooting tools in a Cisco SIP Call Manager environment:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Commands on the CUBE router:&lt;/strong&gt;&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;show call active voice compact
debug ccsip messages
debug voip ccapi inout
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;strong&gt;Article on understanding SIP traces:&lt;/strong&gt;\&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;https://supportforums.cisco.com/document/113271/understanding-sip-traces&#34;&gt;https://supportforums.cisco.com/document/113271/understanding-sip-traces&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;SIP call flows and troubleshooting:&lt;/strong&gt;\&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;https://supportforums.cisco.com/document/71131/basic-sip-call-flows-troubleshooting-commands&#34;&gt;https://supportforums.cisco.com/document/71131/basic-sip-call-flows-troubleshooting-commands&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Using CUCM RTMT Session Trace:&lt;/strong&gt;\&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;http://www.ucguerrilla.com/2012/03/cisco-cucm-rtmt-session-trace.html&#34;&gt;http://www.ucguerrilla.com/2012/03/cisco-cucm-rtmt-session-trace.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Using TranslaterX as an additional tool to Session Trace:&lt;/strong&gt;\&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;https://wiklunds.wordpress.com/2013/06/09/sip-traces-from-cucm-in-transla/&#34;&gt;https://wiklunds.wordpress.com/2013/06/09/sip-traces-from-cucm-in-transla/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;2 Hour Cisco Live breakout on SIP troubleshooting with CUCM and CUBE:&lt;/strong&gt;\&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;https://www.ciscolive.com/online/connect/sessionDetail.ww?SESSION_ID=6098&amp;amp;tclass=popup&#34;&gt;https://www.ciscolive.com/online/connect/sessionDetail.ww?SESSION_ID=6098&amp;amp;tclass=popup&lt;/a&gt;&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>Some quick notes on troubleshooting tools in a Cisco SIP Call Manager environment:</p>
<p><strong>Commands on the CUBE router:</strong></p>
<pre tabindex="0"><code>show call active voice compact
debug ccsip messages
debug voip ccapi inout
</code></pre><p><strong>Article on understanding SIP traces:</strong>\</p>
<p><a href="https://supportforums.cisco.com/document/113271/understanding-sip-traces">https://supportforums.cisco.com/document/113271/understanding-sip-traces</a></p>
<p><strong>SIP call flows and troubleshooting:</strong>\</p>
<p><a href="https://supportforums.cisco.com/document/71131/basic-sip-call-flows-troubleshooting-commands">https://supportforums.cisco.com/document/71131/basic-sip-call-flows-troubleshooting-commands</a></p>
<p><strong>Using CUCM RTMT Session Trace:</strong>\</p>
<p><a href="http://www.ucguerrilla.com/2012/03/cisco-cucm-rtmt-session-trace.html">http://www.ucguerrilla.com/2012/03/cisco-cucm-rtmt-session-trace.html</a></p>
<p><strong>Using TranslaterX as an additional tool to Session Trace:</strong>\</p>
<p><a href="https://wiklunds.wordpress.com/2013/06/09/sip-traces-from-cucm-in-transla/">https://wiklunds.wordpress.com/2013/06/09/sip-traces-from-cucm-in-transla/</a></p>
<p><strong>2 Hour Cisco Live breakout on SIP troubleshooting with CUCM and CUBE:</strong>\</p>
<p><a href="https://www.ciscolive.com/online/connect/sessionDetail.ww?SESSION_ID=6098&amp;tclass=popup">https://www.ciscolive.com/online/connect/sessionDetail.ww?SESSION_ID=6098&amp;tclass=popup</a></p>
]]></content:encoded>
    </item>
    <item>
      <title>Nexus C9372PX NX-OS Upgrade</title>
      <link>https://thenetworkstack.com/nexus-c9372px-nx-os-upgrade/</link>
      <pubDate>Thu, 28 May 2015 23:13:26 +0000</pubDate>
      <guid>https://thenetworkstack.com/nexus-c9372px-nx-os-upgrade/</guid>
      <description>&lt;p&gt;Recently upgraded a pair of C9372PX switches with the following commands:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Copy new .bin file over to switch&lt;/li&gt;
&lt;/ol&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;copy scp://username@scpserverIPaddress//n9000-dk9.7.0.3.I1.2.bin bootflash:n9000-dk9.7.0.3.I1.2.bin
&lt;/code&gt;&lt;/pre&gt;&lt;ol&gt;
&lt;li&gt;Show the impact of installing the new version&lt;/li&gt;
&lt;/ol&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;show install all impact nxos bootflash:n9000-dk9.7.0.3.I1.2.bin
&lt;/code&gt;&lt;/pre&gt;&lt;ol&gt;
&lt;li&gt;Install the new version&lt;/li&gt;
&lt;/ol&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;install all nxos bootflash:n9000-dk9.7.0.3.I1.2.bin
&lt;/code&gt;&lt;/pre&gt;&lt;ol&gt;
&lt;li&gt;After you run the install, it will do the impact evaluation again and ask you to confirm installation&lt;/li&gt;
&lt;li&gt;Install took less than 5 minutes and then rebooted&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;The official Cisco install guide can be found &lt;a href=&#34;http://www.cisco.com/c/en/us/td/docs/switches/datacenter/nexus9000/sw/7-x/upgrade/guide/b_Cisco_Nexus_9000_Series_NX-OS_Software_Upgrade_and_Downgrade_Guide_Release_7x.pdf&#34;&gt;here&lt;/a&gt;&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>Recently upgraded a pair of C9372PX switches with the following commands:</p>
<ol>
<li>Copy new .bin file over to switch</li>
</ol>
<pre tabindex="0"><code>copy scp://username@scpserverIPaddress//n9000-dk9.7.0.3.I1.2.bin bootflash:n9000-dk9.7.0.3.I1.2.bin
</code></pre><ol>
<li>Show the impact of installing the new version</li>
</ol>
<pre tabindex="0"><code>show install all impact nxos bootflash:n9000-dk9.7.0.3.I1.2.bin
</code></pre><ol>
<li>Install the new version</li>
</ol>
<pre tabindex="0"><code>install all nxos bootflash:n9000-dk9.7.0.3.I1.2.bin
</code></pre><ol>
<li>After you run the install, it will do the impact evaluation again and ask you to confirm installation</li>
<li>Install took less than 5 minutes and then rebooted</li>
</ol>
<p>The official Cisco install guide can be found <a href="http://www.cisco.com/c/en/us/td/docs/switches/datacenter/nexus9000/sw/7-x/upgrade/guide/b_Cisco_Nexus_9000_Series_NX-OS_Software_Upgrade_and_Downgrade_Guide_Release_7x.pdf">here</a></p>
]]></content:encoded>
    </item>
    <item>
      <title>Singlewire Informacast Upgrade</title>
      <link>https://thenetworkstack.com/singlewire-informacast-upgrade/</link>
      <pubDate>Tue, 26 May 2015 19:25:28 +0000</pubDate>
      <guid>https://thenetworkstack.com/singlewire-informacast-upgrade/</guid>
      <description>&lt;p&gt;Upgraded from Informacast 9.0.2 to 9.1.1.  Upgrade was very simple and went smoothly following these instructions:&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;https://www.singlewire.com/help/advanced/cucm/Administer_the_Virtual_Appliance/Virtual_Appliance_Upgrade_Process/Install_New_Software_Package(s).htm&#34;&gt;https://www.singlewire.com/help/advanced/cucm/Administer_the_Virtual_Appliance/Virtual_Appliance_Upgrade_Process/Install_New_Software_Package(s).htm&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Observations:&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;If you are doing this upgrade from a Windows client, download Putty PSCP and put it in the same directory as your .deb file you are copying over for step 2.&lt;/li&gt;
&lt;li&gt;During step 8, the web portal will be &amp;ldquo;blank&amp;rdquo;, but its working behind the scenes. My install took approximately 5 minutes before showing the install package list.&lt;/li&gt;
&lt;/ol&gt;</description>
      <content:encoded><![CDATA[<p>Upgraded from Informacast 9.0.2 to 9.1.1.  Upgrade was very simple and went smoothly following these instructions:</p>
<p><a href="https://www.singlewire.com/help/advanced/cucm/Administer_the_Virtual_Appliance/Virtual_Appliance_Upgrade_Process/Install_New_Software_Package(s).htm">https://www.singlewire.com/help/advanced/cucm/Administer_the_Virtual_Appliance/Virtual_Appliance_Upgrade_Process/Install_New_Software_Package(s).htm</a></p>
<p><strong>Observations:</strong></p>
<ol>
<li>If you are doing this upgrade from a Windows client, download Putty PSCP and put it in the same directory as your .deb file you are copying over for step 2.</li>
<li>During step 8, the web portal will be &ldquo;blank&rdquo;, but its working behind the scenes. My install took approximately 5 minutes before showing the install package list.</li>
</ol>
]]></content:encoded>
    </item>
    <item>
      <title>Jabber for iPhone Move to Mobile</title>
      <link>https://thenetworkstack.com/jabber-for-iphone-move-to-mobile/</link>
      <pubDate>Tue, 17 Mar 2015 16:59:34 +0000</pubDate>
      <guid>https://thenetworkstack.com/jabber-for-iphone-move-to-mobile/</guid>
      <description>&lt;p&gt;I noticed on the Cisco Jabber for iPhone app there is a &amp;ldquo;Move to Mobile&amp;rdquo; option when you are on a VoIP call.  This feature did not work for me initially, so here are my steps to get it working.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;User Profile:&lt;/strong&gt; Make sure &amp;ldquo;Enable Mobility&amp;rdquo; is checked&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Remote Destination Profile:&lt;/strong&gt; A remote destination profile needs to be created and assigned to the user with their cell number.  I usually have the user sign into the self-care portal and have them create their own profile.  &amp;ldquo;Enable Move to Mobile&amp;rdquo; must be checked in the profile.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Device:&lt;/strong&gt; The TCT phone device for their iPhone needs to have the &amp;ldquo;Owner User ID&amp;rdquo; and &amp;ldquo;Mobility User ID&amp;rdquo; assigned to the user.  Also, the Transfer to Mobile Network option should be set to &amp;ldquo;Use Mobility Softkey&amp;rdquo;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Apparently their are two ways to setup up Move to Mobile, and I found this option (the user receives a call from CUCM once they click &amp;ldquo;Move to Mobile&amp;rdquo;) most effective to implement.  You can find both options detailed &lt;a href=&#34;http://www.cisco.com/c/en/us/td/docs/voice_ip_comm/jabber/10_6/CJAB_BK_C56DE1AB_00_cisco-jabber-106-deployment-and-installation-guide/CJAB_BK_C56DE1AB_00_cisco-jabber-106-deployment-and_chapter_010010.html#JABI_RF_T674788F_00&#34;&gt;here&lt;/a&gt;.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>I noticed on the Cisco Jabber for iPhone app there is a &ldquo;Move to Mobile&rdquo; option when you are on a VoIP call.  This feature did not work for me initially, so here are my steps to get it working.</p>
<ol>
<li><strong>User Profile:</strong> Make sure &ldquo;Enable Mobility&rdquo; is checked</li>
<li><strong>Remote Destination Profile:</strong> A remote destination profile needs to be created and assigned to the user with their cell number.  I usually have the user sign into the self-care portal and have them create their own profile.  &ldquo;Enable Move to Mobile&rdquo; must be checked in the profile.</li>
<li><strong>Device:</strong> The TCT phone device for their iPhone needs to have the &ldquo;Owner User ID&rdquo; and &ldquo;Mobility User ID&rdquo; assigned to the user.  Also, the Transfer to Mobile Network option should be set to &ldquo;Use Mobility Softkey&rdquo;</li>
</ol>
<p>Apparently their are two ways to setup up Move to Mobile, and I found this option (the user receives a call from CUCM once they click &ldquo;Move to Mobile&rdquo;) most effective to implement.  You can find both options detailed <a href="http://www.cisco.com/c/en/us/td/docs/voice_ip_comm/jabber/10_6/CJAB_BK_C56DE1AB_00_cisco-jabber-106-deployment-and-installation-guide/CJAB_BK_C56DE1AB_00_cisco-jabber-106-deployment-and_chapter_010010.html#JABI_RF_T674788F_00">here</a>.</p>
]]></content:encoded>
    </item>
    <item>
      <title>Ruckus ZoneDirector HA Firmware Upgrade</title>
      <link>https://thenetworkstack.com/ruckus-zonedirector-ha-firmware-upgrade/</link>
      <pubDate>Mon, 16 Mar 2015 03:40:51 +0000</pubDate>
      <guid>https://thenetworkstack.com/ruckus-zonedirector-ha-firmware-upgrade/</guid>
      <description>&lt;p&gt;The process to upgrade your Ruckus ZoneDirectors in a Smart-Redundancy (HA) pair is extremely simple.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Login to the shared management interface (or the active ZD)&lt;/li&gt;
&lt;li&gt;Navigate to Administer -&amp;gt; Upgrade and browse for the new firmware file on your desktop&lt;/li&gt;
&lt;li&gt;Once uploaded, the browse button now says &amp;ldquo;Upgrade&amp;rdquo;&lt;/li&gt;
&lt;li&gt;Click upgrade, and the active ZD will upgrade the standby ZD first, which will reboot and become the active ZD.  The former active ZD will then upgrade its firmware and reboot to become the standby ZD.&lt;/li&gt;
&lt;li&gt;All the AP&amp;rsquo;s will start upgrading their firmware and reboot&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;Highly recommended to back up both ZD configs before starting (Administer -&amp;gt; Back up)&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>The process to upgrade your Ruckus ZoneDirectors in a Smart-Redundancy (HA) pair is extremely simple.</p>
<ol>
<li>Login to the shared management interface (or the active ZD)</li>
<li>Navigate to Administer -&gt; Upgrade and browse for the new firmware file on your desktop</li>
<li>Once uploaded, the browse button now says &ldquo;Upgrade&rdquo;</li>
<li>Click upgrade, and the active ZD will upgrade the standby ZD first, which will reboot and become the active ZD.  The former active ZD will then upgrade its firmware and reboot to become the standby ZD.</li>
<li>All the AP&rsquo;s will start upgrading their firmware and reboot</li>
</ol>
<p><em><strong>Highly recommended to back up both ZD configs before starting (Administer -&gt; Back up)</strong></em></p>
]]></content:encoded>
    </item>
    <item>
      <title>Export User List of AD Security Group</title>
      <link>https://thenetworkstack.com/export-user-list-of-ad-security-group/</link>
      <pubDate>Fri, 06 Mar 2015 06:23:01 +0000</pubDate>
      <guid>https://thenetworkstack.com/export-user-list-of-ad-security-group/</guid>
      <description>&lt;p&gt;If you need to get a list of all members in an AD Security Group, open up powershell and try the following commands from a DC:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;This command will list all the members and the OU structure they below to:&lt;/li&gt;
&lt;/ol&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;dsquery group -name &amp;#34;GroupName&amp;#34; | dsget group -members
&lt;/code&gt;&lt;/pre&gt;&lt;ol start=&#34;2&#34;&gt;
&lt;li&gt;Add this to the command to only get the display name of the users:&lt;/li&gt;
&lt;/ol&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;dsquery group -name &amp;#34;GroupName&amp;#34; | dsget group -members | dsget user -display
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;strong&gt;Update:&lt;/strong&gt; I have posted more recently with updated/additional commands: &lt;a href=&#34;https://thenetworkstack.com/active-directory-powershell/&#34;&gt;https://thenetworkstack.com/active-directory-powershell/&lt;/a&gt;&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>If you need to get a list of all members in an AD Security Group, open up powershell and try the following commands from a DC:</p>
<ol>
<li>This command will list all the members and the OU structure they below to:</li>
</ol>
<pre tabindex="0"><code>dsquery group -name &#34;GroupName&#34; | dsget group -members
</code></pre><ol start="2">
<li>Add this to the command to only get the display name of the users:</li>
</ol>
<pre tabindex="0"><code>dsquery group -name &#34;GroupName&#34; | dsget group -members | dsget user -display
</code></pre><p><strong>Update:</strong> I have posted more recently with updated/additional commands: <a href="/active-directory-powershell/">https://thenetworkstack.com/active-directory-powershell/</a></p>
]]></content:encoded>
    </item>
    <item>
      <title>CUCM Phone Firmware Update</title>
      <link>https://thenetworkstack.com/cucm-phone-firmware-update/</link>
      <pubDate>Thu, 26 Feb 2015 01:10:19 +0000</pubDate>
      <guid>https://thenetworkstack.com/cucm-phone-firmware-update/</guid>
      <description>&lt;ol&gt;
&lt;li&gt;Go to cisco.com, search for your phone model and download the relevant firmware&lt;/li&gt;
&lt;li&gt;Copy firmware to a SFTP server (I run Solarwind&amp;rsquo;s free SFTP server on my laptop)&lt;/li&gt;
&lt;li&gt;Log into CUCM Pub: OS Administration-&amp;gt;Software Upgrade-&amp;gt;Install/Upgrade-&amp;gt;Remote Filesystem&lt;/li&gt;
&lt;li&gt;Go through the steps to connect to SFTP and upload the phone firmware&lt;/li&gt;
&lt;li&gt;Repeat steps 3 &amp;amp; 4 on your CUCM Subs&lt;/li&gt;
&lt;li&gt;On the Pub and Subs, log into Serviceability-&amp;gt;Tools-&amp;gt;Control Center - Feature Services&lt;/li&gt;
&lt;li&gt;Select the server you are logged into (Pub or Sub)&lt;/li&gt;
&lt;li&gt;Restart Cisco Tftp&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;On 10.5.2, the device defaults update automatically, and next time the phone reboots it will upgrade it&amp;rsquo;s firmware.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<ol>
<li>Go to cisco.com, search for your phone model and download the relevant firmware</li>
<li>Copy firmware to a SFTP server (I run Solarwind&rsquo;s free SFTP server on my laptop)</li>
<li>Log into CUCM Pub: OS Administration-&gt;Software Upgrade-&gt;Install/Upgrade-&gt;Remote Filesystem</li>
<li>Go through the steps to connect to SFTP and upload the phone firmware</li>
<li>Repeat steps 3 &amp; 4 on your CUCM Subs</li>
<li>On the Pub and Subs, log into Serviceability-&gt;Tools-&gt;Control Center - Feature Services</li>
<li>Select the server you are logged into (Pub or Sub)</li>
<li>Restart Cisco Tftp</li>
</ol>
<p>On 10.5.2, the device defaults update automatically, and next time the phone reboots it will upgrade it&rsquo;s firmware.</p>
]]></content:encoded>
    </item>
    <item>
      <title>Cisco CUCM, CUPS, Unity Upgrade to 10.5.2</title>
      <link>https://thenetworkstack.com/cisco-cucm-cups-unity-upgrade-to-10-5-2/</link>
      <pubDate>Tue, 24 Feb 2015 19:54:24 +0000</pubDate>
      <guid>https://thenetworkstack.com/cisco-cucm-cups-unity-upgrade-to-10-5-2/</guid>
      <description>&lt;p&gt;I recently upgraded a Cisco Call Manager environment from 10.5.1 to 10.5.2, and since I had to figure out all the upgrade steps, I figured I&amp;rsquo;d post my process.  I used the upgrade guide found here: &lt;a href=&#34;http://www.cisco.com/c/en/us/td/docs/voice_ip_comm/cucm/upgrade/10_0_1/CUCM_BK_U4214F9D_00_upgrade-guide-cucm-100.pdf&#34; title=&#34;http://www.cisco.com/c/en/us/td/docs/voice_ip_comm/cucm/upgrade/10_0_1/CUCM_BK_U4214F9D_00_upgrade-guide-cucm-100.pdf&#34;&gt;Cisco Upgrade Guide&lt;/a&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Login to CM Publisher Disaster Recovery System\&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;a. Backup -&amp;gt; Backup Device -&amp;gt; Add New (if not already present)\&lt;/p&gt;
&lt;p&gt;b. Backup -&amp;gt; Manual Backup -&amp;gt; All features -&amp;gt; Start Backup
2. Login to Unity Disaster Recovery System\&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>I recently upgraded a Cisco Call Manager environment from 10.5.1 to 10.5.2, and since I had to figure out all the upgrade steps, I figured I&rsquo;d post my process.  I used the upgrade guide found here: <a href="http://www.cisco.com/c/en/us/td/docs/voice_ip_comm/cucm/upgrade/10_0_1/CUCM_BK_U4214F9D_00_upgrade-guide-cucm-100.pdf" title="http://www.cisco.com/c/en/us/td/docs/voice_ip_comm/cucm/upgrade/10_0_1/CUCM_BK_U4214F9D_00_upgrade-guide-cucm-100.pdf">Cisco Upgrade Guide</a></p>
<ol>
<li>Login to CM Publisher Disaster Recovery System\</li>
</ol>
<p>a. Backup -&gt; Backup Device -&gt; Add New (if not already present)\</p>
<p>b. Backup -&gt; Manual Backup -&gt; All features -&gt; Start Backup
2. Login to Unity Disaster Recovery System\</p>
<p>a. Backup -&gt; Backup Device -&gt; Add New (if not already present)\</p>
<p>b. Backup -&gt; Manual Backup -&gt; All features -&gt; Start Backup
3. Backup all virtual machines (I used XSI backup to do this)
4. Snapshot all virtual machines within VMware
5. Stop LDAP sync interval on Call Manager and Unity (I use UDS for IM)\</p>
<p>a. This is recommended so that LDAP doesn’t attempt to sync during the upgrade
6. Stop Extension Mobility service -&gt; CM Pub and Sub -&gt; Cisco Unified Serviceability
7. Login to CM Pub, Unity Pub and IM&amp;P Pub\</p>
<p>a. OS Administration -&gt; Software Upgrades -&gt; Remote filesystem (or DVD drive)\</p>
<p>b. Upload new iso and click “Do not reboot after Upgrade”
8. Wait for the all the Pub’s to load the new ISO
9. Login to CM Sub, Unity Sub, and IM&amp;P Sub\</p>
<p>a. OS Administration -&gt; Software Upgrades -&gt; Remote filesystem (or DVD drive)\</p>
<p>b. Upload new iso and click “Do not reboot after upgrade”
10. Login to CM Pub\</p>
<p>a. OS Administration -&gt; Settings -&gt; Version -&gt; Switch Version\</p>
<p>b. Wait for Pub to come back up
11. Login to CM Sub\</p>
<p>a. OS Administration -&gt; Settings -&gt; Version -&gt; Switch Version\</p>
<p>b. Wait for Sub to come back up
12. Check database status\</p>
<p>a. SSH to CM Pub: <code>utils dbreplication runtimestate</code> - value should be “2”
13. Check phone functionality
14. Check version via cli: <code>show version active</code>
15. Verify Extension Mobility service is running
16. <strong>Done upgrading Call Manager!</strong>
17. Login to Unity Pub\</p>
<p>a. OS Administration -&gt; Settings -&gt; Version -&gt; Switch Version
18. Wait for Unity Pub to come back up, try checking voicemail from a phone
19. Login to Unity Sub\</p>
<p>a. OS Administration -&gt; Settings -&gt; Version -&gt; Switch Version
20. Check database status\</p>
<p>a. SSH to Unity Pub: <code>utils dbreplication runtimestate</code> - value should be “2”
21. <strong>Done upgrading Unity!</strong>
22. Login to CM Pub and disable IM HA: System -&gt; Presence Redundancy Groups
23. Login to IM&amp;P Pub\</p>
<p>a. OS Administration -&gt; Settings -&gt; Version -&gt; Switch Version\</p>
<p>b. This server took a while to come back up, it has to wait for the Cisco DB to initialize and then the rest of the services will start up
24. Wait for IM&amp;P Pub to come back up with all services started
25. Login to IM&amp;P Sub\</p>
<p>a. OS Administration -&gt; Settings -&gt; Version -&gt; Switch Version\</p>
<p>b. This server also took a while to come back up, it has to wait for the Cisco DB to initialize and then the rest of the services will start up
26. Check database status\</p>
<p>a. SSH to IM&amp;P Pub: <code>utils dbreplication runtimestate</code> - value should be “2”
27. Log into CM Pub and turn on HA for IM cluster\</p>
<p>a. HA will take a couple minutes to re-initialize
28. <strong>Done upgrading IM&amp;P!</strong>
29. Re-enable LDAP sync on Call Manager and Unity</p>
<p>The upgrade went pretty smoothly, with only one hiccup.  After I upgraded the Unity Pub, I couldn&rsquo;t access the Unity Sub webpage in order to switch the version and upgrade.   The webpage just wouldn&rsquo;t load.  I could have restarted Tomcat and tried to get the webpage working, but I decided to proceed with the upgrade, and switched the version from cli with: <code>utils system switch-version</code>. The upgrade was successful and the entire environment is working great!</p>
]]></content:encoded>
    </item>
    <item>
      <title>Backup VMware Virtual Machines</title>
      <link>https://thenetworkstack.com/backup-vmware-virtual-machines/</link>
      <pubDate>Tue, 24 Feb 2015 19:15:29 +0000</pubDate>
      <guid>https://thenetworkstack.com/backup-vmware-virtual-machines/</guid>
      <description>&lt;p&gt;If you need a free, open-source alternative for backing up your virtual machines, look no further than XSI Backup.  Before I did an upgrade to some VM&amp;rsquo;s I wanted to completely back them up (not just a snapshot), so I downloaded XSI Backup here: &lt;a href=&#34;http://sourceforge.net/projects/xsibackup/&#34;&gt;http://sourceforge.net/projects/xsibackup/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Once downloaded, copy it to the /opt folder on your ESXi host. Then you can run it and backup to a datastore that ESXi has mounted.  For example, I want to backup all my VM&amp;rsquo;s to my NFS datastore, I run:&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>If you need a free, open-source alternative for backing up your virtual machines, look no further than XSI Backup.  Before I did an upgrade to some VM&rsquo;s I wanted to completely back them up (not just a snapshot), so I downloaded XSI Backup here: <a href="http://sourceforge.net/projects/xsibackup/">http://sourceforge.net/projects/xsibackup/</a></p>
<p>Once downloaded, copy it to the /opt folder on your ESXi host. Then you can run it and backup to a datastore that ESXi has mounted.  For example, I want to backup all my VM&rsquo;s to my NFS datastore, I run:</p>
<pre tabindex="0"><code>/opt/xsibackup --backup-point=/vmfs/volumes/nfs-datastore/backups --backup-type=running
</code></pre><p>Running that command will backup all the VM&rsquo;s in real-time to the datastore.  You can run <code>/opt/xsibackup --help</code> to see all the variables you can specify, including backing up specific VM&rsquo;s and sending email alerts.</p>
]]></content:encoded>
    </item>
    <item>
      <title>Palo Alto Firewall LDAP Failover</title>
      <link>https://thenetworkstack.com/palo-alto-firewall-ldap-failover/</link>
      <pubDate>Mon, 09 Feb 2015 19:14:51 +0000</pubDate>
      <guid>https://thenetworkstack.com/palo-alto-firewall-ldap-failover/</guid>
      <description>&lt;p&gt;With the default LDAP settings on a Palo Alto firewall, failing over from one LDAP server to another may not work correctly.  You need to tune the LDAP timers and retry intervals down to a lower level.  The settings I used are:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Time Limit: 3&lt;/strong&gt;\&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Bind Time Limit: 4&lt;/strong&gt;\&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Retry Interval: 900&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The official doc is found here: &lt;a href=&#34;https://live.paloaltonetworks.com/docs/DOC-7420&#34; title=&#34;https://live.paloaltonetworks.com/docs/DOC-7420&#34;&gt;https://live.paloaltonetworks.com/docs/DOC-7420&lt;/a&gt;&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>With the default LDAP settings on a Palo Alto firewall, failing over from one LDAP server to another may not work correctly.  You need to tune the LDAP timers and retry intervals down to a lower level.  The settings I used are:</p>
<p><strong>Time Limit: 3</strong>\</p>
<p><strong>Bind Time Limit: 4</strong>\</p>
<p><strong>Retry Interval: 900</strong></p>
<p>The official doc is found here: <a href="https://live.paloaltonetworks.com/docs/DOC-7420" title="https://live.paloaltonetworks.com/docs/DOC-7420">https://live.paloaltonetworks.com/docs/DOC-7420</a></p>
]]></content:encoded>
    </item>
    <item>
      <title>CUCM LDAP Sync Based on User Group</title>
      <link>https://thenetworkstack.com/cucm-ldap-sync-based-on-user-group/</link>
      <pubDate>Fri, 09 Jan 2015 23:08:48 +0000</pubDate>
      <guid>https://thenetworkstack.com/cucm-ldap-sync-based-on-user-group/</guid>
      <description>&lt;p&gt;If you don&amp;rsquo;t want CUCM to sync your entire LDAP directory, you will need to use a LDAP Custom Filter.  This filter can be used to sync based on AD Security Group. The filter is:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;(&amp;amp;(objectclass=user)(!(objectclass=Computer))(!(UserAccountControl:1.2.840.113556.1.4.803:=2)) (memberOf=CN=Demo Security Group,OU=SecondOU,OU=FirstOU,DC=DomainName,DC=com))
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;With this example, the name of my AD Security Group is: &lt;em&gt;Demo Security Group&lt;/em&gt;. Then, you must specify the entire LDAP location string of that security group.  My example would be:&lt;/p&gt;
&lt;p&gt;-DomainName.com\&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>If you don&rsquo;t want CUCM to sync your entire LDAP directory, you will need to use a LDAP Custom Filter.  This filter can be used to sync based on AD Security Group. The filter is:</p>
<pre tabindex="0"><code>(&amp;(objectclass=user)(!(objectclass=Computer))(!(UserAccountControl:1.2.840.113556.1.4.803:=2)) (memberOf=CN=Demo Security Group,OU=SecondOU,OU=FirstOU,DC=DomainName,DC=com))
</code></pre><p>With this example, the name of my AD Security Group is: <em>Demo Security Group</em>. Then, you must specify the entire LDAP location string of that security group.  My example would be:</p>
<p>-DomainName.com\</p>
<p>&ndash;FirstOU\</p>
<p>&mdash;SecondOU\</p>
<p>&mdash;-Demo Security Group</p>
<p>This will allow you to <strong>only</strong> sync users to CUCM that are members of the <em>Demo Security Group</em>.</p>
]]></content:encoded>
    </item>
    <item>
      <title>Cisco Mobile and Remote Access via Expressway</title>
      <link>https://thenetworkstack.com/cisco-mobile-and-remote-access-via-expressway/</link>
      <pubDate>Tue, 06 Jan 2015 18:14:26 +0000</pubDate>
      <guid>https://thenetworkstack.com/cisco-mobile-and-remote-access-via-expressway/</guid>
      <description>&lt;p&gt;Deployed Cisco Expressway C &amp;amp; E for a CUCM deployment, and found these guides most helpful:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Installing the VM on vSphere:&lt;/strong&gt;&lt;br&gt;
&lt;a href=&#34;http://www.cisco.com/c/dam/en/us/td/docs/voice_ip_comm/expressway/install_guide/Cisco-Expressway-Virtual-Machine-Install-Guide-X8-1.pdf&#34;&gt;http://www.cisco.com/c/dam/en/us/td/docs/voice_ip_comm/expressway/install_guide/Cisco-Expressway-Virtual-Machine-Install-Guide-X8-1.pdf&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Configuration and Deployment Guide:&lt;/strong&gt;&lt;br&gt;
&lt;a href=&#34;http://www.cisco.com/c/dam/en/us/td/docs/voice_ip_comm/expressway/config_guide/X8-2/Mobile-Remote-Access-via-Expressway-Deployment-Guide-X8-2.pdf&#34;&gt;http://www.cisco.com/c/dam/en/us/td/docs/voice_ip_comm/expressway/config_guide/X8-2/Mobile-Remote-Access-via-Expressway-Deployment-Guide-X8-2.pdf&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Administrator Guide:&lt;/strong&gt;&lt;br&gt;
&lt;a href=&#34;http://www.cisco.com/en/US/docs/voice_ip_comm/expressway/admin_guide/Cisco-Expressway-Administrator-Guide-X8-1.pdf&#34;&gt;http://www.cisco.com/en/US/docs/voice_ip_comm/expressway/admin_guide/Cisco-Expressway-Administrator-Guide-X8-1.pdf&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Cluster Creation Guide&lt;/strong&gt;:&lt;br&gt;
&lt;a href=&#34;http://www.cisco.com/c/dam/en/us/td/docs/voice_ip_comm/expressway/config_guide/X8-1/Cisco-Expressway-Cluster-Creation-and-Maintenance-Deployment-Guide-X8-1.pdf&#34;&gt;http://www.cisco.com/c/dam/en/us/td/docs/voice_ip_comm/expressway/config_guide/X8-1/Cisco-Expressway-Cluster-Creation-and-Maintenance-Deployment-Guide-X8-1.pdf&lt;/a&gt;&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>Deployed Cisco Expressway C &amp; E for a CUCM deployment, and found these guides most helpful:</p>
<p><strong>Installing the VM on vSphere:</strong><br>
<a href="http://www.cisco.com/c/dam/en/us/td/docs/voice_ip_comm/expressway/install_guide/Cisco-Expressway-Virtual-Machine-Install-Guide-X8-1.pdf">http://www.cisco.com/c/dam/en/us/td/docs/voice_ip_comm/expressway/install_guide/Cisco-Expressway-Virtual-Machine-Install-Guide-X8-1.pdf</a></p>
<p><strong>Configuration and Deployment Guide:</strong><br>
<a href="http://www.cisco.com/c/dam/en/us/td/docs/voice_ip_comm/expressway/config_guide/X8-2/Mobile-Remote-Access-via-Expressway-Deployment-Guide-X8-2.pdf">http://www.cisco.com/c/dam/en/us/td/docs/voice_ip_comm/expressway/config_guide/X8-2/Mobile-Remote-Access-via-Expressway-Deployment-Guide-X8-2.pdf</a></p>
<p><strong>Administrator Guide:</strong><br>
<a href="http://www.cisco.com/en/US/docs/voice_ip_comm/expressway/admin_guide/Cisco-Expressway-Administrator-Guide-X8-1.pdf">http://www.cisco.com/en/US/docs/voice_ip_comm/expressway/admin_guide/Cisco-Expressway-Administrator-Guide-X8-1.pdf</a></p>
<p><strong>Cluster Creation Guide</strong>:<br>
<a href="http://www.cisco.com/c/dam/en/us/td/docs/voice_ip_comm/expressway/config_guide/X8-1/Cisco-Expressway-Cluster-Creation-and-Maintenance-Deployment-Guide-X8-1.pdf">http://www.cisco.com/c/dam/en/us/td/docs/voice_ip_comm/expressway/config_guide/X8-1/Cisco-Expressway-Cluster-Creation-and-Maintenance-Deployment-Guide-X8-1.pdf</a></p>
]]></content:encoded>
    </item>
    <item>
      <title>Cisco IM&amp;P Chat Room Postgres Server</title>
      <link>https://thenetworkstack.com/cisco-imp-chat-room-postgres-server/</link>
      <pubDate>Wed, 31 Dec 2014 23:11:31 +0000</pubDate>
      <guid>https://thenetworkstack.com/cisco-imp-chat-room-postgres-server/</guid>
      <description>&lt;p&gt;If you want to implement chat rooms/persistent chat or chat logging with Cisco IM and Presence, you need to setup an external postgres server.  The setup is relatively easy (I used a ubuntu server), and can be found &lt;a href=&#34;http://www.cisco.com/c/en/us/td/docs/voice_ip_comm/cucm/im_presence/database_setup/10_5_2/CUP0_BK_D4BFFAC9_00_database-setup-guide-imp-1052.pdf&#34; title=&#34;http://www.cisco.com/c/en/us/td/docs/voice_ip_comm/cucm/im_presence/database_setup/10_5_2/CUP0_BK_D4BFFAC9_00_database-setup-guide-imp-1052.pdf&#34;&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The problem I came across was that while testing, I created several chat rooms, then deleted the users who owned those chat rooms.  I needed a way to delete those test chat rooms, which needs to be done on the postgres server (since the users no longer existed).  Here are the steps I used:&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>If you want to implement chat rooms/persistent chat or chat logging with Cisco IM and Presence, you need to setup an external postgres server.  The setup is relatively easy (I used a ubuntu server), and can be found <a href="http://www.cisco.com/c/en/us/td/docs/voice_ip_comm/cucm/im_presence/database_setup/10_5_2/CUP0_BK_D4BFFAC9_00_database-setup-guide-imp-1052.pdf" title="http://www.cisco.com/c/en/us/td/docs/voice_ip_comm/cucm/im_presence/database_setup/10_5_2/CUP0_BK_D4BFFAC9_00_database-setup-guide-imp-1052.pdf">here</a>.</p>
<p>The problem I came across was that while testing, I created several chat rooms, then deleted the users who owned those chat rooms.  I needed a way to delete those test chat rooms, which needs to be done on the postgres server (since the users no longer existed).  Here are the steps I used:</p>
<ol>
<li>SSH to postgres server and become the postgres user: <code>su - postgres</code></li>
<li>As the postgres user, login to the database: <code>psql -d tcmadb</code></li>
<li>To view the chat rooms stored in the database, run: <code>SELECT room_jid FROM tc_rooms;</code></li>
<li>I wanted to delete <strong>all</strong> chat rooms previously created, so I truncated the table: <code>TRUNCATE tc_rooms;</code></li>
<li>All done!  All chat rooms are now deleted.  If you want to delete a specific room, you&rsquo;ll need to select and delete a specific row instead of truncate</li>
</ol>
<p>Additional useful postgres database commands:</p>
<p>Show all tables: <code>\dt</code>\</p>
<p>To quit: <code>\q</code>\</p>
<p>Show all rows in a table: <code>\d+ table_name</code></p>
]]></content:encoded>
    </item>
    <item>
      <title>Cisco CUCM TFTP server</title>
      <link>https://thenetworkstack.com/cisco-cucm-tftp-server/</link>
      <pubDate>Wed, 31 Dec 2014 03:36:08 +0000</pubDate>
      <guid>https://thenetworkstack.com/cisco-cucm-tftp-server/</guid>
      <description>&lt;p&gt;If you want to view the files loaded on your CUCM TFTP server, you don&amp;rsquo;t have to download and open the file.  Just navigate to &lt;code&gt;http://cucm-ip-address:6970/file.xml&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;For example, if I wanted to view my jabber config, I would go to: &lt;a href=&#34;http://cucm-ip-address:6970/jabber-config.xml&#34;&gt;http://cucm-ip-address:6970/jabber-config.xml&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Alternatively, you can still download/upload files from CUCM OS Administration -&amp;gt; Software Upgrade -&amp;gt; TFTP File Management&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>If you want to view the files loaded on your CUCM TFTP server, you don&rsquo;t have to download and open the file.  Just navigate to <code>http://cucm-ip-address:6970/file.xml</code></p>
<p>For example, if I wanted to view my jabber config, I would go to: <a href="http://cucm-ip-address:6970/jabber-config.xml">http://cucm-ip-address:6970/jabber-config.xml</a></p>
<p>Alternatively, you can still download/upload files from CUCM OS Administration -&gt; Software Upgrade -&gt; TFTP File Management</p>
]]></content:encoded>
    </item>
    <item>
      <title>New Cisco ISR4000 Series Routers</title>
      <link>https://thenetworkstack.com/new-cisco-isr4000-series-routers/</link>
      <pubDate>Tue, 23 Dec 2014 01:44:43 +0000</pubDate>
      <guid>https://thenetworkstack.com/new-cisco-isr4000-series-routers/</guid>
      <description>&lt;p&gt;I got the chance to install a new Cisco ISR 4431 today, and the best surprise (besides the hugely upgraded throughput) is that the onboard router interfaces now support LACP! Before, you had to resort to getting a switch HWIC module, or just using &amp;ldquo;mode on&amp;rdquo; channel-groups.  Since the 4431 has four gig interfaces, you can use LACP for two WAN interfaces, and use LACP for two LAN interfaces using the interface command &lt;code&gt;channel-group 1 mode active&lt;/code&gt; (use any channel group number you need), and then configure the port-channel interface.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>I got the chance to install a new Cisco ISR 4431 today, and the best surprise (besides the hugely upgraded throughput) is that the onboard router interfaces now support LACP! Before, you had to resort to getting a switch HWIC module, or just using &ldquo;mode on&rdquo; channel-groups.  Since the 4431 has four gig interfaces, you can use LACP for two WAN interfaces, and use LACP for two LAN interfaces using the interface command <code>channel-group 1 mode active</code> (use any channel group number you need), and then configure the port-channel interface.</p>
<p>Example:</p>
<pre tabindex="0"><code>interface GigabitEthernet0/0/0
 no ip address
 media-type rj45
 negotiation auto
 channel-group 1 mode active
!
interface GigabitEthernet0/0/1
 no ip address
 media-type rj45
 negotiation auto
 channel-group 1 mode active
!
interface Port-channel1
 ip address 10.0.0.1 255.255.255.0
 no ip redirects
 no ip proxy-arp
 load-interval 30
 no negotiation auto
</code></pre><p>Show commands:<br>
<code>show lacp internal</code><br>
<code>show lacp neighbor</code></p>
]]></content:encoded>
    </item>
    <item>
      <title>Palo Alto Firewall HA PAN-OS Upgrade</title>
      <link>https://thenetworkstack.com/palo-alto-firewall-ha-pan-os-upgrade/</link>
      <pubDate>Tue, 25 Nov 2014 20:19:11 +0000</pubDate>
      <guid>https://thenetworkstack.com/palo-alto-firewall-ha-pan-os-upgrade/</guid>
      <description>&lt;p&gt;Below are the steps I used to perform an PAN-OS upgrade from 6.0.4 to 6.0.6 successfully.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;On the active fw (fw1), log into the cli and enter: &lt;code&gt;request high-availability state suspend&lt;/code&gt;.  This will force a failover to the secondary firewall (fw2).  I lost 2 pings during the failover.&lt;/li&gt;
&lt;li&gt;Install the new PAN-OS on fw1, and reboot when requested.&lt;/li&gt;
&lt;li&gt;Once rebooted, log into the CLI and enter: &lt;code&gt;show jobs all&lt;/code&gt; to verify auto commit has completed (it should show FIN OK).  Then log into the web gui and verify the HA state of fw1 is Passive.&lt;/li&gt;
&lt;li&gt;Now, log into fw2 (which is currently the active fw), and force failover back to fw1 with: &lt;code&gt;request high-availability state suspend&lt;/code&gt;. I lost 0 pings during the fail-back.&lt;/li&gt;
&lt;li&gt;Install the new PAN-OS on fw2, and reboot when requested.&lt;/li&gt;
&lt;li&gt;From the web gui of fw1, monitor the HA state and verify fw2 comes back up in Passive mode.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;a href=&#34;https://live.paloaltonetworks.com/docs/DOC-4043&#34;&gt;https://live.paloaltonetworks.com/docs/DOC-4043&lt;/a&gt;&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>Below are the steps I used to perform an PAN-OS upgrade from 6.0.4 to 6.0.6 successfully.</p>
<ol>
<li>On the active fw (fw1), log into the cli and enter: <code>request high-availability state suspend</code>.  This will force a failover to the secondary firewall (fw2).  I lost 2 pings during the failover.</li>
<li>Install the new PAN-OS on fw1, and reboot when requested.</li>
<li>Once rebooted, log into the CLI and enter: <code>show jobs all</code> to verify auto commit has completed (it should show FIN OK).  Then log into the web gui and verify the HA state of fw1 is Passive.</li>
<li>Now, log into fw2 (which is currently the active fw), and force failover back to fw1 with: <code>request high-availability state suspend</code>. I lost 0 pings during the fail-back.</li>
<li>Install the new PAN-OS on fw2, and reboot when requested.</li>
<li>From the web gui of fw1, monitor the HA state and verify fw2 comes back up in Passive mode.</li>
</ol>
<p><a href="https://live.paloaltonetworks.com/docs/DOC-4043">https://live.paloaltonetworks.com/docs/DOC-4043</a></p>
]]></content:encoded>
    </item>
    <item>
      <title>Palo Alto Firewall HA CLI Commands</title>
      <link>https://thenetworkstack.com/palo-alto-firewall-ha-cli-commands/</link>
      <pubDate>Tue, 25 Nov 2014 18:13:29 +0000</pubDate>
      <guid>https://thenetworkstack.com/palo-alto-firewall-ha-cli-commands/</guid>
      <description>&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;&amp;gt;show high-availability all
&amp;gt;show high-availability state
&amp;gt;show high-availability link-monitoring
&amp;gt;show high-availability path-monitoring
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Configuring High Availability: &lt;a href=&#34;https://live.paloaltonetworks.com/docs/DOC-2926&#34; title=&#34;https://live.paloaltonetworks.com/docs/DOC-2926&#34;&gt;https://live.paloaltonetworks.com/docs/DOC-2926&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;After enabling HA, the interfaces on the firewall will switch from using the interface MAC address to a virtual MAC address.  In my case, the Palo Alto updated the MAC address to connected devices, except for the loopback interfaces. I had to clear the arp table of my internet edge routers to update the MAC of the loopbacks (I&amp;rsquo;m terminating GlobalProtect to the loopback interfaces).&lt;/p&gt;</description>
      <content:encoded><![CDATA[<pre tabindex="0"><code>&gt;show high-availability all
&gt;show high-availability state
&gt;show high-availability link-monitoring
&gt;show high-availability path-monitoring
</code></pre><p>Configuring High Availability: <a href="https://live.paloaltonetworks.com/docs/DOC-2926" title="https://live.paloaltonetworks.com/docs/DOC-2926">https://live.paloaltonetworks.com/docs/DOC-2926</a></p>
<p>After enabling HA, the interfaces on the firewall will switch from using the interface MAC address to a virtual MAC address.  In my case, the Palo Alto updated the MAC address to connected devices, except for the loopback interfaces. I had to clear the arp table of my internet edge routers to update the MAC of the loopbacks (I&rsquo;m terminating GlobalProtect to the loopback interfaces).</p>
<p>More information regarding the MAC address change can be found here: <a href="https://live.paloaltonetworks.com/docs/DOC-4144" title="https://live.paloaltonetworks.com/docs/DOC-4144">https://live.paloaltonetworks.com/docs/DOC-4144</a></p>
]]></content:encoded>
    </item>
    <item>
      <title>Updating Dell R710 Firmware</title>
      <link>https://thenetworkstack.com/updating-dell-r710-firmware/</link>
      <pubDate>Thu, 20 Nov 2014 00:03:33 +0000</pubDate>
      <guid>https://thenetworkstack.com/updating-dell-r710-firmware/</guid>
      <description>&lt;p&gt;Deploying ESXi on some Dell R710 servers we had, so I wanted to update the firmware to latest and greatest.  I came across some issues updating, which is why I&amp;rsquo;m posting this.&lt;/p&gt;
&lt;p&gt;First, I updated the iDRAC, using information from here:&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;http://en.community.dell.com/techcenter/systems-management/w/wiki/3206.updating-drac-firmware&#34; title=&#34;http://en.community.dell.com/techcenter/systems-management/w/wiki/3206.updating-drac-firmware&#34;&gt;http://en.community.dell.com/techcenter/systems-management/w/wiki/3206.updating-drac-firmware&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Second, I couldn&amp;rsquo;t download updates using the USC/Lifecycle Controller because of the error &amp;ldquo;The updates you are trying to apply are not Dell-authorized updates&amp;rdquo;.  I was able to resolve this by updating the USC (Unified Server Configurator).  This can be easily upgraded by downloading the package and uploading it to the iDRAC update utility.  The package can be downloaded here:&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>Deploying ESXi on some Dell R710 servers we had, so I wanted to update the firmware to latest and greatest.  I came across some issues updating, which is why I&rsquo;m posting this.</p>
<p>First, I updated the iDRAC, using information from here:</p>
<p><a href="http://en.community.dell.com/techcenter/systems-management/w/wiki/3206.updating-drac-firmware" title="http://en.community.dell.com/techcenter/systems-management/w/wiki/3206.updating-drac-firmware">http://en.community.dell.com/techcenter/systems-management/w/wiki/3206.updating-drac-firmware</a></p>
<p>Second, I couldn&rsquo;t download updates using the USC/Lifecycle Controller because of the error &ldquo;The updates you are trying to apply are not Dell-authorized updates&rdquo;.  I was able to resolve this by updating the USC (Unified Server Configurator).  This can be easily upgraded by downloading the package and uploading it to the iDRAC update utility.  The package can be downloaded here:</p>
<p><a href="http://www.dell.com/support/home/us/en/04/Drivers/DriversDetails?driverID=G3G5F&amp;fileId=3093677794-SV&amp;urlProductCode=False#" title="http://www.dell.com/support/home/us/en/04/Drivers/DriversDetails?driverID=G3G5F&amp;fileId=3093677794-SV&amp;urlProductCode=False#">http://www.dell.com/support/home/us/en/04/Drivers/DriversDetails?driverID=G3G5F&amp;fileId=3093677794-SV&amp;urlProductCode=False#</a></p>
<p>After USC is updated, you can access USC by hitting F10 on startup and navigating to Platform Update.  This will allow you to upgrade firmware on all the available devices.  Step-by-step instructions here:</p>
<p><a href="http://kb.eclipseinc.com/kb/dell-firmware-update/" title="http://kb.eclipseinc.com/kb/dell-firmware-update/">http://kb.eclipseinc.com/kb/dell-firmware-update/</a></p>
]]></content:encoded>
    </item>
    <item>
      <title>Optimize Ruckus Configuration</title>
      <link>https://thenetworkstack.com/optimize-ruckus-configuration/</link>
      <pubDate>Fri, 10 Oct 2014 18:41:29 +0000</pubDate>
      <guid>https://thenetworkstack.com/optimize-ruckus-configuration/</guid>
      <description>&lt;p&gt;I came across a good support forum post (link below) that goes over some CLI configuration changes to optimize your Ruckus setup.  Personally, I enabled ofdm-only and changed the bss-minrate and have seen better roaming behavior:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;SSH into your ZoneDirector&lt;/li&gt;
&lt;li&gt;Verify your current WLAN settings with &lt;code&gt;show wlan name &amp;quot;wlan name&amp;quot;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Enter enable mode with &lt;code&gt;enable&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Enter config mode with &lt;code&gt;config&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Enter WLAN configuration wtih &lt;code&gt;wlan &amp;quot;wlan name&amp;quot;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Disable legacy 11b clients with &lt;code&gt;ofdm-only&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Change the bss-minrate with &lt;code&gt;bss-minrate 12.0&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Then &lt;code&gt;exit&lt;/code&gt; and the changes are saved&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;If you have dense enough AP coverage, you can use &lt;code&gt;bss-minrate 24.0&lt;/code&gt;&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>I came across a good support forum post (link below) that goes over some CLI configuration changes to optimize your Ruckus setup.  Personally, I enabled ofdm-only and changed the bss-minrate and have seen better roaming behavior:</p>
<ol>
<li>SSH into your ZoneDirector</li>
<li>Verify your current WLAN settings with <code>show wlan name &quot;wlan name&quot;</code></li>
<li>Enter enable mode with <code>enable</code></li>
<li>Enter config mode with <code>config</code></li>
<li>Enter WLAN configuration wtih <code>wlan &quot;wlan name&quot;</code></li>
<li>Disable legacy 11b clients with <code>ofdm-only</code></li>
<li>Change the bss-minrate with <code>bss-minrate 12.0</code></li>
<li>Then <code>exit</code> and the changes are saved</li>
</ol>
<p>If you have dense enough AP coverage, you can use <code>bss-minrate 24.0</code></p>
<p><a href="https://forums.ruckuswireless.com/ruckuswireless/topics/best_practice_optimization_by_cli_for_zone_director">https://forums.ruckuswireless.com/ruckuswireless/topics/best_practice_optimization_by_cli_for_zone_director</a></p>
<p><em>Update</em>: With the release of ZoneDirector 10.0 software, these settings are now configurable from the GUI under the Advanced WLAN settings.</p>
]]></content:encoded>
    </item>
    <item>
      <title>Palo Alto GlobalProtect VPN Users</title>
      <link>https://thenetworkstack.com/palo-alto-globalprotect-vpn-users/</link>
      <pubDate>Tue, 07 Oct 2014 17:29:06 +0000</pubDate>
      <guid>https://thenetworkstack.com/palo-alto-globalprotect-vpn-users/</guid>
      <description>&lt;p&gt;Two quick cli commands to see who is currently logged in, and who logged in previously:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;show global-protect-gateway current-user
&lt;/code&gt;&lt;/pre&gt;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;show global-protect-gateway previous-user
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;You can also specify the username with each command to see specific results.&lt;/p&gt;
&lt;p&gt;If want want to force a user logout (from my testing, the user will not see a notification they have been logged out):&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;request global-protect-gateway client-logout domain your_domain reason force-logout computer computer_name gateway gateway_name user user_name
&lt;/code&gt;&lt;/pre&gt;</description>
      <content:encoded><![CDATA[<p>Two quick cli commands to see who is currently logged in, and who logged in previously:</p>
<pre tabindex="0"><code>show global-protect-gateway current-user
</code></pre><pre tabindex="0"><code>show global-protect-gateway previous-user
</code></pre><p>You can also specify the username with each command to see specific results.</p>
<p>If want want to force a user logout (from my testing, the user will not see a notification they have been logged out):</p>
<pre tabindex="0"><code>request global-protect-gateway client-logout domain your_domain reason force-logout computer computer_name gateway gateway_name user user_name
</code></pre>]]></content:encoded>
    </item>
    <item>
      <title>Active Directory Delegating Permissions</title>
      <link>https://thenetworkstack.com/active-directory-delegating-permissions/</link>
      <pubDate>Wed, 01 Oct 2014 05:44:24 +0000</pubDate>
      <guid>https://thenetworkstack.com/active-directory-delegating-permissions/</guid>
      <description>&lt;p&gt;I needed to delegate permissions to helpdesk (instead of making them domain admins) to create and modify users, and modify group membership.  This is slightly different from some of the built in permission groups, since we didn&amp;rsquo;t want helpdesk to delete users.  Permissions are delegated at the OU level, and remember that permissions are pushed down and inherited.&lt;/p&gt;
&lt;p&gt;This is what I used to delegate these permissions:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Right click the OU, and select &amp;ldquo;Delegate Control&amp;rdquo; and click &amp;ldquo;Next&amp;rdquo;&lt;/li&gt;
&lt;li&gt;Add your Security Group (I called mine &lt;em&gt;Delegated Helpdesk&lt;/em&gt;)&lt;/li&gt;
&lt;li&gt;Click &amp;ldquo;Modify the membership of a group&amp;rdquo;, then &amp;ldquo;Next&amp;rdquo; and &amp;ldquo;Finish&amp;rdquo;&lt;/li&gt;
&lt;li&gt;First section done!&lt;/li&gt;
&lt;li&gt;Go through steps 1 and 2 again&lt;/li&gt;
&lt;li&gt;Select the button &amp;ldquo;Create a custom task to delegate&amp;rdquo; and click &amp;ldquo;Next&amp;rdquo;&lt;/li&gt;
&lt;li&gt;Select the button &amp;ldquo;Only the following objects in the folder:&amp;rdquo; and select &amp;ldquo;User objects&amp;rdquo;&lt;/li&gt;
&lt;li&gt;Click &amp;ldquo;Create selected objects in this folder&amp;rdquo; and click &amp;ldquo;Next&amp;rdquo;&lt;/li&gt;
&lt;li&gt;Click the following permissions:
&lt;ul&gt;
&lt;li&gt;Read All Properties&lt;/li&gt;
&lt;li&gt;Write All Properties&lt;/li&gt;
&lt;li&gt;Read and write general information&lt;/li&gt;
&lt;li&gt;Read and write logon information&lt;/li&gt;
&lt;li&gt;Read and write phone and mail options&lt;/li&gt;
&lt;li&gt;Read and write web information&lt;/li&gt;
&lt;li&gt;Change password&lt;/li&gt;
&lt;li&gt;Reset password&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Click &amp;ldquo;Next&amp;rdquo; and then &amp;ldquo;Finish&amp;rdquo;&lt;/li&gt;
&lt;li&gt;You are now finished.  Users in the &lt;em&gt;Delegated Helpdesk&lt;/em&gt; group should be able to create and modify users, and group membership.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;If you ever need to revert your changes, click on Properties -&amp;gt; Security (requires advanced view) for the OU, and remove the permissions.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>I needed to delegate permissions to helpdesk (instead of making them domain admins) to create and modify users, and modify group membership.  This is slightly different from some of the built in permission groups, since we didn&rsquo;t want helpdesk to delete users.  Permissions are delegated at the OU level, and remember that permissions are pushed down and inherited.</p>
<p>This is what I used to delegate these permissions:</p>
<ol>
<li>Right click the OU, and select &ldquo;Delegate Control&rdquo; and click &ldquo;Next&rdquo;</li>
<li>Add your Security Group (I called mine <em>Delegated Helpdesk</em>)</li>
<li>Click &ldquo;Modify the membership of a group&rdquo;, then &ldquo;Next&rdquo; and &ldquo;Finish&rdquo;</li>
<li>First section done!</li>
<li>Go through steps 1 and 2 again</li>
<li>Select the button &ldquo;Create a custom task to delegate&rdquo; and click &ldquo;Next&rdquo;</li>
<li>Select the button &ldquo;Only the following objects in the folder:&rdquo; and select &ldquo;User objects&rdquo;</li>
<li>Click &ldquo;Create selected objects in this folder&rdquo; and click &ldquo;Next&rdquo;</li>
<li>Click the following permissions:
<ul>
<li>Read All Properties</li>
<li>Write All Properties</li>
<li>Read and write general information</li>
<li>Read and write logon information</li>
<li>Read and write phone and mail options</li>
<li>Read and write web information</li>
<li>Change password</li>
<li>Reset password</li>
</ul>
</li>
<li>Click &ldquo;Next&rdquo; and then &ldquo;Finish&rdquo;</li>
<li>You are now finished.  Users in the <em>Delegated Helpdesk</em> group should be able to create and modify users, and group membership.</li>
</ol>
<p>If you ever need to revert your changes, click on Properties -&gt; Security (requires advanced view) for the OU, and remove the permissions.</p>
]]></content:encoded>
    </item>
    <item>
      <title>Palo Alto Firewall AD Group Mapping</title>
      <link>https://thenetworkstack.com/palo-alto-firewall-ad-group-mapping/</link>
      <pubDate>Mon, 29 Sep 2014 19:53:06 +0000</pubDate>
      <guid>https://thenetworkstack.com/palo-alto-firewall-ad-group-mapping/</guid>
      <description>&lt;p&gt;These commands will help troubleshoot and resolve issues with Active Directory groups on your PAN firewall.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;1. Shows every AD group added to the PAN firewall:&lt;/strong&gt;&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;show user group list
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;strong&gt;2. Shows the user and IP address mapping (or specific user):&lt;/strong&gt;&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;show user ip-user-mapping all
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;strong&gt;3. Gives more detailed statistics of the command above:&lt;/strong&gt;&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;show user group-mapping state all
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;strong&gt;4. Shows the user members of the group specified:&lt;/strong&gt;&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;show user group name &amp;#34;group_name&amp;#34;
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;strong&gt;5. Re-pulls the user-to-group mapping from AD:&lt;/strong&gt;&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>These commands will help troubleshoot and resolve issues with Active Directory groups on your PAN firewall.</p>
<p><strong>1. Shows every AD group added to the PAN firewall:</strong></p>
<pre tabindex="0"><code>show user group list
</code></pre><p><strong>2. Shows the user and IP address mapping (or specific user):</strong></p>
<pre tabindex="0"><code>show user ip-user-mapping all
</code></pre><p><strong>3. Gives more detailed statistics of the command above:</strong></p>
<pre tabindex="0"><code>show user group-mapping state all
</code></pre><p><strong>4. Shows the user members of the group specified:</strong></p>
<pre tabindex="0"><code>show user group name &#34;group_name&#34;
</code></pre><p><strong>5. Re-pulls the user-to-group mapping from AD:</strong></p>
<pre tabindex="0"><code>debug user-id reset group-mapping all
</code></pre><p><strong>6. Refreshes all user-to-IP mappings:</strong></p>
<pre tabindex="0"><code>debug user-id refresh user-id agent all
</code></pre><p><strong>7. Restarts the user-id service (this command is usually not needed):</strong></p>
<pre tabindex="0"><code>debug software restart user-id
</code></pre>]]></content:encoded>
    </item>
    <item>
      <title>Ruckus DHCP Filtering/Manipulation</title>
      <link>https://thenetworkstack.com/ruckus-dhcp-filteringmanipulation/</link>
      <pubDate>Mon, 22 Sep 2014 18:52:52 +0000</pubDate>
      <guid>https://thenetworkstack.com/ruckus-dhcp-filteringmanipulation/</guid>
      <description>&lt;p&gt;By default, when a client connects to a Ruckus AP and sends a DHCP request, the DHCP request is converted to unicast, and once an IP addresses has been provided to the client, additional DHCP requests from the same client seem to be ignored.  This normally works great, and significantly reduces broadcast traffic on your wireless network.  The only time this has proved to be an issue is if you have multiple virtual machines running on your laptop whose network adapters are bridged to your wireless nic.  Your laptop will get an IP address successfully, but your VM&amp;rsquo;s will not.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>By default, when a client connects to a Ruckus AP and sends a DHCP request, the DHCP request is converted to unicast, and once an IP addresses has been provided to the client, additional DHCP requests from the same client seem to be ignored.  This normally works great, and significantly reduces broadcast traffic on your wireless network.  The only time this has proved to be an issue is if you have multiple virtual machines running on your laptop whose network adapters are bridged to your wireless nic.  Your laptop will get an IP address successfully, but your VM&rsquo;s will not.</p>
<p>To solve this, you can either assign static IP&rsquo;s to your virtual machines, or disable the Ruckus &ldquo;Directed DHCP&rdquo; feature on the AP.</p>
<p>To disable it per AP, SSH into the AP, and run this command:</p>
<pre tabindex="0"><code>set qos directedDHCP disable
</code></pre><p>Use the <code>get qos</code> command to verify the command applied successfully.  If you want to apply this to all AP&rsquo;s in your environment, SSH into the Zone Director and run:</p>
<pre tabindex="0"><code>remote_ap_cli -A set qos directedDHCP disable
</code></pre>]]></content:encoded>
    </item>
    <item>
      <title>Linux Packet Capture</title>
      <link>https://thenetworkstack.com/linux-packet-capture/</link>
      <pubDate>Wed, 17 Sep 2014 01:55:42 +0000</pubDate>
      <guid>https://thenetworkstack.com/linux-packet-capture/</guid>
      <description>&lt;p&gt;If you need to debug traffic going to a linux server or appliance, you can use tcpdump to generate a pcap file you can analyze in wireshark.&lt;/p&gt;
&lt;p&gt;For example, ssh into the server, and use the following command:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;tcpdump -s0 port 80 and host 192.168.1.10 -wDebugTraffic.pcap
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;This will capture all traffic coming into port 80 from host 192.168.1.10 and saved as file DebugTraffic.pcap&lt;/p&gt;
&lt;p&gt;You can then use an ftp program (like WinSCP) to grab the file and analyze it in wireshark.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>If you need to debug traffic going to a linux server or appliance, you can use tcpdump to generate a pcap file you can analyze in wireshark.</p>
<p>For example, ssh into the server, and use the following command:</p>
<pre tabindex="0"><code>tcpdump -s0 port 80 and host 192.168.1.10 -wDebugTraffic.pcap
</code></pre><p>This will capture all traffic coming into port 80 from host 192.168.1.10 and saved as file DebugTraffic.pcap</p>
<p>You can then use an ftp program (like WinSCP) to grab the file and analyze it in wireshark.</p>
<p>Here is a great resource for tcpdump commands:  <a href="http://packetlife.net/media/library/12/tcpdump.pdf">http://packetlife.net/media/library/12/tcpdump.pdf</a></p>
]]></content:encoded>
    </item>
    <item>
      <title>Windows Server 2008R2/2012 Time Sync</title>
      <link>https://thenetworkstack.com/windows-server-2008r22012-time-sync/</link>
      <pubDate>Wed, 09 Jul 2014 00:51:13 +0000</pubDate>
      <guid>https://thenetworkstack.com/windows-server-2008r22012-time-sync/</guid>
      <description>&lt;p&gt;I published a blog &lt;a href=&#34;https://thenetworkstack.com/verify-windows-server-2008r2-timentp-settings/&#34; title=&#34;Verify Windows Server 2008R2 Time/NTP Settings&#34;&gt;post&lt;/a&gt; last year regarding verifying NTP settings on a Windows Server.  Now, I recently needed to go a step farther and force a server to time sync with a DC.  Here are the relevant commands:&lt;/p&gt;
&lt;p&gt;To find out what server is the time server on your domain, from the CMD prompt run:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;nltest /dsgetdc:your_domain_name /timeserv
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;To verify the domain time server (displayed in the previous output) is reachable, run:&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>I published a blog <a href="/verify-windows-server-2008r2-timentp-settings/" title="Verify Windows Server 2008R2 Time/NTP Settings">post</a> last year regarding verifying NTP settings on a Windows Server.  Now, I recently needed to go a step farther and force a server to time sync with a DC.  Here are the relevant commands:</p>
<p>To find out what server is the time server on your domain, from the CMD prompt run:</p>
<pre tabindex="0"><code>nltest /dsgetdc:your_domain_name /timeserv
</code></pre><p>To verify the domain time server (displayed in the previous output) is reachable, run:</p>
<pre tabindex="0"><code>nltest /server:time_serv_name /query
</code></pre><p>Finally, to force a time sync on a server, run:</p>
<pre tabindex="0"><code>w32tm /resync /computer:your_server_name /rediscover
</code></pre><p>You can also use the shorter version: <code>w32tm /resync</code></p>
<p>The &ldquo;your_server_name&rdquo; variable is the server/pc you would like to force a time sync.</p>
<p><strong>If you are having time sync issues and you are running servers in a VMware environment, check the ntp status of the VMware host and verify that time is correct.</strong></p>
]]></content:encoded>
    </item>
    <item>
      <title>Cisco vs HP vs Dell CLI - VLAN Configuration</title>
      <link>https://thenetworkstack.com/cisco-vs-hp-vs-dell-cli-vlan-configuration/</link>
      <pubDate>Thu, 03 Jul 2014 16:23:31 +0000</pubDate>
      <guid>https://thenetworkstack.com/cisco-vs-hp-vs-dell-cli-vlan-configuration/</guid>
      <description>&lt;p&gt;This post continues my series on the differences between these three manufacturers and how they implement L2 and L3 VLANs.&lt;/p&gt;
&lt;h3 id=&#34;scenario-1-create-a-layer-2-vlan&#34;&gt;Scenario 1: Create a Layer 2 VLAN&lt;/h3&gt;
&lt;h4 id=&#34;cisco-ios&#34;&gt;Cisco IOS:&lt;/h4&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;vlan 10
&lt;/code&gt;&lt;/pre&gt;&lt;h4 id=&#34;hp-procurve&#34;&gt;HP Procurve:&lt;/h4&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;vlan 10
&lt;/code&gt;&lt;/pre&gt;&lt;h4 id=&#34;dell-powerconnect&#34;&gt;Dell Powerconnect:&lt;/h4&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;vlan database
vlan 10
&lt;/code&gt;&lt;/pre&gt;&lt;h3 id=&#34;scenario-2-create-a-layer-3-vlan-thats-routable&#34;&gt;Scenario 2: Create a Layer 3 VLAN (that&amp;rsquo;s routable)&lt;/h3&gt;
&lt;h4 id=&#34;cisco-ios-1&#34;&gt;Cisco IOS:&lt;/h4&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;interface vlan 10
ip address 192.168.1.1 255.255.255.0
&lt;/code&gt;&lt;/pre&gt;&lt;h4 id=&#34;hp-procurve-1&#34;&gt;HP Procurve:&lt;/h4&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;vlan 10
ip address 192.168.1.1 255.255.255.0
&lt;/code&gt;&lt;/pre&gt;&lt;h4 id=&#34;dell-powerconnect-1&#34;&gt;Dell Powerconnect:&lt;/h4&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;interface vlan 10
ip address 192.168.1.1 255.255.255.0
routing
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;The biggest difference between all three manufacturers is that HP does not implement a separate VLAN interface for L3 configuration. Cisco and Dell both require you to go into &lt;em&gt;interface&lt;/em&gt; vlan mode before configuring L3 information (IP addressing). Dell also requires the &lt;em&gt;routing&lt;/em&gt; keyword to actually route that VLAN.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>This post continues my series on the differences between these three manufacturers and how they implement L2 and L3 VLANs.</p>
<h3 id="scenario-1-create-a-layer-2-vlan">Scenario 1: Create a Layer 2 VLAN</h3>
<h4 id="cisco-ios">Cisco IOS:</h4>
<pre tabindex="0"><code>vlan 10
</code></pre><h4 id="hp-procurve">HP Procurve:</h4>
<pre tabindex="0"><code>vlan 10
</code></pre><h4 id="dell-powerconnect">Dell Powerconnect:</h4>
<pre tabindex="0"><code>vlan database
vlan 10
</code></pre><h3 id="scenario-2-create-a-layer-3-vlan-thats-routable">Scenario 2: Create a Layer 3 VLAN (that&rsquo;s routable)</h3>
<h4 id="cisco-ios-1">Cisco IOS:</h4>
<pre tabindex="0"><code>interface vlan 10
ip address 192.168.1.1 255.255.255.0
</code></pre><h4 id="hp-procurve-1">HP Procurve:</h4>
<pre tabindex="0"><code>vlan 10
ip address 192.168.1.1 255.255.255.0
</code></pre><h4 id="dell-powerconnect-1">Dell Powerconnect:</h4>
<pre tabindex="0"><code>interface vlan 10
ip address 192.168.1.1 255.255.255.0
routing
</code></pre><p>The biggest difference between all three manufacturers is that HP does not implement a separate VLAN interface for L3 configuration. Cisco and Dell both require you to go into <em>interface</em> vlan mode before configuring L3 information (IP addressing). Dell also requires the <em>routing</em> keyword to actually route that VLAN.</p>
<p><strong>All three manufacturers do require you to input the command <code>ip routing</code> if you want the switch to route packets</strong></p>
]]></content:encoded>
    </item>
    <item>
      <title>Cisco vs HP vs Dell CLI - Interface Configuration</title>
      <link>https://thenetworkstack.com/cisco-vs-hp-vs-dell-cli-interface-configuration/</link>
      <pubDate>Tue, 01 Jul 2014 01:37:35 +0000</pubDate>
      <guid>https://thenetworkstack.com/cisco-vs-hp-vs-dell-cli-interface-configuration/</guid>
      <description>&lt;p&gt;After working with all three switch manufacturers in a short period of time, I figured I would do a quick post on how each chooses how to implement VLANs at the interface level.&lt;/p&gt;
&lt;h3 id=&#34;scenario-1-switchport-needs-to-be-part-of-a-single-native-vlan-vlan-10&#34;&gt;Scenario 1: Switchport needs to be part of a single native VLAN (VLAN 10)&lt;/h3&gt;
&lt;h4 id=&#34;cisco-ios&#34;&gt;Cisco IOS:&lt;/h4&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;interface GigabitEthernet1/1
switchport mode access
switchport access vlan 10
&lt;/code&gt;&lt;/pre&gt;&lt;h4 id=&#34;hp-procurve&#34;&gt;HP Procurve:&lt;/h4&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;vlan 10
untag 1
&lt;/code&gt;&lt;/pre&gt;&lt;h4 id=&#34;dell-powerconnect&#34;&gt;Dell Powerconnect:&lt;/h4&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;interface ethernet 1/g1
switchport mode access
switchport access vlan 10
&lt;/code&gt;&lt;/pre&gt;&lt;h3 id=&#34;scenario-2-switchport-needs-to-be-part-of-a-single-native-vlan-vlan-10-and-multiple-tagged-vlans-vlan-2030&#34;&gt;Scenario 2: Switchport needs to be part of a single native VLAN (VLAN 10) and multiple tagged VLANS (VLAN 20,30)&lt;/h3&gt;
&lt;h4 id=&#34;cisco-ios-1&#34;&gt;Cisco IOS:&lt;/h4&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;interface GigabitEthernet1/1
switchport trunk encapsulation dot1q
switchport mode trunk
switchport trunk native vlan 10
switchport trunk allowed vlan 10,20,30
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;em&gt;Note:&lt;/em&gt; Without the &lt;code&gt;switchport trunk allowed vlan 10,20,30&lt;/code&gt;, the port will trunk all VLAN&amp;rsquo;s, so it will work. I have gotten into the habit of specifying which VLAN&amp;rsquo;s are allowed so that each port operates as designed.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>After working with all three switch manufacturers in a short period of time, I figured I would do a quick post on how each chooses how to implement VLANs at the interface level.</p>
<h3 id="scenario-1-switchport-needs-to-be-part-of-a-single-native-vlan-vlan-10">Scenario 1: Switchport needs to be part of a single native VLAN (VLAN 10)</h3>
<h4 id="cisco-ios">Cisco IOS:</h4>
<pre tabindex="0"><code>interface GigabitEthernet1/1
switchport mode access
switchport access vlan 10
</code></pre><h4 id="hp-procurve">HP Procurve:</h4>
<pre tabindex="0"><code>vlan 10
untag 1
</code></pre><h4 id="dell-powerconnect">Dell Powerconnect:</h4>
<pre tabindex="0"><code>interface ethernet 1/g1
switchport mode access
switchport access vlan 10
</code></pre><h3 id="scenario-2-switchport-needs-to-be-part-of-a-single-native-vlan-vlan-10-and-multiple-tagged-vlans-vlan-2030">Scenario 2: Switchport needs to be part of a single native VLAN (VLAN 10) and multiple tagged VLANS (VLAN 20,30)</h3>
<h4 id="cisco-ios-1">Cisco IOS:</h4>
<pre tabindex="0"><code>interface GigabitEthernet1/1
switchport trunk encapsulation dot1q
switchport mode trunk
switchport trunk native vlan 10
switchport trunk allowed vlan 10,20,30
</code></pre><p><em>Note:</em> Without the <code>switchport trunk allowed vlan 10,20,30</code>, the port will trunk all VLAN&rsquo;s, so it will work. I have gotten into the habit of specifying which VLAN&rsquo;s are allowed so that each port operates as designed.</p>
<h4 id="hp-procurve-1">HP Procurve:</h4>
<pre tabindex="0"><code>vlan 10
untag 1
vlan 20
tagged 1
vlan 30
tagged 1
</code></pre><h4 id="dell-powerconnect-1">Dell Powerconnect:</h4>
<pre tabindex="0"><code>interface ethernet 1/g1
switchport mode general
switchport general pvid 10
switchport general allowed vlan add 10
switchport general allowed vlan add 20,30 tagged
switchport general allowed vlan remove 1
</code></pre><p>Obviously the Dell configuration looks a bit convoluted here, but they do require you to manually remove VLAN 1 even though you have specified a different PVID.</p>
]]></content:encoded>
    </item>
    <item>
      <title>HP ProCurve Switch Configuration</title>
      <link>https://thenetworkstack.com/hp-procurve-switch-configuration/</link>
      <pubDate>Thu, 22 May 2014 04:20:16 +0000</pubDate>
      <guid>https://thenetworkstack.com/hp-procurve-switch-configuration/</guid>
      <description>&lt;p&gt;After working with ProCurve switches for a while, I figured I would post my general configuration for others to use as a template.  This configuration will be a simple setup with two VLAN&amp;rsquo;s, please replace IP addreses and VLAN ID&amp;rsquo;s with what fits your environment:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;hostname HP-PROCURVE-CORE

time timezone -480
time daylight-time-rule Continental-US-and-Canada
sntp server priority 1 128.138.140.44
timesync sntp
sntp unicast

qos type-of-service diff-services

spanning-tree
spanning-tree 1-24 bpdu-protection
spanning-tree bpdu-protection-timeout 300

ip routing
ip route 0.0.0.0/0 firewall_ip_address

vlan 1 name DATA
vlan 1 ip address 10.0.0.1/24
vlan 1 untag 1-22

vlan 10 name VOICE
vlan 10 ip address 10.0.10.1/24
vlan 10 voice
vlan 10 tag 1-22
vlan 10 untag 23-24
vlan 10 ip helper-address dhcp_server_ip_address

password manager username hpadmin plaintext hpadminpassword
&lt;/code&gt;&lt;/pre&gt;</description>
      <content:encoded><![CDATA[<p>After working with ProCurve switches for a while, I figured I would post my general configuration for others to use as a template.  This configuration will be a simple setup with two VLAN&rsquo;s, please replace IP addreses and VLAN ID&rsquo;s with what fits your environment:</p>
<pre tabindex="0"><code>hostname HP-PROCURVE-CORE

time timezone -480
time daylight-time-rule Continental-US-and-Canada
sntp server priority 1 128.138.140.44
timesync sntp
sntp unicast

qos type-of-service diff-services

spanning-tree
spanning-tree 1-24 bpdu-protection
spanning-tree bpdu-protection-timeout 300

ip routing
ip route 0.0.0.0/0 firewall_ip_address

vlan 1 name DATA
vlan 1 ip address 10.0.0.1/24
vlan 1 untag 1-22

vlan 10 name VOICE
vlan 10 ip address 10.0.10.1/24
vlan 10 voice
vlan 10 tag 1-22
vlan 10 untag 23-24
vlan 10 ip helper-address dhcp_server_ip_address

password manager username hpadmin plaintext hpadminpassword
</code></pre>]]></content:encoded>
    </item>
    <item>
      <title>ShoreTel Voice Mail Email - Exchange or Google Apps</title>
      <link>https://thenetworkstack.com/shoretel-voice-mail-email-exchange-or-google-apps/</link>
      <pubDate>Thu, 24 Apr 2014 23:49:03 +0000</pubDate>
      <guid>https://thenetworkstack.com/shoretel-voice-mail-email-exchange-or-google-apps/</guid>
      <description>&lt;p&gt;Plenty of customers choose to setup voicemail &amp;ldquo;send to email&amp;rdquo; functionality, so that the ShoreTel system emails the user when they receive an voicemail.  The feature isn&amp;rsquo;t extremely well documented, so I will attempt to explain how it works to assist with the troubleshooting process.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;ShoreTel Director receives a voicemail&lt;/li&gt;
&lt;li&gt;ShoreTel Director looks up the MX records for the domain of the user&lt;/li&gt;
&lt;li&gt;ShoreTel Director sends the voicemail notification (or WAV file) via SMTP on Port 25&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;\&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>Plenty of customers choose to setup voicemail &ldquo;send to email&rdquo; functionality, so that the ShoreTel system emails the user when they receive an voicemail.  The feature isn&rsquo;t extremely well documented, so I will attempt to explain how it works to assist with the troubleshooting process.</p>
<ol>
<li>ShoreTel Director receives a voicemail</li>
<li>ShoreTel Director looks up the MX records for the domain of the user</li>
<li>ShoreTel Director sends the voicemail notification (or WAV file) via SMTP on Port 25</li>
</ol>
<p>\</p>
<h4 id="if-this-is-not-working-i-would-check-the-following-components">If this is not working, I would check the following components:</h4>
<p>\</p>
<ol>
<li>Verify that the SMTP Windows server feature is installed on the ShoreTel Director server</li>
<li>Verify the user that wants to receive the email has the correct email address populated in their user profile within ShoreTel Director</li>
<li>Verify the user&rsquo;s personal settings have send to email enabled</li>
<li>Verify that ShoreTel Director has DNS servers configured</li>
<li>Verify that ShoreTel Director can look up MX records for the user&rsquo;s email domain
<ul>
<li>You can check what results Director will receive by going to the CMD line and using NSLOOKUP to find the MX records. This <a href="http://technet.microsoft.com/en-us/library/aa998082(v=exchg.65).aspx">technet</a> article should help.</li>
</ul>
</li>
<li>Verify if mail is getting stuck in the queue: <strong>C:\inetpub\mailroot\queue</strong></li>
<li>If you need to send voicemail directly to a mail server, then you can enable the IIS SMTP settings for SmartHost</li>
<li>The receiving mail server should also provide some logs to identify if voicemails are being received</li>
</ol>
<p>If you are using Google Apps integration, all you should need to do is enter the Gmail consumer key and secret into ShoreTel Director and verify that ShoreTel Director can successfully look up your domain&rsquo;s MX record.  If you make any changes, restart the SMTP service to verify all changes are active.</p>
]]></content:encoded>
    </item>
    <item>
      <title>ShoreTel Voicemail Switch Backup</title>
      <link>https://thenetworkstack.com/shoretel-voicemail-switch-backup/</link>
      <pubDate>Thu, 10 Apr 2014 22:39:58 +0000</pubDate>
      <guid>https://thenetworkstack.com/shoretel-voicemail-switch-backup/</guid>
      <description>&lt;p&gt;If you do not do daily backups on your 50V or 90V switches, these steps will allow you to backup and restore voicemails.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;On the ShoreTel Director server, go to the C:\inetpub\ftproot folder and edit the security permissions, so that &amp;ldquo;\Users&amp;rdquo; have Write permissions&lt;/li&gt;
&lt;li&gt;Log into Director web interface, and navigate to Platform Hardware -&amp;gt; Voice Switches -&amp;gt; Primary and click on the VM switch&lt;/li&gt;
&lt;li&gt;At the bottom of the page are backup options, enter:&lt;/li&gt;
&lt;/ol&gt;
&lt;ul&gt;
&lt;li&gt;IP address of the Director server&lt;/li&gt;
&lt;li&gt;Folder name (it will create the folder)&lt;/li&gt;
&lt;li&gt;Username: anonymous&lt;/li&gt;
&lt;li&gt;Password: password (any password will work here)&lt;/li&gt;
&lt;/ul&gt;
&lt;ol&gt;
&lt;li&gt;The &amp;ldquo;Daily Backup&amp;rdquo; box does not have to be checked (unless you want to do daily backups)&lt;/li&gt;
&lt;li&gt;SSH into the 50V or 90V switch with username &amp;ldquo;root&amp;rdquo; and password &amp;ldquo;ShoreTel&amp;rdquo;&lt;/li&gt;
&lt;li&gt;Log into the service cli with: &lt;code&gt;svccli&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Backup all VM with: &lt;code&gt;backupvm&lt;/code&gt; (this will create the folder specified and start copying all VM)&lt;/li&gt;
&lt;li&gt;You can also restore the voicemails with the command: &lt;code&gt;restorevm&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Once you are done, edit the security permissions of the ftproot back to the original settings if desired&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;This should be performed when burnflashing a 50V or 90V, as a burnflash wipes the configuration (including IP information) on voicemail switches.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>If you do not do daily backups on your 50V or 90V switches, these steps will allow you to backup and restore voicemails.</p>
<ol>
<li>On the ShoreTel Director server, go to the C:\inetpub\ftproot folder and edit the security permissions, so that &ldquo;\Users&rdquo; have Write permissions</li>
<li>Log into Director web interface, and navigate to Platform Hardware -&gt; Voice Switches -&gt; Primary and click on the VM switch</li>
<li>At the bottom of the page are backup options, enter:</li>
</ol>
<ul>
<li>IP address of the Director server</li>
<li>Folder name (it will create the folder)</li>
<li>Username: anonymous</li>
<li>Password: password (any password will work here)</li>
</ul>
<ol>
<li>The &ldquo;Daily Backup&rdquo; box does not have to be checked (unless you want to do daily backups)</li>
<li>SSH into the 50V or 90V switch with username &ldquo;root&rdquo; and password &ldquo;ShoreTel&rdquo;</li>
<li>Log into the service cli with: <code>svccli</code></li>
<li>Backup all VM with: <code>backupvm</code> (this will create the folder specified and start copying all VM)</li>
<li>You can also restore the voicemails with the command: <code>restorevm</code></li>
<li>Once you are done, edit the security permissions of the ftproot back to the original settings if desired</li>
</ol>
<p>This should be performed when burnflashing a 50V or 90V, as a burnflash wipes the configuration (including IP information) on voicemail switches.</p>
]]></content:encoded>
    </item>
    <item>
      <title>ShoreTel Virtual Voice Switch VMware Tools</title>
      <link>https://thenetworkstack.com/shoretel-virtual-voice-switch-vmware-tools/</link>
      <pubDate>Thu, 03 Apr 2014 16:59:36 +0000</pubDate>
      <guid>https://thenetworkstack.com/shoretel-virtual-voice-switch-vmware-tools/</guid>
      <description>&lt;p&gt;VMware Tools needs to be manually upgraded on the new ShoreTel Voice vSwitch or ShoreTel Virtual SA100.  As these appliances are running linux, here is the article that VMware published:&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;http://pubs.vmware.com/vsphere-50/index.jsp?topic=%2Fcom.vmware.vsphere.upgrade.doc_50%2FGUID-08BB9465-D40A-4E16-9E15-8C016CC8166F.html&#34;&gt;http://pubs.vmware.com/vsphere-50/index.jsp?topic=%2Fcom.vmware.vsphere.upgrade.doc_50%2FGUID-08BB9465-D40A-4E16-9E15-8C016CC8166F.html&lt;/a&gt;&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>VMware Tools needs to be manually upgraded on the new ShoreTel Voice vSwitch or ShoreTel Virtual SA100.  As these appliances are running linux, here is the article that VMware published:</p>
<p><a href="http://pubs.vmware.com/vsphere-50/index.jsp?topic=%2Fcom.vmware.vsphere.upgrade.doc_50%2FGUID-08BB9465-D40A-4E16-9E15-8C016CC8166F.html">http://pubs.vmware.com/vsphere-50/index.jsp?topic=%2Fcom.vmware.vsphere.upgrade.doc_50%2FGUID-08BB9465-D40A-4E16-9E15-8C016CC8166F.html</a></p>
]]></content:encoded>
    </item>
    <item>
      <title>Cisco 6500 &#34;Environment Checksum in NVRAM Failed&#34;</title>
      <link>https://thenetworkstack.com/cisco-6500-environment-checksum-in-nvram-failed/</link>
      <pubDate>Mon, 31 Mar 2014 17:55:36 +0000</pubDate>
      <guid>https://thenetworkstack.com/cisco-6500-environment-checksum-in-nvram-failed/</guid>
      <description>&lt;p&gt;Had an issue where an older Cisco 6500 switch was rebooted, and the MSFC would not start correctly and gave the following errors: &amp;ldquo;environment checksum in nvram failed&amp;rdquo; and &amp;ldquo;rommon nvram area is corrupted&amp;rdquo;.&lt;/p&gt;
&lt;p&gt;When trying to log into the the module from CatOS (session 15), the console stated that &amp;ldquo;module 15 is not installed&amp;rdquo;.  Tried to to manually boot the MSFC from ROMMON, using this helpful guide at &lt;a href=&#34;http://www.cisco.com/c/en/us/support/docs/switches/catalyst-6000-series-switches/19284-124.html&#34;&gt;cisco.com&lt;/a&gt;, but kept receiving the &amp;ldquo;nvram failed&amp;rdquo; error.  I was convinced it was potentially a hardware issue, but we physically removed the MSFC card, plugged it back in, and the nvram message disappeared and the MSFC module booted!  Good reminder that sometimes the simplest things can resolve a complex issue.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>Had an issue where an older Cisco 6500 switch was rebooted, and the MSFC would not start correctly and gave the following errors: &ldquo;environment checksum in nvram failed&rdquo; and &ldquo;rommon nvram area is corrupted&rdquo;.</p>
<p>When trying to log into the the module from CatOS (session 15), the console stated that &ldquo;module 15 is not installed&rdquo;.  Tried to to manually boot the MSFC from ROMMON, using this helpful guide at <a href="http://www.cisco.com/c/en/us/support/docs/switches/catalyst-6000-series-switches/19284-124.html">cisco.com</a>, but kept receiving the &ldquo;nvram failed&rdquo; error.  I was convinced it was potentially a hardware issue, but we physically removed the MSFC card, plugged it back in, and the nvram message disappeared and the MSFC module booted!  Good reminder that sometimes the simplest things can resolve a complex issue.</p>
<p><em>Note:</em> If you are running a SUP720, there is a field notice for corrupted NVRAM: <a href="http://www.cisco.com/c/en/us/support/docs/field-notices/200/fn27595.html">http://www.cisco.com/c/en/us/support/docs/field-notices/200/fn27595.html</a></p>
]]></content:encoded>
    </item>
    <item>
      <title>Telnet Commands for ShoreTel Switches - Part 2</title>
      <link>https://thenetworkstack.com/telnet-commands-for-shoretel-switches-part-2/</link>
      <pubDate>Mon, 24 Mar 2014 04:15:35 +0000</pubDate>
      <guid>https://thenetworkstack.com/telnet-commands-for-shoretel-switches-part-2/</guid>
      <description>&lt;p&gt;I&amp;rsquo;ve already posted how to enable telnet and get to the shell for ShoreTel (non-V) switches &lt;a href=&#34;https://thenetworkstack.com/telnet-commands-for-shoretel-switches-and-shell-access/&#34;&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Here are some more advanced commands that I have found useful for troubleshooting:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Show network interface information:&lt;/strong&gt;&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;ifShow
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;strong&gt;Test LSP UDP connectivity to &amp;ldquo;192.168.1.1&amp;rdquo;, repeat 100 times:&lt;/strong&gt;&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;lsp_ping &amp;#34;192.168.1.1&amp;#34;,100
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;strong&gt;Show connectivity to other switches/servers:&lt;/strong&gt;&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;lspConList
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;strong&gt;Show all extensions known to switch:&lt;/strong&gt;&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;lspTelList
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;strong&gt;Show detailed info for local extensions:&lt;/strong&gt;&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;lspTelList1
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;strong&gt;Show detailed info for remote extensions:&lt;/strong&gt;&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;lspTelList2
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;strong&gt;Restart the switch:&lt;/strong&gt;&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;reboot
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;strong&gt;Show the routing table:&lt;/strong&gt;&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>I&rsquo;ve already posted how to enable telnet and get to the shell for ShoreTel (non-V) switches <a href="/telnet-commands-for-shoretel-switches-and-shell-access/">here</a>.</p>
<p>Here are some more advanced commands that I have found useful for troubleshooting:</p>
<p><strong>Show network interface information:</strong></p>
<pre tabindex="0"><code>ifShow
</code></pre><p><strong>Test LSP UDP connectivity to &ldquo;192.168.1.1&rdquo;, repeat 100 times:</strong></p>
<pre tabindex="0"><code>lsp_ping &#34;192.168.1.1&#34;,100
</code></pre><p><strong>Show connectivity to other switches/servers:</strong></p>
<pre tabindex="0"><code>lspConList
</code></pre><p><strong>Show all extensions known to switch:</strong></p>
<pre tabindex="0"><code>lspTelList
</code></pre><p><strong>Show detailed info for local extensions:</strong></p>
<pre tabindex="0"><code>lspTelList1
</code></pre><p><strong>Show detailed info for remote extensions:</strong></p>
<pre tabindex="0"><code>lspTelList2
</code></pre><p><strong>Restart the switch:</strong></p>
<pre tabindex="0"><code>reboot
</code></pre><p><strong>Show the routing table:</strong></p>
<pre tabindex="0"><code>routeShow
</code></pre><p><strong>Show detailed SIP info on the console.</strong>  <em>sipdebuglevel=0 is the default</em></p>
<pre tabindex="0"><code>sip_debug_level=2
</code></pre><p><strong>Note:</strong> Commands are case sensitive</p>
<p>More commands can be found in the ShoreTel release maintenance guides.</p>
]]></content:encoded>
    </item>
    <item>
      <title>DMVPN Troubleshooting Commands</title>
      <link>https://thenetworkstack.com/dmvpn-troubleshooting-commands/</link>
      <pubDate>Tue, 25 Feb 2014 16:00:17 +0000</pubDate>
      <guid>https://thenetworkstack.com/dmvpn-troubleshooting-commands/</guid>
      <description>&lt;p&gt;Some basic IOS IPsec/DMVPN commands to aid with troubleshooting:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;show dmvpn detail
show ip nhrp
show ip nhrp multicast
&lt;/code&gt;&lt;/pre&gt;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;show crypto isakmp sa
show crypto isakmp policy
show crypto ipsec sa
&lt;/code&gt;&lt;/pre&gt;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;show run | s isakmp
show run | s ipsec
show run | s interface Tunnel
&lt;/code&gt;&lt;/pre&gt;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;debug crypto isakmp
debug crypto ipsec
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;em&gt;Remember to enable terminal monitor if you are remote for the debug commands&lt;/em&gt;&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>Some basic IOS IPsec/DMVPN commands to aid with troubleshooting:</p>
<pre tabindex="0"><code>show dmvpn detail
show ip nhrp
show ip nhrp multicast
</code></pre><pre tabindex="0"><code>show crypto isakmp sa
show crypto isakmp policy
show crypto ipsec sa
</code></pre><pre tabindex="0"><code>show run | s isakmp
show run | s ipsec
show run | s interface Tunnel
</code></pre><pre tabindex="0"><code>debug crypto isakmp
debug crypto ipsec
</code></pre><p><em>Remember to enable terminal monitor if you are remote for the debug commands</em></p>
]]></content:encoded>
    </item>
    <item>
      <title>IP SLA, Track Lists and Route Tracking</title>
      <link>https://thenetworkstack.com/ip-sla-track-lists-and-route-tracking/</link>
      <pubDate>Mon, 24 Feb 2014 01:11:59 +0000</pubDate>
      <guid>https://thenetworkstack.com/ip-sla-track-lists-and-route-tracking/</guid>
      <description>&lt;p&gt;IP SLA is a powerful tool, which I will only scratch the surface of in this post in regards to route tracking. I had a scenario where the primary default route should be removed if the internet was no longer accessible through the primary interface. This can be achieved with weighted static routing, but the primary default route will only be removed if the primary interface is physically down. The more likely scenario exists where the primary interface is physically connected and up, but the ISP is having routing/peering issues and takes down your connection to the outside world. IP SLA can be used to simply ping an IP address, and if the ping is unsuccessful, the route is removed.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>IP SLA is a powerful tool, which I will only scratch the surface of in this post in regards to route tracking. I had a scenario where the primary default route should be removed if the internet was no longer accessible through the primary interface. This can be achieved with weighted static routing, but the primary default route will only be removed if the primary interface is physically down. The more likely scenario exists where the primary interface is physically connected and up, but the ISP is having routing/peering issues and takes down your connection to the outside world. IP SLA can be used to simply ping an IP address, and if the ping is unsuccessful, the route is removed.</p>
<p>Here is a simple IP SLA configuration to ping 4.2.2.2 every 5 seconds:</p>
<pre tabindex="0"><code>ip sla 1
icmp-echo 4.2.2.2 source-ip 1.1.1.2
frequency 5
ip sla schedule 1 life forever start-time now
</code></pre><p>To track this IP SLA operation, we use the following command:</p>
<pre tabindex="0"><code>track 1 rtr 1 reachability delay down 15 up 15
</code></pre><p>On newer versions of IOS, &ldquo;rtr&rdquo; will be replaced with &ldquo;ip sla&rdquo;.  I added the &ldquo;delay down 15 up 15&rdquo; statement so that the track doesn&rsquo;t report as &ldquo;down&rdquo; until ip sla has failed 3 times in a row.  This is because I don&rsquo;t want one ping to fail and have the route withdrawn immediately.  Conversely, on fail-back, I don&rsquo;t just one ping to be successful before failing back to the primary route.  This prevents route-flapping when interfaces/service is flapping.</p>
<p>I would consider it best practice to statically route to whatever IP address you are pinging for your IP SLA operation.  Since I am pinging 4.2.2.2, and my gateway IP is 1.1.1.1 (theoretically), I add:</p>
<pre tabindex="0"><code>ip route 4.2.2.2 255.255.255.255 1.1.1.1
</code></pre><p>And finally, to add the track to my default route, I would use:</p>
<pre tabindex="0"><code>ip route 0.0.0.0 0.0.0.0 1.1.1.1 track 1
</code></pre><p><em><strong>BONUS NOTES:</strong></em></p>
<p>If you don&rsquo;t trust pinging a single IP address, you can setup multiple IP SLA operations (IP SLA 2, IP SLA 3)  and multiple tracks (Track 2, Track 3) and track all of them in a Track List.  Example:</p>
<pre tabindex="0"><code>track 100 list threshold percentage
object 1
object 2
object 3
object 4
threshold percentage up 25

ip route 0.0.0.0 0.0.0.0 1.1.1.1 track 100
</code></pre><p>Each of the objects is a seperate IP SLA operation/track, and as long as = or &gt;25% of the objects are up, the list will be considered up.  This is good idea to implement in case one of your ping destination happens to go down or stops responding to pings.</p>
]]></content:encoded>
    </item>
    <item>
      <title>ShoreTel VPN Concentrator NTP Vulnerability</title>
      <link>https://thenetworkstack.com/shoretel-vpn-concentrator-ntp-vulnerability-2/</link>
      <pubDate>Sat, 15 Feb 2014 00:34:18 +0000</pubDate>
      <guid>https://thenetworkstack.com/shoretel-vpn-concentrator-ntp-vulnerability-2/</guid>
      <description>&lt;p&gt;The ShoreTel VPN Concentrator responds to NTP requests (for remote IP phones), which makes it vulnerable to the NTP DDOS attacks that have been happening lately.  To enable the WAN firewall on the ShoreTel VPN Concentrator (off by default) you must access a hidden menu.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Log into your VPN concentrator, and click &amp;ldquo;Network&amp;rdquo; on the left-hand side&lt;/li&gt;
&lt;li&gt;Access the hidden firewall menu by changing the URL to page=5. Example:&lt;/li&gt;
&lt;/ol&gt;
&lt;ul&gt;
&lt;li&gt;Change &lt;a href=&#34;http://192.168.200.100/cgi-bin/config?page=3&#34;&gt;http://192.168.200.100/cgi-bin/config?page=3&lt;/a&gt; to: &lt;a href=&#34;http://192.168.200.100/cgi-bin/config?page=5&#34;&gt;http://192.168.200.100/cgi-bin/config?page=5&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;ol&gt;
&lt;li&gt;Check the box &amp;ldquo;&lt;strong&gt;Enable WAN Firewall&lt;/strong&gt;&amp;rdquo;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;CHECK THE BOXES TO ALLOW HTTP &amp;amp; HTTPS ACCESS THROUGH FIREWALL&lt;/strong&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;ul&gt;
&lt;li&gt;This allows you to manage the concentrator via HTTP or HTTPS&lt;/li&gt;
&lt;/ul&gt;
&lt;ol&gt;
&lt;li&gt;Press submit (All current VPN sessions will drop for ~30 seconds)&lt;/li&gt;
&lt;li&gt;The concentrator will be unresponsive for 30-60 seconds while it applies, after which you are done!&lt;/li&gt;
&lt;/ol&gt;</description>
      <content:encoded><![CDATA[<p>The ShoreTel VPN Concentrator responds to NTP requests (for remote IP phones), which makes it vulnerable to the NTP DDOS attacks that have been happening lately.  To enable the WAN firewall on the ShoreTel VPN Concentrator (off by default) you must access a hidden menu.</p>
<ol>
<li>Log into your VPN concentrator, and click &ldquo;Network&rdquo; on the left-hand side</li>
<li>Access the hidden firewall menu by changing the URL to page=5. Example:</li>
</ol>
<ul>
<li>Change <a href="http://192.168.200.100/cgi-bin/config?page=3">http://192.168.200.100/cgi-bin/config?page=3</a> to: <a href="http://192.168.200.100/cgi-bin/config?page=5">http://192.168.200.100/cgi-bin/config?page=5</a></li>
</ul>
<ol>
<li>Check the box &ldquo;<strong>Enable WAN Firewall</strong>&rdquo;</li>
<li><strong>CHECK THE BOXES TO ALLOW HTTP &amp; HTTPS ACCESS THROUGH FIREWALL</strong></li>
</ol>
<ul>
<li>This allows you to manage the concentrator via HTTP or HTTPS</li>
</ul>
<ol>
<li>Press submit (All current VPN sessions will drop for ~30 seconds)</li>
<li>The concentrator will be unresponsive for 30-60 seconds while it applies, after which you are done!</li>
</ol>
]]></content:encoded>
    </item>
    <item>
      <title>Cisco 3560-X Password Reset</title>
      <link>https://thenetworkstack.com/cisco-3560-x-password-reset/</link>
      <pubDate>Fri, 14 Feb 2014 16:00:03 +0000</pubDate>
      <guid>https://thenetworkstack.com/cisco-3560-x-password-reset/</guid>
      <description>&lt;ol&gt;
&lt;li&gt;Unplug Cisco 3560-X power&lt;/li&gt;
&lt;li&gt;Hold down &amp;ldquo;Mode&amp;rdquo; button on front, and plug in power&lt;/li&gt;
&lt;li&gt;Continue to hold &amp;ldquo;Mode&amp;rdquo; for about 15 seconds, until the SYST LED turns solid green, then release&lt;/li&gt;
&lt;li&gt;Log into the switch via console, you should see the &amp;ldquo;switch:&amp;rdquo; prompt&lt;/li&gt;
&lt;li&gt;Enter the command &lt;code&gt;flash_init&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Rename the config file with &lt;code&gt;rename flash:config.text flash:config.old&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Enter the command &lt;code&gt;boot&lt;/code&gt; to load IOS&lt;/li&gt;
&lt;li&gt;Enter &lt;code&gt;no&lt;/code&gt; to abort system configuration dialog&lt;/li&gt;
&lt;li&gt;Proceed to enable mode with the &lt;code&gt;en&lt;/code&gt; command&lt;/li&gt;
&lt;li&gt;Type &lt;code&gt;rename flash:config.old flash:config.text&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Then &lt;code&gt;copy flash:config.text system:running-config&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;The configuration has now been loaded, go into &lt;code&gt;conf t&lt;/code&gt; and change the user/enable password&lt;/li&gt;
&lt;li&gt;Once changed, save the new passwords with &lt;code&gt;wr mem&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;</description>
      <content:encoded><![CDATA[<ol>
<li>Unplug Cisco 3560-X power</li>
<li>Hold down &ldquo;Mode&rdquo; button on front, and plug in power</li>
<li>Continue to hold &ldquo;Mode&rdquo; for about 15 seconds, until the SYST LED turns solid green, then release</li>
<li>Log into the switch via console, you should see the &ldquo;switch:&rdquo; prompt</li>
<li>Enter the command <code>flash_init</code></li>
<li>Rename the config file with <code>rename flash:config.text flash:config.old</code></li>
<li>Enter the command <code>boot</code> to load IOS</li>
<li>Enter <code>no</code> to abort system configuration dialog</li>
<li>Proceed to enable mode with the <code>en</code> command</li>
<li>Type <code>rename flash:config.old flash:config.text</code></li>
<li>Then <code>copy flash:config.text system:running-config</code></li>
<li>The configuration has now been loaded, go into <code>conf t</code> and change the user/enable password</li>
<li>Once changed, save the new passwords with <code>wr mem</code></li>
</ol>
]]></content:encoded>
    </item>
    <item>
      <title>Cisco Show Command for ACL Interfaces</title>
      <link>https://thenetworkstack.com/cisco-show-command-for-acl-interfaces/</link>
      <pubDate>Wed, 12 Feb 2014 16:00:11 +0000</pubDate>
      <guid>https://thenetworkstack.com/cisco-show-command-for-acl-interfaces/</guid>
      <description>&lt;p&gt;While browsing networkengineering.stackexchange.com, I came across an interesting post regarding  easily finding interfaces in a config that have an ACL applied.  The thread is found &lt;a href=&#34;http://networkengineering.stackexchange.com/questions/2533/cisco-command-to-show-which-interfaces-an-acl-is-applied-to&#34;&gt;here&lt;/a&gt;, and the command is as follows (credit goes to @Santino from the thread):&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;show ip interface | include line protocol|access list
&lt;/code&gt;&lt;/pre&gt;</description>
      <content:encoded><![CDATA[<p>While browsing networkengineering.stackexchange.com, I came across an interesting post regarding  easily finding interfaces in a config that have an ACL applied.  The thread is found <a href="http://networkengineering.stackexchange.com/questions/2533/cisco-command-to-show-which-interfaces-an-acl-is-applied-to">here</a>, and the command is as follows (credit goes to @Santino from the thread):</p>
<pre tabindex="0"><code>show ip interface | include line protocol|access list
</code></pre>]]></content:encoded>
    </item>
    <item>
      <title>802.1X Wireless Authentication in a Windows Environment</title>
      <link>https://thenetworkstack.com/802-1x-wireless-authentication-in-a-windows-environment/</link>
      <pubDate>Mon, 10 Feb 2014 16:30:53 +0000</pubDate>
      <guid>https://thenetworkstack.com/802-1x-wireless-authentication-in-a-windows-environment/</guid>
      <description>&lt;p&gt;Recently came across an issue where users in an 802.1x wireless environment were logging into their laptops, and the AD logon script would run before they had wireless network connectivity.  This was a problem since their network drives would not map.&lt;/p&gt;
&lt;p&gt;While the users blamed the wireless network, the problem is actually resolved in AD Group Policy by specifying the order of operations for wireless authentication/user logon/domain logon.  Technet has a great article on how to resolve this issue: &lt;a href=&#34;http://technet.microsoft.com/en-us/magazine/2007.11.cableguy.aspx&#34; title=&#34;http://technet.microsoft.com/en-us/magazine/2007.11.cableguy.aspx&#34;&gt;http://technet.microsoft.com/en-us/magazine/2007.11.cableguy.aspx&lt;/a&gt;&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>Recently came across an issue where users in an 802.1x wireless environment were logging into their laptops, and the AD logon script would run before they had wireless network connectivity.  This was a problem since their network drives would not map.</p>
<p>While the users blamed the wireless network, the problem is actually resolved in AD Group Policy by specifying the order of operations for wireless authentication/user logon/domain logon.  Technet has a great article on how to resolve this issue: <a href="http://technet.microsoft.com/en-us/magazine/2007.11.cableguy.aspx" title="http://technet.microsoft.com/en-us/magazine/2007.11.cableguy.aspx">http://technet.microsoft.com/en-us/magazine/2007.11.cableguy.aspx</a></p>
]]></content:encoded>
    </item>
    <item>
      <title>QoS DSCP/ToS Values</title>
      <link>https://thenetworkstack.com/qos-dscp-tos-values/</link>
      <pubDate>Thu, 06 Feb 2014 19:40:50 +0000</pubDate>
      <guid>https://thenetworkstack.com/qos-dscp-tos-values/</guid>
      <description>&lt;table&gt;
	&lt;thead&gt;
			&lt;tr&gt;
					&lt;th&gt;&lt;strong&gt;DSCP Class&lt;/strong&gt;&lt;/th&gt;
					&lt;th&gt;&lt;strong&gt;DSCP (bin)&lt;/strong&gt;&lt;/th&gt;
					&lt;th&gt;&lt;strong&gt;DSCP (dec)&lt;/strong&gt;&lt;/th&gt;
					&lt;th&gt;&lt;strong&gt;ToS (dec)&lt;/strong&gt;&lt;/th&gt;
					&lt;th&gt;&lt;strong&gt;ToS (bin)&lt;/strong&gt;&lt;/th&gt;
					&lt;th&gt;&lt;strong&gt;ToS Prec. (bin)&lt;/strong&gt;&lt;/th&gt;
					&lt;th&gt;&lt;strong&gt;ToS Prec. (dec)&lt;/strong&gt;&lt;/th&gt;
			&lt;/tr&gt;
	&lt;/thead&gt;
	&lt;tbody&gt;
			&lt;tr&gt;
					&lt;td&gt;&lt;/td&gt;
					&lt;td&gt;&lt;/td&gt;
					&lt;td&gt;&lt;/td&gt;
					&lt;td&gt;&lt;/td&gt;
					&lt;td&gt;&lt;/td&gt;
					&lt;td&gt;&lt;/td&gt;
					&lt;td&gt;&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;none&lt;/td&gt;
					&lt;td&gt;000000&lt;/td&gt;
					&lt;td&gt;0&lt;/td&gt;
					&lt;td&gt;0&lt;/td&gt;
					&lt;td&gt;00000000&lt;/td&gt;
					&lt;td&gt;000&lt;/td&gt;
					&lt;td&gt;0&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;cs1&lt;/td&gt;
					&lt;td&gt;001000&lt;/td&gt;
					&lt;td&gt;8&lt;/td&gt;
					&lt;td&gt;32&lt;/td&gt;
					&lt;td&gt;00100000&lt;/td&gt;
					&lt;td&gt;001&lt;/td&gt;
					&lt;td&gt;1&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;af11&lt;/td&gt;
					&lt;td&gt;001010&lt;/td&gt;
					&lt;td&gt;10&lt;/td&gt;
					&lt;td&gt;40&lt;/td&gt;
					&lt;td&gt;00101000&lt;/td&gt;
					&lt;td&gt;001&lt;/td&gt;
					&lt;td&gt;1&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;af12&lt;/td&gt;
					&lt;td&gt;001100&lt;/td&gt;
					&lt;td&gt;12&lt;/td&gt;
					&lt;td&gt;48&lt;/td&gt;
					&lt;td&gt;00110000&lt;/td&gt;
					&lt;td&gt;001&lt;/td&gt;
					&lt;td&gt;1&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;af13&lt;/td&gt;
					&lt;td&gt;001110&lt;/td&gt;
					&lt;td&gt;14&lt;/td&gt;
					&lt;td&gt;56&lt;/td&gt;
					&lt;td&gt;00111000&lt;/td&gt;
					&lt;td&gt;001&lt;/td&gt;
					&lt;td&gt;1&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;cs2&lt;/td&gt;
					&lt;td&gt;010000&lt;/td&gt;
					&lt;td&gt;16&lt;/td&gt;
					&lt;td&gt;64&lt;/td&gt;
					&lt;td&gt;01000000&lt;/td&gt;
					&lt;td&gt;010&lt;/td&gt;
					&lt;td&gt;2&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;af21&lt;/td&gt;
					&lt;td&gt;010010&lt;/td&gt;
					&lt;td&gt;18&lt;/td&gt;
					&lt;td&gt;72&lt;/td&gt;
					&lt;td&gt;01001000&lt;/td&gt;
					&lt;td&gt;010&lt;/td&gt;
					&lt;td&gt;2&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;af22&lt;/td&gt;
					&lt;td&gt;010100&lt;/td&gt;
					&lt;td&gt;20&lt;/td&gt;
					&lt;td&gt;80&lt;/td&gt;
					&lt;td&gt;01010000&lt;/td&gt;
					&lt;td&gt;010&lt;/td&gt;
					&lt;td&gt;2&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;af23&lt;/td&gt;
					&lt;td&gt;010110&lt;/td&gt;
					&lt;td&gt;22&lt;/td&gt;
					&lt;td&gt;88&lt;/td&gt;
					&lt;td&gt;01011000&lt;/td&gt;
					&lt;td&gt;010&lt;/td&gt;
					&lt;td&gt;2&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;cs3&lt;/td&gt;
					&lt;td&gt;011000&lt;/td&gt;
					&lt;td&gt;24&lt;/td&gt;
					&lt;td&gt;96&lt;/td&gt;
					&lt;td&gt;01100000&lt;/td&gt;
					&lt;td&gt;011&lt;/td&gt;
					&lt;td&gt;3&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;af31&lt;/td&gt;
					&lt;td&gt;011010&lt;/td&gt;
					&lt;td&gt;26&lt;/td&gt;
					&lt;td&gt;104&lt;/td&gt;
					&lt;td&gt;01101000&lt;/td&gt;
					&lt;td&gt;011&lt;/td&gt;
					&lt;td&gt;3&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;af32&lt;/td&gt;
					&lt;td&gt;011100&lt;/td&gt;
					&lt;td&gt;28&lt;/td&gt;
					&lt;td&gt;112&lt;/td&gt;
					&lt;td&gt;01110000&lt;/td&gt;
					&lt;td&gt;011&lt;/td&gt;
					&lt;td&gt;3&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;af33&lt;/td&gt;
					&lt;td&gt;011110&lt;/td&gt;
					&lt;td&gt;30&lt;/td&gt;
					&lt;td&gt;120&lt;/td&gt;
					&lt;td&gt;01111000&lt;/td&gt;
					&lt;td&gt;011&lt;/td&gt;
					&lt;td&gt;3&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;cs4&lt;/td&gt;
					&lt;td&gt;100000&lt;/td&gt;
					&lt;td&gt;32&lt;/td&gt;
					&lt;td&gt;128&lt;/td&gt;
					&lt;td&gt;10000000&lt;/td&gt;
					&lt;td&gt;100&lt;/td&gt;
					&lt;td&gt;4&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;af41&lt;/td&gt;
					&lt;td&gt;100010&lt;/td&gt;
					&lt;td&gt;34&lt;/td&gt;
					&lt;td&gt;136&lt;/td&gt;
					&lt;td&gt;10001000&lt;/td&gt;
					&lt;td&gt;100&lt;/td&gt;
					&lt;td&gt;4&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;af42&lt;/td&gt;
					&lt;td&gt;100100&lt;/td&gt;
					&lt;td&gt;36&lt;/td&gt;
					&lt;td&gt;144&lt;/td&gt;
					&lt;td&gt;10010000&lt;/td&gt;
					&lt;td&gt;100&lt;/td&gt;
					&lt;td&gt;4&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;af43&lt;/td&gt;
					&lt;td&gt;100110&lt;/td&gt;
					&lt;td&gt;38&lt;/td&gt;
					&lt;td&gt;152&lt;/td&gt;
					&lt;td&gt;10011000&lt;/td&gt;
					&lt;td&gt;100&lt;/td&gt;
					&lt;td&gt;4&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;cs5&lt;/td&gt;
					&lt;td&gt;101000&lt;/td&gt;
					&lt;td&gt;40&lt;/td&gt;
					&lt;td&gt;160&lt;/td&gt;
					&lt;td&gt;10100000&lt;/td&gt;
					&lt;td&gt;101&lt;/td&gt;
					&lt;td&gt;5&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;ef&lt;/td&gt;
					&lt;td&gt;101110&lt;/td&gt;
					&lt;td&gt;46&lt;/td&gt;
					&lt;td&gt;184&lt;/td&gt;
					&lt;td&gt;10111000&lt;/td&gt;
					&lt;td&gt;101&lt;/td&gt;
					&lt;td&gt;5&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;cs6&lt;/td&gt;
					&lt;td&gt;110000&lt;/td&gt;
					&lt;td&gt;48&lt;/td&gt;
					&lt;td&gt;192&lt;/td&gt;
					&lt;td&gt;11000000&lt;/td&gt;
					&lt;td&gt;110&lt;/td&gt;
					&lt;td&gt;6&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;cs7&lt;/td&gt;
					&lt;td&gt;111000&lt;/td&gt;
					&lt;td&gt;56&lt;/td&gt;
					&lt;td&gt;224&lt;/td&gt;
					&lt;td&gt;11100000&lt;/td&gt;
					&lt;td&gt;111&lt;/td&gt;
					&lt;td&gt;7&lt;/td&gt;
			&lt;/tr&gt;
	&lt;/tbody&gt;
&lt;/table&gt;</description>
      <content:encoded><![CDATA[<table>
	<thead>
			<tr>
					<th><strong>DSCP Class</strong></th>
					<th><strong>DSCP (bin)</strong></th>
					<th><strong>DSCP (dec)</strong></th>
					<th><strong>ToS (dec)</strong></th>
					<th><strong>ToS (bin)</strong></th>
					<th><strong>ToS Prec. (bin)</strong></th>
					<th><strong>ToS Prec. (dec)</strong></th>
			</tr>
	</thead>
	<tbody>
			<tr>
					<td></td>
					<td></td>
					<td></td>
					<td></td>
					<td></td>
					<td></td>
					<td></td>
			</tr>
			<tr>
					<td>none</td>
					<td>000000</td>
					<td>0</td>
					<td>0</td>
					<td>00000000</td>
					<td>000</td>
					<td>0</td>
			</tr>
			<tr>
					<td>cs1</td>
					<td>001000</td>
					<td>8</td>
					<td>32</td>
					<td>00100000</td>
					<td>001</td>
					<td>1</td>
			</tr>
			<tr>
					<td>af11</td>
					<td>001010</td>
					<td>10</td>
					<td>40</td>
					<td>00101000</td>
					<td>001</td>
					<td>1</td>
			</tr>
			<tr>
					<td>af12</td>
					<td>001100</td>
					<td>12</td>
					<td>48</td>
					<td>00110000</td>
					<td>001</td>
					<td>1</td>
			</tr>
			<tr>
					<td>af13</td>
					<td>001110</td>
					<td>14</td>
					<td>56</td>
					<td>00111000</td>
					<td>001</td>
					<td>1</td>
			</tr>
			<tr>
					<td>cs2</td>
					<td>010000</td>
					<td>16</td>
					<td>64</td>
					<td>01000000</td>
					<td>010</td>
					<td>2</td>
			</tr>
			<tr>
					<td>af21</td>
					<td>010010</td>
					<td>18</td>
					<td>72</td>
					<td>01001000</td>
					<td>010</td>
					<td>2</td>
			</tr>
			<tr>
					<td>af22</td>
					<td>010100</td>
					<td>20</td>
					<td>80</td>
					<td>01010000</td>
					<td>010</td>
					<td>2</td>
			</tr>
			<tr>
					<td>af23</td>
					<td>010110</td>
					<td>22</td>
					<td>88</td>
					<td>01011000</td>
					<td>010</td>
					<td>2</td>
			</tr>
			<tr>
					<td>cs3</td>
					<td>011000</td>
					<td>24</td>
					<td>96</td>
					<td>01100000</td>
					<td>011</td>
					<td>3</td>
			</tr>
			<tr>
					<td>af31</td>
					<td>011010</td>
					<td>26</td>
					<td>104</td>
					<td>01101000</td>
					<td>011</td>
					<td>3</td>
			</tr>
			<tr>
					<td>af32</td>
					<td>011100</td>
					<td>28</td>
					<td>112</td>
					<td>01110000</td>
					<td>011</td>
					<td>3</td>
			</tr>
			<tr>
					<td>af33</td>
					<td>011110</td>
					<td>30</td>
					<td>120</td>
					<td>01111000</td>
					<td>011</td>
					<td>3</td>
			</tr>
			<tr>
					<td>cs4</td>
					<td>100000</td>
					<td>32</td>
					<td>128</td>
					<td>10000000</td>
					<td>100</td>
					<td>4</td>
			</tr>
			<tr>
					<td>af41</td>
					<td>100010</td>
					<td>34</td>
					<td>136</td>
					<td>10001000</td>
					<td>100</td>
					<td>4</td>
			</tr>
			<tr>
					<td>af42</td>
					<td>100100</td>
					<td>36</td>
					<td>144</td>
					<td>10010000</td>
					<td>100</td>
					<td>4</td>
			</tr>
			<tr>
					<td>af43</td>
					<td>100110</td>
					<td>38</td>
					<td>152</td>
					<td>10011000</td>
					<td>100</td>
					<td>4</td>
			</tr>
			<tr>
					<td>cs5</td>
					<td>101000</td>
					<td>40</td>
					<td>160</td>
					<td>10100000</td>
					<td>101</td>
					<td>5</td>
			</tr>
			<tr>
					<td>ef</td>
					<td>101110</td>
					<td>46</td>
					<td>184</td>
					<td>10111000</td>
					<td>101</td>
					<td>5</td>
			</tr>
			<tr>
					<td>cs6</td>
					<td>110000</td>
					<td>48</td>
					<td>192</td>
					<td>11000000</td>
					<td>110</td>
					<td>6</td>
			</tr>
			<tr>
					<td>cs7</td>
					<td>111000</td>
					<td>56</td>
					<td>224</td>
					<td>11100000</td>
					<td>111</td>
					<td>7</td>
			</tr>
	</tbody>
</table>
]]></content:encoded>
    </item>
    <item>
      <title>HP Switch (ProCruve) QoS Guide</title>
      <link>https://thenetworkstack.com/hp-switch-provision-qos-guide/</link>
      <pubDate>Sat, 21 Dec 2013 07:32:24 +0000</pubDate>
      <guid>https://thenetworkstack.com/hp-switch-provision-qos-guide/</guid>
      <description>&lt;p&gt;Coming from a Cisco QoS background, I wanted to get a good grasp on HP QoS with the ProCurve switches, but there isn&amp;rsquo;t much information out there (besides the &lt;a href=&#34;http://h20628.www2.hp.com/km-ext/kmcsdirect/emr_na-c03990945-1.pdf&#34;&gt;Advanced Traffic Management Guide&lt;/a&gt; by HP).  This post should should consolidate some of that information, and is based on the the Advanced Traffic Management Guide, various vendor HP interopability guides, and talks with some of the guys over at HP Networking.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;HP QoS Basics:&lt;/strong&gt;&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>Coming from a Cisco QoS background, I wanted to get a good grasp on HP QoS with the ProCurve switches, but there isn&rsquo;t much information out there (besides the <a href="http://h20628.www2.hp.com/km-ext/kmcsdirect/emr_na-c03990945-1.pdf">Advanced Traffic Management Guide</a> by HP).  This post should should consolidate some of that information, and is based on the the Advanced Traffic Management Guide, various vendor HP interopability guides, and talks with some of the guys over at HP Networking.</p>
<p><strong>HP QoS Basics:</strong></p>
<p>The 4 components of HP ProCurve QoS are:</p>
<ol>
<li>Enable QoS</li>
<li>Decide how many traffic queues you need</li>
<li>Assign guaranteed minimum bandwidth (GMB)/traffic servicing per queue</li>
<li>Classify traffic and assign to 802.1p priority</li>
</ol>
<p>These four steps can be achieved with a single command (almost like an Auto QoS). This command enables QoS, the 8 queue model, GMB, and DSCP-to-802.1p mappings of the primary DSCP values.</p>
<pre tabindex="0"><code>HP(config)# qos type-of-service diff-services
</code></pre><p>Now that QoS has been enabled, we can look at how HP maps 802.1p priorities to each queue:</p>
<pre tabindex="0"><code>HP# show qos queue-config
Egress Queue Configuration

Queue      802.1p Priority
-------          ------------
1                1
2                2
3                0
4                3
5                4
6                5
7                6
8                7
</code></pre><p>As you can see, traffic goes into queue 3 by default (802.1p - 0), background or scavenger traffic would be assigned to 802.1 priority 1 or 2, and more important traffic assigned to priorities 3-7.  Now that we know where the traffic is going, let&rsquo;s look at the bandwidth assigned to each queue:</p>
<pre tabindex="0"><code>HP# show bandwidth output 1

Outbound Guaranteed Minimum Bandwidth %
Port   Q1   Q2   Q3  Q4   Q5   Q6   Q7   Q8
------   ---    ---    ---    ---    ---    ---    ---    ---
1         2      3     30   10   10   10    15   20
</code></pre><p>Traffic with priority 1 or 2 gets the least amount of guaranteed bandwidth at 2% and 3%.  Default traffic is guaranteed 30%, and we see that the upper queue&rsquo;s (7 and 8) get 15% and 20% respectively.  Note that this is just guaranteed minimum bandwidth (GMB), not shaping or policing.  If the other queues are not full, traffic can burst above their guaranteed rate.  If the default values do not fit your network needs, the values can be changed on a port-by-port basis:</p>
<pre tabindex="0"><code>HP(config)# interface 1 bandwidth-min output 1 1 10 1 5 1 1 80
</code></pre><pre tabindex="0"><code>HP# show bandwidth output 1

Outbound Guaranteed Minimum Bandwidth %
Port   Q1   Q2   Q3  Q4   Q5   Q6   Q7   Q8
------   ---    ---    ---    ---    ---    ---    ---    ---
1         1     1     10     1      5      1     1      80
</code></pre><p>HP also does time-slicing per queue, depending on the assigned GMB.  For example, by default, traffic in queue 3 (GMB=30%) will be serviced at 30% of the time window before servicing the next queues packets.  With the modified GMB properties directly above, queue 8 would be serviced at 80% of the time before moving to the next queues.</p>
<p>There are also memory buffers assigned to each queue, but those are platform dependent and not publicly available (they are also not configurable).</p>
<p>Finally, we can view the default DSCP-to-802.1p Priority mappings:</p>
<pre tabindex="0"><code>HP# show qos dscp-map
DSCP -&gt; 802.p priority mappings
NOTE: &#39;qos type-of-service diff-services&#39; must be configured before DSCP is honored on inbound traffic.

DSCP CodePoint    DSCP Value    802.1p tag      DSCP Policy name
------------------------    -----------------    --------------       --------------------------------
000000                      0                         0                       cs0
000001                      1                         No-override
000010                      2                         No-override
000011                      3                         No-override
000100                      4                         No-override
000101                      5                         No-override
000110                      6                         No-override
000111                      7                         No-override
001000                      8                         1                        cs1
001001                      9                         No-override
001010                      10                       1                        af11
001011                      11                       No-override
001100                      12                       1                        af12
001101                      13                       No-override
001110                      14                       2                        af13
001111                      15                       No-override
010000                      16                       2                        cs2
010001                      17                       No-override
010010                      18                       0                        af21
010011                      19                       No-override
010100                      20                       0                        af22
010101                      21                       No-override
010110                      22                       3                        af23
010111                      23                       No-override
011000                      24                       3                        cs3
011001                      25                       No-override
011010                      26                       4                        af31
011011                      27                       No-override
011100                      28                       4                        af32
011101                      29                       No-override
011110                      30                       5                        af33
011111                      31                       No-override
100000                      32                       4                        cs4
100001                      33                       No-override
100010                      34                       6                        af41
100011                      35                       No-override
100100                      36                       6                        af42
100101                      37                       No-override
100110                      38                       7                        af43
100111                      39                       No-override
101000                      40                       5                        cs5
101001                      41                       No-override
101010                      42                       No-override
101011                      43                       No-override
101100                      44                       No-override
101101                      45                       No-override
101110                      46                       7                        ef
101111                      47                       No-override
110000                      48                       6                        cs6
110001                      49                       No-override
110010                      50                       No-override
110011                      51                       No-override
110100                      52                       No-override
110101                      53                       No-override
110110                      54                       No-override
110111                      55                       No-override
111000                      56                       7                        cs7
111001                      57                       No-override
111010                      58                       No-override
111011                      59                       No-override
111100                      60                       No-override
111101                      61                       No-override
111110                      62                       No-override
111111                      63                       No-override
</code></pre><p>As you can see, by default, EF traffic is assigned a priority of 7, placed in queue 8, and therefore given a GMB of 20%.</p>
<p>If your traffic comes into the switch with DSCP values, then verify the default DSCP-to-priority mapping meets your application&rsquo;s needs.  If not, you can assign the DSCP value to a different priority with the following command:</p>
<pre tabindex="0"><code>HP(config)# qos dscp-map af31 priority 5
</code></pre><p>If your application traffic does not come into the switch with a DSCP value, then you will need to classify the traffic and assign it a priority.  This can be done based off MAC address, IP address, VLAN ID, L3 Protocol, and L4 ports.  I&rsquo;m not going to go through how to classify traffic with an access-list in this post, maybe in the future!</p>
<hr>
<p>Here are a couple other interesting facts/suggestions related to ProVision QoS:</p>
<p>Only Egress queuing can be enabled.  There is no ingress queuing.  Egress queuing is most important, and even according to Cisco&rsquo;s Medianet QoS 4.0 document, ingress queuing is not a requirement in an QoS implementation.</p>
<p>If you do not need to classify traffic into 8 queues, using the 4 queue model will increase the memory buffer available to each queue.  By default, the 4 queue model also has a higher GMB for EF traffic, which means EF traffic is serviced more frequently.</p>
<p>There is not a &ldquo;strict priority queue&rdquo; (like Cisco&rsquo;s &ldquo;Priority Queue Out&rdquo;).  If you purely want a &ldquo;strict priority queue&rdquo; and do not care about other traffic, you can change the GMB and assign 100% of the bandwidth to the highest queue.</p>
<p>What if you just need to implement QoS for ShoreTel VoIP and I don&rsquo;t care about all this other stuff, what do you need to do? Just use the switch command <code>qos type-of-service diff-services</code> and you are set!  ShoreTel classifies voice traffic as EF and call control as AF31.  If you want to guarantee more bandwidth to ShoreTel, then I would also use the 4 queue model.</p>
<p>Supported Switches:  This guide is based off the HP 2920, 3800, 5400, and 8200 series of switches.</p>
]]></content:encoded>
    </item>
    <item>
      <title>Cisco CBAC Firewall - FW-4-ALERT_ON: getting aggressive</title>
      <link>https://thenetworkstack.com/cisco-cbac-firewall-fw-4-alert_on-getting-aggressive/</link>
      <pubDate>Sat, 07 Dec 2013 00:58:20 +0000</pubDate>
      <guid>https://thenetworkstack.com/cisco-cbac-firewall-fw-4-alert_on-getting-aggressive/</guid>
      <description>&lt;p&gt;Had an issue recently were the CBAC firewall on a Cisco 1811 was slowing down/blocking internet traffic.  My inspect policy was doing basic inspection (tcp, icmp - not http,https). The log showed: &lt;code&gt;%FW-4-ALERT_ON: getting aggressive, cound (501/500) current 1-min rate: 216&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Cisco explains this as the &amp;ldquo;router becomes aggressive when it has more half-open sessions than allowed.&amp;rdquo;  They recommend increasing ip inspection thresholds with &lt;code&gt;ip inspect max-incomplete high 1000&lt;/code&gt; and &lt;code&gt;ip inspect max-incomplete low 800&lt;/code&gt;, per &lt;a href=&#34;https://supportforums.cisco.com/docs/DOC-1939&#34;&gt;supportforums.cisco.com&lt;/a&gt;.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>Had an issue recently were the CBAC firewall on a Cisco 1811 was slowing down/blocking internet traffic.  My inspect policy was doing basic inspection (tcp, icmp - not http,https). The log showed: <code>%FW-4-ALERT_ON: getting aggressive, cound (501/500) current 1-min rate: 216</code></p>
<p>Cisco explains this as the &ldquo;router becomes aggressive when it has more half-open sessions than allowed.&rdquo;  They recommend increasing ip inspection thresholds with <code>ip inspect max-incomplete high 1000</code> and <code>ip inspect max-incomplete low 800</code>, per <a href="https://supportforums.cisco.com/docs/DOC-1939">supportforums.cisco.com</a>.</p>
<p>Unfortunately this did not resolve my problem, and I used <code>ip inspect one-minute high 2000</code> and <code>ip inspect one-minute low 1800</code> which brought everything back to normal.  If you want to increase all session thresholds in the hope of fixing your issue, here they are:</p>
<pre tabindex="0"><code>ip inspect max-incomplete high 5000
ip inspect max-incomplete low 4800
ip inspect one-minute high 5000
ip inspect one-minute low 4800
ip inspect udp idle-time 60
ip inspect tcp idle-time 43200
ip inspect tcp synwait-time 60
ip inspect tcp max-incomplete host 200 block-time 0
</code></pre><p>To get logging details, you can use <code>ip inspect audit-trail</code></p>
]]></content:encoded>
    </item>
    <item>
      <title>DMVPN Firewall (Access-List) Ports</title>
      <link>https://thenetworkstack.com/dmvpn-firewall-access-list-ports/</link>
      <pubDate>Wed, 13 Nov 2013 23:20:16 +0000</pubDate>
      <guid>https://thenetworkstack.com/dmvpn-firewall-access-list-ports/</guid>
      <description>&lt;p&gt;If you have a dedicated DMVPN router and want to apply a simple access list to the public interface to block all other traffic, this is what you need opened up:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;permit esp any any
permit udp any eq isakmp any eq isakmp
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;and if you have NAT-T, then you also need:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;permit udp any eq non500-isakmp any eq non500-isakmp
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;This is also assuming you have spokes connecting from unknown IP&amp;rsquo;s, if you have all static IP&amp;rsquo;s, you can further lock it down by restricting access to those IP&amp;rsquo;s only.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>If you have a dedicated DMVPN router and want to apply a simple access list to the public interface to block all other traffic, this is what you need opened up:</p>
<pre tabindex="0"><code>permit esp any any
permit udp any eq isakmp any eq isakmp
</code></pre><p>and if you have NAT-T, then you also need:</p>
<pre tabindex="0"><code>permit udp any eq non500-isakmp any eq non500-isakmp
</code></pre><p>This is also assuming you have spokes connecting from unknown IP&rsquo;s, if you have all static IP&rsquo;s, you can further lock it down by restricting access to those IP&rsquo;s only.</p>
]]></content:encoded>
    </item>
    <item>
      <title>DMVPN - Phase 1 with EIGRP</title>
      <link>https://thenetworkstack.com/dmvpn-phase-1-with-eigrp/</link>
      <pubDate>Tue, 12 Nov 2013 04:04:45 +0000</pubDate>
      <guid>https://thenetworkstack.com/dmvpn-phase-1-with-eigrp/</guid>
      <description>&lt;p&gt;Here is a quick and clean DMVPN Phase 1 Configuration:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Hub Router&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;IPsec:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;HUB01(config)# crypto isakmp policy 10
HUB01(config-isakmp)# encr 3des
HUB01(config-isakmp)# hash md5
HUB01(config-isakmp)# authentication pre-share

HUB01(config)# crypto isakmp key CISCO address 0.0.0.0 0.0.0.0

HUB01(config)#crypto ipsec transform-set TR_SET esp-3des
HUB01(cfg-crypto-trans)# mode transport

HUB01(config)# crypto ipsec profile DMVPN
HUB01(config-profile)# set transform-set TR_SET
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Tunnel:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;HUB01(config)# interface tunnel 0
HUB01(config-if)# ip address 192.168.200.1 255.255.255.0
HUB01(config-if)# ip mtu 1400
HUB01(config-if)# ip tcp adjust-mss 1360
HUB01(config-if)# ip nhrp authentication DMVPN
HUB01(config-if)# ip nhrp map multicast dynamic
HUB01(config-if)# ip nhrp network-id 1
HUB01(config-if)# ip nhrp holdtime 60
HUB01(config-if)# ip nhrp registration no-unique
HUB01(config-if)# tunnel source FastEthernet0/1 (WAN interface)
HUB01(config-if)# tunnel mode gre multipoint
HUB01(config-if)# tunnel key 1234
HUB01(config-if)# tunnel protection ipsec profile DMVPN
HUB01(config-if)# no ip eigrp 1 split-horizon eigrp 1
HUB01(config-if)# bandwidth 1000
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;EIGRP:&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>Here is a quick and clean DMVPN Phase 1 Configuration:</p>
<p><strong>Hub Router</strong></p>
<p>IPsec:</p>
<pre tabindex="0"><code>HUB01(config)# crypto isakmp policy 10
HUB01(config-isakmp)# encr 3des
HUB01(config-isakmp)# hash md5
HUB01(config-isakmp)# authentication pre-share

HUB01(config)# crypto isakmp key CISCO address 0.0.0.0 0.0.0.0

HUB01(config)#crypto ipsec transform-set TR_SET esp-3des
HUB01(cfg-crypto-trans)# mode transport

HUB01(config)# crypto ipsec profile DMVPN
HUB01(config-profile)# set transform-set TR_SET
</code></pre><p>Tunnel:</p>
<pre tabindex="0"><code>HUB01(config)# interface tunnel 0
HUB01(config-if)# ip address 192.168.200.1 255.255.255.0
HUB01(config-if)# ip mtu 1400
HUB01(config-if)# ip tcp adjust-mss 1360
HUB01(config-if)# ip nhrp authentication DMVPN
HUB01(config-if)# ip nhrp map multicast dynamic
HUB01(config-if)# ip nhrp network-id 1
HUB01(config-if)# ip nhrp holdtime 60
HUB01(config-if)# ip nhrp registration no-unique
HUB01(config-if)# tunnel source FastEthernet0/1 (WAN interface)
HUB01(config-if)# tunnel mode gre multipoint
HUB01(config-if)# tunnel key 1234
HUB01(config-if)# tunnel protection ipsec profile DMVPN
HUB01(config-if)# no ip eigrp 1 split-horizon eigrp 1
HUB01(config-if)# bandwidth 1000
</code></pre><p>EIGRP:</p>
<pre tabindex="0"><code>HUB01(config)# router eigrp 1
HUB01(config-router)# no auto-summary
HUB01(config-router)# network 192.168.200.0
HUB01(config-router)# network 10.0.0.0 0.0.0.255 (internal network)
</code></pre><p>IP Route:</p>
<p>Remember to add a default route to the outside network, or a specific route for the outside interface of the DMVPN spoke interface</p>
<hr>
<p><strong>Spoke Router</strong></p>
<p>IPsec:</p>
<pre tabindex="0"><code>SPOKE01(config)# crypto isakmp policy 10
SPOKE01(config-isakmp)# encr 3des
SPOKE01(config-isakmp)# hash md5
SPOKE01(config-isakmp)# authentication pre-share

SPOKE01(config)# crypto isakmp key CISCO address 0.0.0.0 0.0.0.0

SPOKE01(config)#crypto ipsec transform-set TR_SET esp-3des
SPOKE01(cfg-crypto-trans)# mode transport

SPOKE01(config)# crypto ipsec profile DMVPN
SPOKE01(config-profile)# set transform-set TR_SET
</code></pre><p>Tunnel:</p>
<pre tabindex="0"><code>SPOKE01(config)# interface tunnel 0
SPOKE01(config-if)# ip address 192.168.200.2 255.255.255.0
SPOKE01(config-if)# ip mtu 1400
SPOKE01(config-if)# ip tcp adjust-mss 1360
SPOKE01(config-if)# ip nhrp authentication DMVPN
SPOKE01(config-if)# ip nhrp map 192.168.200.1 1.1.1.1 (Ext IP of Hub router)
SPOKE01(config-if)# ip nhrp network-id 1
SPOKE01(config-if)# ip nhrp holdtime 60
SPOKE01(config-if)# ip nhs 192.168.200.1
SPOKE01(config-if)# tunnel source FastEthernet0/1 (WAN interface)
SPOKE01(config-if)# tunnel destination 1.1.1.1 (Ext IP of Hub router)
SPOKE01(config-if)# tunnel key 1234
SPOKE01(config-if)# tunnel protection ipsec profile DMVPN
SPOKE01(config-if)# bandwidth 1000
</code></pre><p>EIGRP:</p>
<pre tabindex="0"><code>SPOKE01(config)# router eigrp 1
SPOKE01(config-router)# no auto-summary
SPOKE01(config-router)# network 192.168.200.0
SPOKE01(config-router)# network 172.16.0.0 0.0.0.255 (internal network)
SPOKE01(config-router)# eigrp stub
</code></pre><p>IP Route:</p>
<p>Remember to add a default route to the outside network, or a specific route for the outside interface of the DMVPN Hub interface</p>
]]></content:encoded>
    </item>
    <item>
      <title>ShoreTel Phone Configuration Codes</title>
      <link>https://thenetworkstack.com/shoretel-phone-configuration-codes/</link>
      <pubDate>Wed, 06 Nov 2013 03:36:50 +0000</pubDate>
      <guid>https://thenetworkstack.com/shoretel-phone-configuration-codes/</guid>
      <description>&lt;p&gt;From a ShoreTel phone, you can ping, view configuration, etc directly from the phone:&lt;/p&gt;
&lt;p&gt;For each operation, you press MUTE and then hit the number + #:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;PING:&lt;/strong&gt;&lt;br&gt;
Press MUTE then 7464# (PING)&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;CLEAR CACHED VALUES:&lt;/strong&gt;&lt;br&gt;
Press MUTE then 25327# (CLEAR)&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;RESET PHONE:&lt;/strong&gt;&lt;br&gt;
Press MUTE then 73738# (RESET)&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;EDIT CONFIGURATION:&lt;/strong&gt;&lt;br&gt;
Press MUTE then 73887# (SETUP)&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;VIEW CONFIGURATION:&lt;/strong&gt;&lt;br&gt;
Press MUTE then 4636# (INFO)&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;FACTORY RESET:&lt;/strong&gt;&lt;br&gt;
Press MUTE then 772667# (RRAMOS), then press 1234 as password and confirm.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>From a ShoreTel phone, you can ping, view configuration, etc directly from the phone:</p>
<p>For each operation, you press MUTE and then hit the number + #:</p>
<p><strong>PING:</strong><br>
Press MUTE then 7464# (PING)</p>
<p><strong>CLEAR CACHED VALUES:</strong><br>
Press MUTE then 25327# (CLEAR)</p>
<p><strong>RESET PHONE:</strong><br>
Press MUTE then 73738# (RESET)</p>
<p><strong>EDIT CONFIGURATION:</strong><br>
Press MUTE then 73887# (SETUP)</p>
<p><strong>VIEW CONFIGURATION:</strong><br>
Press MUTE then 4636# (INFO)</p>
<p><strong>FACTORY RESET:</strong><br>
Press MUTE then 772667# (RRAMOS), then press 1234 as password and confirm.</p>
]]></content:encoded>
    </item>
    <item>
      <title>ASA Implicit Rule &#34;Permit all traffic to less secure networks&#34; ACL</title>
      <link>https://thenetworkstack.com/asa-implicit-rule-permit-all-traffic-to-less-secure-networks-acl/</link>
      <pubDate>Thu, 03 Oct 2013 19:13:23 +0000</pubDate>
      <guid>https://thenetworkstack.com/asa-implicit-rule-permit-all-traffic-to-less-secure-networks-acl/</guid>
      <description>&lt;p&gt;When adding a new network interface to the ASA, you must specific a security level. Based off this security level, the default ACL allows you to access &amp;ldquo;less secure&amp;rdquo; networks, and denies access to &amp;ldquo;more secure&amp;rdquo; networks. This default rule works great until you need to implement a security zone with specific access to different zones. For example, a DMZ would have a security level of 50 (access to outside, implicit deny to inside). When we need to add an ACL to permit certain access to the inside, the implicit &amp;ldquo;Permit all traffic to less secure networks&amp;rdquo; rule is removed.  We must manually add this in.  I found a great post regarding this setup on the Cisco Support Community which I will copy here for future reference:&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>When adding a new network interface to the ASA, you must specific a security level. Based off this security level, the default ACL allows you to access &ldquo;less secure&rdquo; networks, and denies access to &ldquo;more secure&rdquo; networks. This default rule works great until you need to implement a security zone with specific access to different zones. For example, a DMZ would have a security level of 50 (access to outside, implicit deny to inside). When we need to add an ACL to permit certain access to the inside, the implicit &ldquo;Permit all traffic to less secure networks&rdquo; rule is removed.  We must manually add this in.  I found a great post regarding this setup on the Cisco Support Community which I will copy here for future reference:</p>
<p>&ldquo;I have an object-group for all my networks. As these are normally in the RFC1918-range, thats my object-group:</p>
<pre tabindex="0"><code>object-group network RFC1918
   network-object 10.0.0.0 255.0.0.0
   network-object 172.16.0.0 255.240.0.0
   network-object 192.168.0.0 255.255.0.0
</code></pre><p>Next on all interfaces I have two logical sections:</p>
<pre tabindex="0"><code>access-list DMZ-ACCESS-IN permit tcp object DMZ-HOST object INSIDE-HOST eq 80
access-list DMZ-ACCESS-IN deny ip any object-group RFC1918
access-list DMZ-ACCESS-IN permit tcp object DMZ-HOST any eq 25
</code></pre><p>Everything above the deny-line is for the communication to my own networks. In the lines below the deny I can now use the keyword &ldquo;any&rdquo; which is the internet in this case as all communication to internal networks has been filtered out. If I later add an additional interface with  a private network nothing has to change in my existing ACLs to block access to that network.&rdquo;</p>
<p>Original post can be found here: <a href="https://supportforums.cisco.com/thread/2171251">https://supportforums.cisco.com/thread/2171251</a></p>
]]></content:encoded>
    </item>
    <item>
      <title>Cisco Switch Security Best Practices</title>
      <link>https://thenetworkstack.com/cisco-switch-security-best-practices/</link>
      <pubDate>Mon, 30 Sep 2013 06:22:41 +0000</pubDate>
      <guid>https://thenetworkstack.com/cisco-switch-security-best-practices/</guid>
      <description>&lt;p&gt;This is a summary and command reference for Cisco Switch Security Best Practices from the Cisco CCNP material.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;1. Configure secure passwords&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Use the &lt;code&gt;enable secret&lt;/code&gt; command to set the enable password&lt;/li&gt;
&lt;li&gt;Use external AAA servers for administrative access&lt;/li&gt;
&lt;li&gt;Use the &lt;code&gt;service password-encryption&lt;/code&gt; command to prevent casual observers from seeing password&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;2. Use the system banner&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Use the &lt;code&gt;banner motd&lt;/code&gt; command to warn unauthorized users that their actions could be grounds for prosecution.  Also do not display any information regarding the network/switch, as this could be used by a malicious user.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>This is a summary and command reference for Cisco Switch Security Best Practices from the Cisco CCNP material.</p>
<p><strong>1. Configure secure passwords</strong></p>
<ul>
<li>Use the <code>enable secret</code> command to set the enable password</li>
<li>Use external AAA servers for administrative access</li>
<li>Use the <code>service password-encryption</code> command to prevent casual observers from seeing password</li>
</ul>
<p><strong>2. Use the system banner</strong></p>
<p>Use the <code>banner motd</code> command to warn unauthorized users that their actions could be grounds for prosecution.  Also do not display any information regarding the network/switch, as this could be used by a malicious user.</p>
<p><strong>3. Use HTTPS for the web interface and restrict access</strong></p>
<pre tabindex="0"><code>(config)# ip http secure server
(config)# access-list 10 permit 10.0.99.0 0.0.0.255
(config)# ip http access-class 10
</code></pre><p><strong>4. Even if you have restricted physical access, use authentication on the console port</strong></p>
<pre tabindex="0"><code>(config-line)# login authentication default
</code></pre><p>OR if you are not using aaa new-model:</p>
<pre tabindex="0"><code>(config-line)# login local
</code></pre><p><strong>5. Restrict access to the VTY lines</strong></p>
<pre tabindex="0"><code>(config)# access-list 10 permit 10.0.99.0 0.0.0.255
(config)# line vty 0 15
(config-line)# access-class 10 in
</code></pre><p><strong>6. Always manually set the port mode (access port)</strong></p>
<pre tabindex="0"><code>(config-if)# switchport access vlan (vlan-id)
(config-if)# switchport mode access
</code></pre><p><strong>7. Use SSH instead of telnet for remote access</strong></p>
<pre tabindex="0"><code>(config)# ip domain-name example.com
(config)# crypto key generate rsa
(config)# ip ssh version 2
(config)# line vty 0 15
(config-line)# transport input ssh
</code></pre><p><strong>8. Do not use SNMP Read/Write (RW) Strings</strong></p>
<p>If you are going to use SNMP, only use RO strings and limit access with an ACL</p>
<p><strong>9. Secure unused switchports</strong></p>
<p>Shutdown unused switchports and place them in a &ldquo;parking lot&rdquo; VLAN.  You can also use the switchport host command macro to set several parameters</p>
<pre tabindex="0"><code>(config-if)#switchport host
switchport mode will be set to access
spanning-tree portfast will be enabled
channel group will be disabled
(config-if)#switchport access vlan 888
(config-if)#shutdown
</code></pre><p><strong>10. Secure STP operation</strong></p>
<p>Enable BPDU guard on access ports</p>
<pre tabindex="0"><code>(config-if)# spanning-tree bpduguard enable
</code></pre><p><strong>11. Secure CDP usage</strong></p>
<p>CDP provide unecessary information on access ports (unless you are using Cisco IP phones, then do not disable)</p>
<pre tabindex="0"><code>(config-if)#no cdp enable
</code></pre><p><strong>12. Prevent VLAN Hopping</strong></p>
<p><em>OPTION 1: Change the Native VLAN and then Prune the Native VLAN (CDP, PAgp and DTP will still function)</em></p>
<pre tabindex="0"><code>(config-if)# switchport trunk encapsulation dot1q
(config-if)# switchport trunk native vlan 800
(config-if)# switchport trunk allowed vlan remove 800
(config-if)# switchport mode trunk
</code></pre><p><em>OPTION 2: Force the switch to tag the native VLAN (global cmd, must be done on both switches)</em></p>
<pre tabindex="0"><code>(config)# vlan dot1q tag native
</code></pre>]]></content:encoded>
    </item>
    <item>
      <title>Cisco SPAN (Port-Mirror) Configuration</title>
      <link>https://thenetworkstack.com/cisco-span-port-mirror-configuration/</link>
      <pubDate>Thu, 05 Sep 2013 16:08:17 +0000</pubDate>
      <guid>https://thenetworkstack.com/cisco-span-port-mirror-configuration/</guid>
      <description>&lt;p&gt;Example: On my Cisco switch I want to mirror port 10 to port 20 so I can plug in my laptop (into port 20) with wireshark and do packet captures&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;(config) #monitor session 1 source interface fastethernet0/10
(config) #monitor session 1 destination interface fastethernet0/20
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;and then verify the configuration&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;switch #show monitor session 1
&lt;/code&gt;&lt;/pre&gt;</description>
      <content:encoded><![CDATA[<p>Example: On my Cisco switch I want to mirror port 10 to port 20 so I can plug in my laptop (into port 20) with wireshark and do packet captures</p>
<pre tabindex="0"><code>(config) #monitor session 1 source interface fastethernet0/10
(config) #monitor session 1 destination interface fastethernet0/20
</code></pre><p>and then verify the configuration</p>
<pre tabindex="0"><code>switch #show monitor session 1
</code></pre>]]></content:encoded>
    </item>
    <item>
      <title>OSPF Neighbor Relationships</title>
      <link>https://thenetworkstack.com/ospf-neighbor-relationships/</link>
      <pubDate>Tue, 27 Aug 2013 17:20:44 +0000</pubDate>
      <guid>https://thenetworkstack.com/ospf-neighbor-relationships/</guid>
      <description>&lt;p&gt;5 Requirements for OSPF to form a relationship with a neighbor:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;1. Hello and Dead timers must match&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;2. Network mask must match&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;3. Area ID must match&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;4. Authentication password must match (if you are using OSPF authentication)&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;5. Stub Area Flag must match&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Also found a great wiki on OSPF best practices: &lt;a href=&#34;http://wiki.nil.com/OSPF_area_configuration_best_practices&#34;&gt;http://wiki.nil.com/OSPF_area_configuration_best_practices&lt;/a&gt;&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>5 Requirements for OSPF to form a relationship with a neighbor:</p>
<p><strong>1. Hello and Dead timers must match</strong></p>
<p><strong>2. Network mask must match</strong></p>
<p><strong>3. Area ID must match</strong></p>
<p><strong>4. Authentication password must match (if you are using OSPF authentication)</strong></p>
<p><strong>5. Stub Area Flag must match</strong></p>
<p>Also found a great wiki on OSPF best practices: <a href="http://wiki.nil.com/OSPF_area_configuration_best_practices">http://wiki.nil.com/OSPF_area_configuration_best_practices</a></p>
]]></content:encoded>
    </item>
    <item>
      <title>IPv6 OSPF on a Cisco router</title>
      <link>https://thenetworkstack.com/ipv6-ospf-on-a-cisco-router/</link>
      <pubDate>Sat, 24 Aug 2013 23:54:39 +0000</pubDate>
      <guid>https://thenetworkstack.com/ipv6-ospf-on-a-cisco-router/</guid>
      <description>&lt;p&gt;The big difference between IPv4 and IPv6 OSPF configuration on a Cisco router is that the initial configuration has moved to the interface level, instead of using the &amp;ldquo;network&amp;rdquo; statements to determine which interfaces will be part of the OSPF process. To get IPv6 OSPF up-and-running, here are the 4 basic commands:&lt;/p&gt;
&lt;p&gt;Enable ipv6 routing between non-local subnets&lt;br&gt;
&lt;code&gt;router(config)# ipv6 unicast-routing&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Go into the interface config and enable the OSPF process and area&lt;br&gt;
&lt;code&gt;router(config-if)# ipv6 ospf 100 area 0&lt;/code&gt;&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>The big difference between IPv4 and IPv6 OSPF configuration on a Cisco router is that the initial configuration has moved to the interface level, instead of using the &ldquo;network&rdquo; statements to determine which interfaces will be part of the OSPF process. To get IPv6 OSPF up-and-running, here are the 4 basic commands:</p>
<p>Enable ipv6 routing between non-local subnets<br>
<code>router(config)# ipv6 unicast-routing</code></p>
<p>Go into the interface config and enable the OSPF process and area<br>
<code>router(config-if)# ipv6 ospf 100 area 0</code></p>
<p>Go into the ipv6 OSPF global configuration<br>
<code>router(config)# ipv6 router ospf 100</code></p>
<p>Set the ipv6 OSPF router id<br>
<code>router(config-rtr)# router-id X.X.X.X</code></p>
]]></content:encoded>
    </item>
    <item>
      <title>ShoreTel Least Cost Routing</title>
      <link>https://thenetworkstack.com/shoretel-least-cost-routing/</link>
      <pubDate>Mon, 19 Aug 2013 14:00:14 +0000</pubDate>
      <guid>https://thenetworkstack.com/shoretel-least-cost-routing/</guid>
      <description>&lt;p&gt;&lt;strong&gt;NOTICE: Changing these settings can impact your ability to make/receive calls, do not change unless instructed by ShoreTel TAC.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;With that said, hopefully this information can be useful if you have a similar situation:&lt;/p&gt;
&lt;p&gt;I had two ShoreTel sites within the same area code, HQ site had the PRI, and the Remote site had an analog trunk to be used for primary 911 and secondary voice failover (if the network connection failed between both sites or the PRI went down). The tricky part was having the ShoreTel system prefer the PRI at HQ ONLY for normal voice calls, even though there was a local analog trunk at the Remote site. The ShoreTel system still needed to to prefer the local analog trunk for 911 calls.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p><strong>NOTICE: Changing these settings can impact your ability to make/receive calls, do not change unless instructed by ShoreTel TAC.</strong></p>
<p>With that said, hopefully this information can be useful if you have a similar situation:</p>
<p>I had two ShoreTel sites within the same area code, HQ site had the PRI, and the Remote site had an analog trunk to be used for primary 911 and secondary voice failover (if the network connection failed between both sites or the PRI went down). The tricky part was having the ShoreTel system prefer the PRI at HQ ONLY for normal voice calls, even though there was a local analog trunk at the Remote site. The ShoreTel system still needed to to prefer the local analog trunk for 911 calls.</p>
<p>Least Cost Routing can only be changed on the Director through the Support Entry mode, accessed by hold Ctrl + Shift and clicking on the &ldquo;U&rdquo; in Username. Then login using your normal admin credentials.</p>
<p>Verify that &ldquo;Parent as Proxy&rdquo; is not checked (PaP allows normally unroutable calls out the Parent site, like 911, which we don&rsquo;t want in this scenario)</p>
<p>Navigate to the PRI trunk group, and at the bottom of the page, there is &ldquo;Trunk Group Dialing Rules&rdquo;. Click &ldquo;Edit&rdquo; and add &ldquo;;2E;-26A&rdquo; without the quotation marks. Click &ldquo;Save&rdquo; and wait about 2-3 minutes for the changes to take effect and test failover and 911!</p>
]]></content:encoded>
    </item>
    <item>
      <title>Advertise Default Route with BGP</title>
      <link>https://thenetworkstack.com/advertise-default-route-with-bgp/</link>
      <pubDate>Sat, 17 Aug 2013 08:50:24 +0000</pubDate>
      <guid>https://thenetworkstack.com/advertise-default-route-with-bgp/</guid>
      <description>&lt;p&gt;If you are used to using the &amp;ldquo;Default-Information Originate&amp;rdquo; command with OSPF or EIGRP to easily advertise a default route, you might be surprised to find that solely applying that command within BGP does &lt;strong&gt;not&lt;/strong&gt; advertise a default route.  You must also use &lt;code&gt;Redistribute Static&lt;/code&gt; in conjunction with &lt;code&gt;Default-Information Originate&lt;/code&gt;.  Your BGP config would look something like this:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;router bgp 65000
 no synchronization
 bgp log-neighbor-changes
 redistribute static
 neighbor 10.10.10.10 remote-as 65010
 default-information originate
 no auto-summary
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Both commands are needed whether you are using eBGP or iBGP.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>If you are used to using the &ldquo;Default-Information Originate&rdquo; command with OSPF or EIGRP to easily advertise a default route, you might be surprised to find that solely applying that command within BGP does <strong>not</strong> advertise a default route.  You must also use <code>Redistribute Static</code> in conjunction with <code>Default-Information Originate</code>.  Your BGP config would look something like this:</p>
<pre tabindex="0"><code>router bgp 65000
 no synchronization
 bgp log-neighbor-changes
 redistribute static
 neighbor 10.10.10.10 remote-as 65010
 default-information originate
 no auto-summary
</code></pre><p>Both commands are needed whether you are using eBGP or iBGP.</p>
]]></content:encoded>
    </item>
    <item>
      <title>ShoreTel Active Directory Integration</title>
      <link>https://thenetworkstack.com/shoretel-active-directory-integration/</link>
      <pubDate>Thu, 15 Aug 2013 21:18:43 +0000</pubDate>
      <guid>https://thenetworkstack.com/shoretel-active-directory-integration/</guid>
      <description>&lt;p&gt;ShoreTel AD integration is pretty simple, just a couple of important steps to remember:&lt;/p&gt;
&lt;p&gt;To use AD integration, check &amp;ldquo;Enable AD Integration&amp;rdquo; under System Parameters -&amp;gt; Other&lt;/p&gt;
&lt;p&gt;ShoreTel is a top-level LDAP reader, so you do not need to specify certain OUs.  Your LDAP string should look like this: &lt;code&gt;LDAP://example.com/DC=example,DC=com&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;At least one system administrator account has to be AD enabled for ShoreTel to use and perform LDAP lookups.  To use the &amp;ldquo;Test&amp;rdquo; or &amp;ldquo;Sync&amp;rdquo; buttons on an AD enabled user, you must be logged in with an administrator account that is AD enabled.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>ShoreTel AD integration is pretty simple, just a couple of important steps to remember:</p>
<p>To use AD integration, check &ldquo;Enable AD Integration&rdquo; under System Parameters -&gt; Other</p>
<p>ShoreTel is a top-level LDAP reader, so you do not need to specify certain OUs.  Your LDAP string should look like this: <code>LDAP://example.com/DC=example,DC=com</code></p>
<p>At least one system administrator account has to be AD enabled for ShoreTel to use and perform LDAP lookups.  To use the &ldquo;Test&rdquo; or &ldquo;Sync&rdquo; buttons on an AD enabled user, you must be logged in with an administrator account that is AD enabled.</p>
]]></content:encoded>
    </item>
    <item>
      <title>ShoreTel TMSNcc Log Info</title>
      <link>https://thenetworkstack.com/shoretel-tmsncc-log-info/</link>
      <pubDate>Mon, 05 Aug 2013 14:45:36 +0000</pubDate>
      <guid>https://thenetworkstack.com/shoretel-tmsncc-log-info/</guid>
      <description>&lt;p&gt;Great informational article regarding ShoreTel TMSNcc logs: &lt;a href=&#34;http://www.netdungeon.com/articles/how-decipher-tmsncclog&#34;&gt;http://www.netdungeon.com/articles/how-decipher-tmsncclog&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Call Code Parameters:&lt;/strong&gt;&lt;/p&gt;
&lt;table&gt;
	&lt;thead&gt;
			&lt;tr&gt;
					&lt;th&gt;C-CE&lt;/th&gt;
					&lt;th&gt;Call Creation Event&lt;/th&gt;
					&lt;th&gt;Call Initiation.&lt;/th&gt;
			&lt;/tr&gt;
	&lt;/thead&gt;
	&lt;tbody&gt;
			&lt;tr&gt;
					&lt;td&gt;L-CE&lt;/td&gt;
					&lt;td&gt;Leg Create Event&lt;/td&gt;
					&lt;td&gt;Follows a C-CE; Internal Transfers&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;L-IE&lt;/td&gt;
					&lt;td&gt;Leg Info Event&lt;/td&gt;
					&lt;td&gt;Provides information on other parties in the call.&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;C-SE&lt;/td&gt;
					&lt;td&gt;Call State Event&lt;/td&gt;
					&lt;td&gt;State of call in progress; RingBack, Offering, etc.&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;L-SE&lt;/td&gt;
					&lt;td&gt;Leg State Event&lt;/td&gt;
					&lt;td&gt;Follows a C-SE to inform the leg state changes.&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;L-DE&lt;/td&gt;
					&lt;td&gt;Leg Destroy Event&lt;/td&gt;
					&lt;td&gt;Call tear down; Leg is destroyed.&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;C-DE&lt;/td&gt;
					&lt;td&gt;Call Destroy Event&lt;/td&gt;
					&lt;td&gt;Call Destroyed by user or system hung up.&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;G-MST&lt;/td&gt;
					&lt;td&gt;Media State Event&lt;/td&gt;
					&lt;td&gt;Media states for the terminated call leg.&lt;/td&gt;
			&lt;/tr&gt;
	&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;Example from the article linked above:&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>Great informational article regarding ShoreTel TMSNcc logs: <a href="http://www.netdungeon.com/articles/how-decipher-tmsncclog">http://www.netdungeon.com/articles/how-decipher-tmsncclog</a></p>
<p><strong>Call Code Parameters:</strong></p>
<table>
	<thead>
			<tr>
					<th>C-CE</th>
					<th>Call Creation Event</th>
					<th>Call Initiation.</th>
			</tr>
	</thead>
	<tbody>
			<tr>
					<td>L-CE</td>
					<td>Leg Create Event</td>
					<td>Follows a C-CE; Internal Transfers</td>
			</tr>
			<tr>
					<td>L-IE</td>
					<td>Leg Info Event</td>
					<td>Provides information on other parties in the call.</td>
			</tr>
			<tr>
					<td>C-SE</td>
					<td>Call State Event</td>
					<td>State of call in progress; RingBack, Offering, etc.</td>
			</tr>
			<tr>
					<td>L-SE</td>
					<td>Leg State Event</td>
					<td>Follows a C-SE to inform the leg state changes.</td>
			</tr>
			<tr>
					<td>L-DE</td>
					<td>Leg Destroy Event</td>
					<td>Call tear down; Leg is destroyed.</td>
			</tr>
			<tr>
					<td>C-DE</td>
					<td>Call Destroy Event</td>
					<td>Call Destroyed by user or system hung up.</td>
			</tr>
			<tr>
					<td>G-MST</td>
					<td>Media State Event</td>
					<td>Media states for the terminated call leg.</td>
			</tr>
	</tbody>
</table>
<p>Example from the article linked above:</p>
<p><strong>Key:</strong></p>
<table>
	<thead>
			<tr>
					<th>Trunk Call Leg To PSTN</th>
					<th>40000001</th>
			</tr>
	</thead>
	<tbody>
			<tr>
					<td>Internal Call Leg</td>
					<td>20000023</td>
			</tr>
			<tr>
					<td>Call GUID</td>
					<td>00020000-1aae-4f05-9cce-0010491e1b95</td>
			</tr>
			<tr>
					<td>PBX Responding to Party</td>
					<td>ncc_media_ctl</td>
			</tr>
	</tbody>
</table>
<p><strong>Packet Information:</strong> <code>(s:1, r:378, l:0),(j:0,u:0,o:0)</code>The above packet information lists sent and recieved packets, and jitter.  This is very useful in understanding why calls fail.  In many cases we will see issues with jitter readjustments during problem or dropped calls. The <strong>s:1</strong> indicates 1 packet was sent, the <strong>r:378</strong> indicates 378 packets were recieved.  The second set of parentheses <strong>(j:0,u:0,o:0)</strong> describes the jitter buffer, and in this case was adjusted 0 times.  This is more of an ideal scenario as problem calls will vary in their jitter and packet amounts.</p>
]]></content:encoded>
    </item>
    <item>
      <title>Setting up OSPF on HP Switches</title>
      <link>https://thenetworkstack.com/setting-up-ospf-on-hp-switches/</link>
      <pubDate>Fri, 02 Aug 2013 16:34:31 +0000</pubDate>
      <guid>https://thenetworkstack.com/setting-up-ospf-on-hp-switches/</guid>
      <description>&lt;p&gt;To run OSPF on HP Procurve switches, you will most likely need the &amp;ldquo;Premium&amp;rdquo; software license.  Once you have that, configuring OSPF is fairly easy, although different from the Cisco approach:&lt;/p&gt;
&lt;p&gt;For example, I want to enable OSPF in area 0 on my HP core switch (HP 5406):&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Enter OSPF configuration&lt;/li&gt;
&lt;/ol&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;(config)#router ospf
&lt;/code&gt;&lt;/pre&gt;&lt;ol start=&#34;2&#34;&gt;
&lt;li&gt;Define the OSPF areas to be used&lt;/li&gt;
&lt;/ol&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;(ospf)#area backbone
&lt;/code&gt;&lt;/pre&gt;&lt;ol start=&#34;3&#34;&gt;
&lt;li&gt;HP Procurve runs OSPF under the VLAN configuration, so enter the VLAN that will be communicating with your other OSPF enabled devices and then enable the OSPF area&lt;/li&gt;
&lt;/ol&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;(vlan-10)#ip ospf area backbone
&lt;/code&gt;&lt;/pre&gt;&lt;ol start=&#34;4&#34;&gt;
&lt;li&gt;Once your configuration is complete, enable the OSPF process&lt;/li&gt;
&lt;/ol&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;(config)#router ospf enable
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;You can verify your OSPF status and neighbors:&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>To run OSPF on HP Procurve switches, you will most likely need the &ldquo;Premium&rdquo; software license.  Once you have that, configuring OSPF is fairly easy, although different from the Cisco approach:</p>
<p>For example, I want to enable OSPF in area 0 on my HP core switch (HP 5406):</p>
<ol>
<li>Enter OSPF configuration</li>
</ol>
<pre tabindex="0"><code>(config)#router ospf
</code></pre><ol start="2">
<li>Define the OSPF areas to be used</li>
</ol>
<pre tabindex="0"><code>(ospf)#area backbone
</code></pre><ol start="3">
<li>HP Procurve runs OSPF under the VLAN configuration, so enter the VLAN that will be communicating with your other OSPF enabled devices and then enable the OSPF area</li>
</ol>
<pre tabindex="0"><code>(vlan-10)#ip ospf area backbone
</code></pre><ol start="4">
<li>Once your configuration is complete, enable the OSPF process</li>
</ol>
<pre tabindex="0"><code>(config)#router ospf enable
</code></pre><p>You can verify your OSPF status and neighbors:</p>
<pre tabindex="0"><code>#show ip ospf general
#show ip ospf neighbor
</code></pre>]]></content:encoded>
    </item>
    <item>
      <title>Verify Windows Server 2008R2 Time/NTP Settings</title>
      <link>https://thenetworkstack.com/verify-windows-server-2008r2-timentp-settings/</link>
      <pubDate>Wed, 31 Jul 2013 23:56:21 +0000</pubDate>
      <guid>https://thenetworkstack.com/verify-windows-server-2008r2-timentp-settings/</guid>
      <description>&lt;p&gt;From the cmd prompt:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;For current time:&lt;/strong&gt;&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;Time /T
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;strong&gt;For configuration:&lt;/strong&gt;&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;w32tm /query /configuration
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;strong&gt;For status:&lt;/strong&gt;&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;w32tm /query /status
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;To set your 2008R2 server as an NTP server, edit the following two reg keys:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config\AnnounceFlags&lt;/strong&gt; and change to Value 5&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpServer\Enabled&lt;/strong&gt; and change to Value 1&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Restart the Windows Time service&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;</description>
      <content:encoded><![CDATA[<p>From the cmd prompt:</p>
<p><strong>For current time:</strong></p>
<pre tabindex="0"><code>Time /T
</code></pre><p><strong>For configuration:</strong></p>
<pre tabindex="0"><code>w32tm /query /configuration
</code></pre><p><strong>For status:</strong></p>
<pre tabindex="0"><code>w32tm /query /status
</code></pre><p>To set your 2008R2 server as an NTP server, edit the following two reg keys:</p>
<ol>
<li>
<p><strong>HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config\AnnounceFlags</strong> and change to Value 5</p>
</li>
<li>
<p><strong>HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpServer\Enabled</strong> and change to Value 1</p>
</li>
<li>
<p>Restart the Windows Time service</p>
</li>
</ol>
]]></content:encoded>
    </item>
    <item>
      <title>Windows Update Failed on Server 2008R2</title>
      <link>https://thenetworkstack.com/windows-update-failed-on-server-2008r2/</link>
      <pubDate>Wed, 31 Jul 2013 02:32:03 +0000</pubDate>
      <guid>https://thenetworkstack.com/windows-update-failed-on-server-2008r2/</guid>
      <description>&lt;p&gt;If you are having issues with Windows Update failing, try running the Microsoft System Update Readiness Tool here: &lt;a href=&#34;http://support.microsoft.com/kb/947821&#34;&gt;http://support.microsoft.com/kb/947821&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;This tool has fixed Windows Update issues for me on Server 2008R2 installs.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>If you are having issues with Windows Update failing, try running the Microsoft System Update Readiness Tool here: <a href="http://support.microsoft.com/kb/947821">http://support.microsoft.com/kb/947821</a></p>
<p>This tool has fixed Windows Update issues for me on Server 2008R2 installs.</p>
]]></content:encoded>
    </item>
    <item>
      <title>ShoreTel V-Switch Commands</title>
      <link>https://thenetworkstack.com/shoretel-v-switch-commands/</link>
      <pubDate>Tue, 30 Jul 2013 01:07:44 +0000</pubDate>
      <guid>https://thenetworkstack.com/shoretel-v-switch-commands/</guid>
      <description>&lt;p&gt;To connect to a V switch, you do not need to enable telnet from the Director server, but you do need to connect via SSH.  If you connect directly to the console, remember to set your speed to 19200.&lt;/p&gt;
&lt;p&gt;Login with username/password: root | ShoreTel&lt;/p&gt;
&lt;p&gt;Enter &lt;code&gt;svccli&lt;/code&gt; and then &lt;code&gt;getsvcstatus&lt;/code&gt; to verify services are running.  You can start services manually with &lt;code&gt;startsvc servicename&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;To get back to the shell, type &amp;ldquo;&lt;strong&gt;q&lt;/strong&gt;&amp;rdquo; and hit enter&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>To connect to a V switch, you do not need to enable telnet from the Director server, but you do need to connect via SSH.  If you connect directly to the console, remember to set your speed to 19200.</p>
<p>Login with username/password: root | ShoreTel</p>
<p>Enter <code>svccli</code> and then <code>getsvcstatus</code> to verify services are running.  You can start services manually with <code>startsvc servicename</code></p>
<p>To get back to the shell, type &ldquo;<strong>q</strong>&rdquo; and hit enter</p>
<p>Type <strong>date</strong> and press enter to verify NTP is working correctly.  If the date is off, resolve your NTP issue, since certain services will not start without NTP working properly.</p>
<p>To enter the ShoreTel menu, enter <strong>stcli</strong></p>
<p>Reference: <a href="http://customers.btxchange.com/Manuals/ShoreTel/ShoreTel%20V%20-%20Voicemail%20Switches.pdf">http://customers.btxchange.com/Manuals/ShoreTel/ShoreTel V - Voicemail Switches.pdf</a></p>
]]></content:encoded>
    </item>
    <item>
      <title>Understanding VLAN Membership</title>
      <link>https://thenetworkstack.com/understanding-vlan-membership/</link>
      <pubDate>Tue, 09 Jul 2013 20:38:34 +0000</pubDate>
      <guid>https://thenetworkstack.com/understanding-vlan-membership/</guid>
      <description>&lt;p&gt;The topic of how VLANs work and untagging/tagging ports has come up, so I am attempting to write a simplified post based off some of the questions I have received:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;VLANs are typically assigned to a single subnet&lt;/strong&gt;.  This is done to limit the broadcast domain and to implement access control.  For example, my network could look like this:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;VLAN 10: 10.0.10.0/24
VLAN 20: 10.0.20.0/24
VLAN 30: 10.0.30.0/24
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;If you want to connect a PC to VLAN 30, then you would assign an IP address in the 10.0.30.0/24 network to the PC, and connect to a switchport that is Untagged on VLAN 30 (If you are using Cisco switches, this would be Switchport Access VLAN 30) .  The PC would send untagged frames since it is not VLAN aware, and the switch would accept those untagged frames into VLAN 30.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>The topic of how VLANs work and untagging/tagging ports has come up, so I am attempting to write a simplified post based off some of the questions I have received:</p>
<p><strong>VLANs are typically assigned to a single subnet</strong>.  This is done to limit the broadcast domain and to implement access control.  For example, my network could look like this:</p>
<pre tabindex="0"><code>VLAN 10: 10.0.10.0/24
VLAN 20: 10.0.20.0/24
VLAN 30: 10.0.30.0/24
</code></pre><p>If you want to connect a PC to VLAN 30, then you would assign an IP address in the 10.0.30.0/24 network to the PC, and connect to a switchport that is Untagged on VLAN 30 (If you are using Cisco switches, this would be Switchport Access VLAN 30) .  The PC would send untagged frames since it is not VLAN aware, and the switch would accept those untagged frames into VLAN 30.</p>
<p><strong>If my PC wanted to access a device on another Subnet/VLAN, then the switch would need to route that packet to the other network.</strong>  Some switches do this by default, others need to have &ldquo;IP Routing&rdquo; enabled. Most enterprise networks use the core/distribution switch to route between networks, so I would assign an IP Address to the VLAN interface of the switch:</p>
<pre tabindex="0"><code>Interface VLAN 10 IP Address 10.0.10.1
Interface VLAN 20 IP Address 10.0.20.1
Interface VLAN 30 IP Address 10.0.30.1
</code></pre><p>This VLAN interface would be the default gateway for the devices in their respective network, and allow the networks to communicate with each other.  If you need to limit access between networks, then you can apply an Access Control List to the VLAN interface.</p>
<p><strong>If your end device is VLAN aware, and needs to communicate on multiple networks using the same physical interface, then VLAN tagging (or in the Cisco world, Trunking) comes into place.</strong>  For example, if you have a VMware host with virtual machines that are on VLAN10, and other virtual machines that are on VLAN20, then VLAN tagging would need to be setup on the switch AND the VMware host.  On the switchport, we could set VLAN 10 untagged, and VLAN 20 tagged (For Cisco, this is switchport mode trunk/native vlan 10).  On the VMware host, we would create a vSwitch for VLAN 10, with no VLAN tagging enabled (because all untagged frames will be accepted on VLAN 10 by the switch).  Then we would create another vSwitch for VLAN 20, tagging VLAN 20.  Both vSwitches would use the same physical NICs. Any virtual machines in this VLAN 20 vSwitch will communicate like normal, but when the vSwitch sends the packets out of the host and to the switchport, it will tag the packets with VLAN 20 so they will communicate on the correct network.</p>
]]></content:encoded>
    </item>
    <item>
      <title>ShoreTel Backup - Release 12.1</title>
      <link>https://thenetworkstack.com/shoretel-backup-release-12-1/</link>
      <pubDate>Tue, 02 Jul 2013 20:32:28 +0000</pubDate>
      <guid>https://thenetworkstack.com/shoretel-backup-release-12-1/</guid>
      <description>&lt;p&gt;These are the recommended backup steps when performing a backup on ShoreTel 12.1&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Open the cmd prompt&lt;/li&gt;
&lt;li&gt;Type: &lt;code&gt;cd c:\Program Files\Shoreline Communications\Shoreware Server\MySQL\MySQL Server 5.0\Examples&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Type &lt;code&gt;backupconfig.bat&lt;/code&gt; and press enter&lt;/li&gt;
&lt;li&gt;Verify the backup is complete by opening your backupconfig (located on C:) and it should say &amp;ldquo;The dump is Complete&amp;rdquo; at the bottom&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;em&gt;Source: ShoreTel 12.1 Release Notes&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Personally, I would also run &lt;strong&gt;backupcdr.bat&lt;/strong&gt; and copy the Shoreline Communications folder.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>These are the recommended backup steps when performing a backup on ShoreTel 12.1</p>
<ol>
<li>Open the cmd prompt</li>
<li>Type: <code>cd c:\Program Files\Shoreline Communications\Shoreware Server\MySQL\MySQL Server 5.0\Examples</code></li>
<li>Type <code>backupconfig.bat</code> and press enter</li>
<li>Verify the backup is complete by opening your backupconfig (located on C:) and it should say &ldquo;The dump is Complete&rdquo; at the bottom</li>
</ol>
<p><em>Source: ShoreTel 12.1 Release Notes</em></p>
<p>Personally, I would also run <strong>backupcdr.bat</strong> and copy the Shoreline Communications folder.</p>
<ol>
<li>Open cmd prompt and go here: <code>cd c:\Program Files\Shoreline Communications\Shoreware Server\Scripts</code></li>
<li>Then run <code>hq_shoretel-stop-svcs.bat</code></li>
<li>Once all ShoreTel services are stopped, you can copy the &ldquo;Shoreline Communications&rdquo; folder to a network drive for backup</li>
<li>Once the copy completes, you can either restart the server or run <code>hq_shoretel-start-svcs.bat</code></li>
</ol>
]]></content:encoded>
    </item>
    <item>
      <title>LACP Trunk on HP Procurve Switch</title>
      <link>https://thenetworkstack.com/lacp-trunk-on-hp-procurve-switch/</link>
      <pubDate>Thu, 27 Jun 2013 15:27:17 +0000</pubDate>
      <guid>https://thenetworkstack.com/lacp-trunk-on-hp-procurve-switch/</guid>
      <description>&lt;p&gt;To create a LACP trunk on an HP 2910 switch, follow these commands:&lt;/p&gt;
&lt;p&gt;On both switches:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Log into the HP switch CLI, and enter configure mode&lt;/li&gt;
&lt;li&gt;Identify the interfaces you want to use for the trunk and type:\&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;code&gt;trunk 25-26 trk1 lacp&lt;/code&gt;\&lt;/p&gt;
&lt;p&gt;&amp;ldquo;25-26&amp;rdquo; are the interfaces used in the trunk\&lt;/p&gt;
&lt;p&gt;&amp;ldquo;trk1&amp;rdquo; defines this specific trunk\&lt;/p&gt;
&lt;p&gt;&amp;ldquo;lacp&amp;rdquo; defines lacp as the trunking protocol
3. Now untag/tag the trunk with VLANs just like any other interface, example:\&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>To create a LACP trunk on an HP 2910 switch, follow these commands:</p>
<p>On both switches:</p>
<ol>
<li>Log into the HP switch CLI, and enter configure mode</li>
<li>Identify the interfaces you want to use for the trunk and type:\</li>
</ol>
<p><code>trunk 25-26 trk1 lacp</code>\</p>
<p>&ldquo;25-26&rdquo; are the interfaces used in the trunk\</p>
<p>&ldquo;trk1&rdquo; defines this specific trunk\</p>
<p>&ldquo;lacp&rdquo; defines lacp as the trunking protocol
3. Now untag/tag the trunk with VLANs just like any other interface, example:\</p>
<p><code>vlan 10 tag trk1</code></p>
<p>If you want to remove an interface from the trunk, just use the no command: <code>no trunk 25</code></p>
<p>Verify commands:\</p>
<p><code>show lacp</code>\</p>
<p><code>show trunks</code></p>
]]></content:encoded>
    </item>
    <item>
      <title>ShoreTel Communicator Outlook Integration &#34;Grayed Out&#34;</title>
      <link>https://thenetworkstack.com/shoretel-communicator-outlook-integration-grayed-out/</link>
      <pubDate>Thu, 20 Jun 2013 15:16:37 +0000</pubDate>
      <guid>https://thenetworkstack.com/shoretel-communicator-outlook-integration-grayed-out/</guid>
      <description>&lt;p&gt;Came across a user that wanted to install the ShoreTel 13.2 Communicator Outlook Integration, but the option was grayed out under Communicator Tools &amp;ndash;&amp;gt; Options &amp;ndash;&amp;gt; Outlook.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Uninstall Communicator and then reinstall by right-clicking and &amp;ldquo;Run as Administrator&amp;rdquo;.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;The integration buttons can sometimes be grayed out due to privilege or UAC issues.&lt;/p&gt;
&lt;p&gt;If that doesn&amp;rsquo;t work, Communicator does not see the Office install, and both softwares need to be re-installed.  This happens more often with &amp;ldquo;Click-to-run&amp;rdquo; Office installs.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>Came across a user that wanted to install the ShoreTel 13.2 Communicator Outlook Integration, but the option was grayed out under Communicator Tools &ndash;&gt; Options &ndash;&gt; Outlook.</p>
<ol>
<li>Uninstall Communicator and then reinstall by right-clicking and &ldquo;Run as Administrator&rdquo;.</li>
</ol>
<p>The integration buttons can sometimes be grayed out due to privilege or UAC issues.</p>
<p>If that doesn&rsquo;t work, Communicator does not see the Office install, and both softwares need to be re-installed.  This happens more often with &ldquo;Click-to-run&rdquo; Office installs.</p>
<ol>
<li>Uninstall Communicator</li>
<li>Delete existing Mail profiles</li>
<li>Uninstall Office</li>
<li>Reinstall Office (Do not use click-to-run mode)</li>
<li>Install Communicator</li>
<li>Go to &ldquo;Manage Add-On&rsquo;s&rdquo; in Outlook and verify all ShoreTel add-on&rsquo;s are enabled</li>
<li>Restart Outlook and Communicator and everything should be working</li>
</ol>
<p><strong>UPDATE</strong>: As posted in the comments below by <a href="http://www.thecitrixman.com">thecitrixman.com</a>, you can also edit the registry with these values: <a href="http://thecitrixman.com/2013/06/26/manually-run-shoretel-addins/">http://thecitrixman.com/2013/06/26/manually-run-shoretel-addins/</a></p>
]]></content:encoded>
    </item>
    <item>
      <title>ShoreTel Switch Burnflash</title>
      <link>https://thenetworkstack.com/shoretel-switch-burnflash/</link>
      <pubDate>Tue, 18 Jun 2013 16:50:24 +0000</pubDate>
      <guid>https://thenetworkstack.com/shoretel-switch-burnflash/</guid>
      <description>&lt;p&gt;If your ShoreTel switches are acting weird, sometimes a burnflash can fix a bug.  These commands are for the non-V switches, and will restart the switch at the end, so do not do this during production hours.  Network settings will be retained.&lt;/p&gt;
&lt;p&gt;On the ShoreTel Director server, open CMD and enter: &lt;code&gt;cd “C:\Program Files\Shoreline Communications\Shoreware Server”&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Type (X.X.X.X = IP Address): &lt;code&gt;burnflash -s X.X.X.X&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;You will see the switch re-download its software, and reboot at the end&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>If your ShoreTel switches are acting weird, sometimes a burnflash can fix a bug.  These commands are for the non-V switches, and will restart the switch at the end, so do not do this during production hours.  Network settings will be retained.</p>
<p>On the ShoreTel Director server, open CMD and enter: <code>cd “C:\Program Files\Shoreline Communications\Shoreware Server”</code></p>
<p>Type (X.X.X.X = IP Address): <code>burnflash -s X.X.X.X</code></p>
<p>You will see the switch re-download its software, and reboot at the end</p>
]]></content:encoded>
    </item>
    <item>
      <title>How to enable debugging for ShoreTel Communicator</title>
      <link>https://thenetworkstack.com/how-to-enable-debugging-for-shoretel-communicator/</link>
      <pubDate>Tue, 21 May 2013 01:00:01 +0000</pubDate>
      <guid>https://thenetworkstack.com/how-to-enable-debugging-for-shoretel-communicator/</guid>
      <description>&lt;p&gt;When you need to look at advanced options or enable debugging of the Communicator for troubleshooting, use the following steps:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Open ShoreTel Communicator and hover your mouse cursor over &amp;ldquo;Enter a name or number&amp;rdquo;&lt;/li&gt;
&lt;li&gt;Hold CTRL and press F12&lt;/li&gt;
&lt;li&gt;A new window with open with debugging options and additional information (ex.  &amp;ldquo;Server Status&amp;rdquo;)&lt;/li&gt;
&lt;li&gt;Once you enable logging for the different components, the logs will be accessible here: C:\Users\username\AppData\Roaming(or Local, depending on your setup)\ShoreWare Client\Logs&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Make sure to disable debugging once you are done.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>When you need to look at advanced options or enable debugging of the Communicator for troubleshooting, use the following steps:</p>
<ol>
<li>Open ShoreTel Communicator and hover your mouse cursor over &ldquo;Enter a name or number&rdquo;</li>
<li>Hold CTRL and press F12</li>
<li>A new window with open with debugging options and additional information (ex.  &ldquo;Server Status&rdquo;)</li>
<li>Once you enable logging for the different components, the logs will be accessible here: C:\Users\username\AppData\Roaming(or Local, depending on your setup)\ShoreWare Client\Logs</li>
</ol>
<p>Make sure to disable debugging once you are done.</p>
]]></content:encoded>
    </item>
    <item>
      <title>Telnet Commands for ShoreTel Phones</title>
      <link>https://thenetworkstack.com/telnet-commands-for-shoretel-phones/</link>
      <pubDate>Thu, 16 May 2013 14:00:00 +0000</pubDate>
      <guid>https://thenetworkstack.com/telnet-commands-for-shoretel-phones/</guid>
      <description>&lt;p&gt;Being able to telnet into a ShoreTel phone can be helpful for troubleshooting certain network issues, here are the commands:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;From the ShoreTel Director server, open CMD and enter: &lt;code&gt;cd “C:\Program Files\Shoreline Communications\Shoreware Server”&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Next, enter: &lt;code&gt;phonectl -pw 1234 -telneton X.X.X.X&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Now you can telnet to the phone IP address&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;A list of shell commands can be found here: &lt;a href=&#34;http://workendtech.com/telnet-commands-shoretel-phones-2/&#34;&gt;http://workendtech.com/telnet-commands-shoretel-phones-2/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The most useful command: &lt;code&gt;printSysInfo&lt;/code&gt;&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>Being able to telnet into a ShoreTel phone can be helpful for troubleshooting certain network issues, here are the commands:</p>
<ol>
<li>From the ShoreTel Director server, open CMD and enter: <code>cd “C:\Program Files\Shoreline Communications\Shoreware Server”</code></li>
<li>Next, enter: <code>phonectl -pw 1234 -telneton X.X.X.X</code></li>
<li>Now you can telnet to the phone IP address</li>
</ol>
<p>A list of shell commands can be found here: <a href="http://workendtech.com/telnet-commands-shoretel-phones-2/">http://workendtech.com/telnet-commands-shoretel-phones-2/</a></p>
<p>The most useful command: <code>printSysInfo</code></p>
]]></content:encoded>
    </item>
    <item>
      <title>Telnet Commands for ShoreTel Switches (and Shell Access)</title>
      <link>https://thenetworkstack.com/telnet-commands-for-shoretel-switches-and-shell-access/</link>
      <pubDate>Thu, 16 May 2013 06:06:48 +0000</pubDate>
      <guid>https://thenetworkstack.com/telnet-commands-for-shoretel-switches-and-shell-access/</guid>
      <description>&lt;p&gt;To enable telnet on a ShoreTel switch perform the following steps:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;On the ShoreTel Director server, open CMD and enter: &lt;code&gt;cd &amp;quot;C:\Program Files\Shoreline Communications\Shoreware Server&amp;quot;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Next, enter: &lt;code&gt;ipbxctl -telneton X.X.X.X&lt;/code&gt; (X.X.X.X is the IP address of your Shoretel switch)&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;em&gt;The command prompt should now say &amp;ldquo;Telnet Enabled&amp;rdquo;&lt;/em&gt;&lt;/p&gt;
&lt;ol start=&#34;3&#34;&gt;
&lt;li&gt;Now you can telnet (assuming you have telnet enabled on your PC) with: &lt;code&gt;telnet X.X.X.X&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;The credentials are: anonymous | ShoreTel&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;You will now be in the ShoreTel CLI, but if you want to get into the VXworks CLI, type: &lt;code&gt;gotoshell&lt;/code&gt;&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>To enable telnet on a ShoreTel switch perform the following steps:</p>
<ol>
<li>On the ShoreTel Director server, open CMD and enter: <code>cd &quot;C:\Program Files\Shoreline Communications\Shoreware Server&quot;</code></li>
<li>Next, enter: <code>ipbxctl -telneton X.X.X.X</code> (X.X.X.X is the IP address of your Shoretel switch)</li>
</ol>
<p><em>The command prompt should now say &ldquo;Telnet Enabled&rdquo;</em></p>
<ol start="3">
<li>Now you can telnet (assuming you have telnet enabled on your PC) with: <code>telnet X.X.X.X</code></li>
<li>The credentials are: anonymous | ShoreTel</li>
</ol>
<p>You will now be in the ShoreTel CLI, but if you want to get into the VXworks CLI, type: <code>gotoshell</code></p>
<p>If you want to get back into the ShoreTel CLI, enter: <code>cliStart</code></p>
]]></content:encoded>
    </item>
    <item>
      <title>ShoreTel IP Phone Factory Reset</title>
      <link>https://thenetworkstack.com/shoretel-ip-phone-factory-reset/</link>
      <pubDate>Wed, 15 May 2013 13:20:30 +0000</pubDate>
      <guid>https://thenetworkstack.com/shoretel-ip-phone-factory-reset/</guid>
      <description>&lt;p&gt;If you have an issue that seems to be a phone bug, and have already gone through the process of resetting the phone, you can use these steps to return the phone to factory settings:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Press MUTE then 772667# . The phone will ask if you would like to go into &lt;em&gt;Factory Test Mode&lt;/em&gt;, press # for Yes.&lt;/li&gt;
&lt;li&gt;When prompted for the password, press 1234#&lt;/li&gt;
&lt;li&gt;The screen will be blank, now enter 25327# to clear the phone&lt;/li&gt;
&lt;li&gt;After clearing the data, the phone will reset back into the &lt;em&gt;Factory Test Mode&lt;/em&gt; again.&lt;/li&gt;
&lt;li&gt;Power cycle the phone by unplugging it and plugging it back in. It will start up normally and re-pull all config files from the FTP server.&lt;/li&gt;
&lt;/ol&gt;</description>
      <content:encoded><![CDATA[<p>If you have an issue that seems to be a phone bug, and have already gone through the process of resetting the phone, you can use these steps to return the phone to factory settings:</p>
<ol>
<li>Press MUTE then 772667# . The phone will ask if you would like to go into <em>Factory Test Mode</em>, press # for Yes.</li>
<li>When prompted for the password, press 1234#</li>
<li>The screen will be blank, now enter 25327# to clear the phone</li>
<li>After clearing the data, the phone will reset back into the <em>Factory Test Mode</em> again.</li>
<li>Power cycle the phone by unplugging it and plugging it back in. It will start up normally and re-pull all config files from the FTP server.</li>
</ol>
]]></content:encoded>
    </item>
    <item>
      <title>Synchronizing ESXi time with a Microsoft Domain Controller</title>
      <link>https://thenetworkstack.com/synchronizing-esxi-time-with-a-microsoft-domain-controller/</link>
      <pubDate>Fri, 26 Apr 2013 00:42:52 +0000</pubDate>
      <guid>https://thenetworkstack.com/synchronizing-esxi-time-with-a-microsoft-domain-controller/</guid>
      <description>&lt;p&gt;Steps to synchronize your ESXi host time with a Microsoft DC here:&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&amp;amp;amp;cmd=displayKC&amp;amp;amp;externalId=1035833&#34;&gt;http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&amp;amp;amp;cmd=displayKC&amp;amp;amp;externalId=1035833&lt;/a&gt;&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>Steps to synchronize your ESXi host time with a Microsoft DC here:</p>
<p><a href="http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&amp;amp;cmd=displayKC&amp;amp;externalId=1035833">http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&amp;amp;cmd=displayKC&amp;amp;externalId=1035833</a></p>
]]></content:encoded>
    </item>
    <item>
      <title>Cisco Troubleshooting Commands for Input/Output Drops</title>
      <link>https://thenetworkstack.com/cisco-troubleshooting-commands-for-inputoutput-drops/</link>
      <pubDate>Mon, 08 Apr 2013 19:55:40 +0000</pubDate>
      <guid>https://thenetworkstack.com/cisco-troubleshooting-commands-for-inputoutput-drops/</guid>
      <description>&lt;p&gt;Some common commands that can help troubleshoot packet discards or drops:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;show interface x/x/x

show interface x/x/x stats

show interface x/x/x switching

show cef not-cef-switched

show ip cef switching statistics

show ip cef switching statistics features

show ip traffic

show buffers
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;and if you suspect an issue with CEF, you can use:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;debug ip cef receive
&lt;/code&gt;&lt;/pre&gt;</description>
      <content:encoded><![CDATA[<p>Some common commands that can help troubleshoot packet discards or drops:</p>
<pre tabindex="0"><code>show interface x/x/x

show interface x/x/x stats

show interface x/x/x switching

show cef not-cef-switched

show ip cef switching statistics

show ip cef switching statistics features

show ip traffic

show buffers
</code></pre><p>and if you suspect an issue with CEF, you can use:</p>
<pre tabindex="0"><code>debug ip cef receive
</code></pre>]]></content:encoded>
    </item>
    <item>
      <title>Office 365 Full Access Mailbox Permissions</title>
      <link>https://thenetworkstack.com/office-365-full-access-mailbox-permissions/</link>
      <pubDate>Mon, 01 Apr 2013 05:44:05 +0000</pubDate>
      <guid>https://thenetworkstack.com/office-365-full-access-mailbox-permissions/</guid>
      <description>&lt;p&gt;If you administer an Office365/Exchange Online organization, you might have noticed you cannot modify Full Access/Send As permissions from the web console. You need to change these permissions through PowerShell; here are the required steps:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The first time you do this, make sure the following steps have been completed:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Right click and run PowerShell as Administrator (Start -&amp;gt; Programs -&amp;gt; Accessories -&amp;gt; Windows PowerShell -&amp;gt; Windows PowerShell) on your local PC&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>If you administer an Office365/Exchange Online organization, you might have noticed you cannot modify Full Access/Send As permissions from the web console. You need to change these permissions through PowerShell; here are the required steps:</p>
<p><strong>The first time you do this, make sure the following steps have been completed:</strong></p>
<p>Right click and run PowerShell as Administrator (Start -&gt; Programs -&gt; Accessories -&gt; Windows PowerShell -&gt; Windows PowerShell) on your local PC</p>
<p>Verify you are running PowerShell 2.0 - Enter $PSVersionTable in the prompt and hit enter</p>
<p>Allow execution of scripts by entering the following command: Set-ExecutionPolicy Unrestricted</p>
<p><strong>Once those two steps have been completed, you can start from here:</strong></p>
<ol>
<li>Enter the following command and input your Exchange admin credentials when prompted:</li>
</ol>
<p><code>$LiveCred = Get-Credential</code></p>
<ol>
<li>Once completed, enter this command next:</li>
</ol>
<p><code>$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ -Credential $LiveCred -Authentication Basic -AllowRedirection</code></p>
<ol>
<li>Next, enter the following command to import server-side commands:</li>
</ol>
<p><code>Import-PSSession $Session</code></p>
<ol>
<li>To allow user BossOne to have full access to user WorkerOne, enter the following command:</li>
</ol>
<p><code>Add-MailboxPermission -Identity &quot;WorkerOne&quot; -User BossOne -AccessRights FullAccess</code></p>
<ol>
<li>Verify your work with:</li>
</ol>
<p><code>Get-MailboxPermission Username</code></p>
<ol>
<li>Once completed, discconect from the remote session with:</li>
</ol>
<p><code>Remove-PSSession $Session</code></p>
<p><strong>If you also need to add &ldquo;SendAs&rdquo; permissions, the command is:</strong></p>
<p><code>Add-RecipientPermission &quot;mailboxuser&quot; -AccessRights SendAs -Trustee &quot;user&quot;</code></p>
<p>Verification command is:</p>
<p><code>Get-RecipientPermission Username</code></p>
<p><a href="http://help.outlook.com/en-us/140/cc952755.aspx">http://help.outlook.com/en-us/140/cc952755.aspx</a></p>
]]></content:encoded>
    </item>
    <item>
      <title>Cisco Router Reset Password</title>
      <link>https://thenetworkstack.com/cisco-router-reset-password/</link>
      <pubDate>Mon, 11 Feb 2013 23:07:49 +0000</pubDate>
      <guid>https://thenetworkstack.com/cisco-router-reset-password/</guid>
      <description>&lt;p&gt;Link for instructions on how to reset the password on your 2600 or 2800 series router: &lt;a href=&#34;http://www.cisco.com/en/US/products/hw/routers/ps259/products_password_recovery09186a0080094675.shtml&#34;&gt;cisco.com&lt;/a&gt;&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>Link for instructions on how to reset the password on your 2600 or 2800 series router: <a href="http://www.cisco.com/en/US/products/hw/routers/ps259/products_password_recovery09186a0080094675.shtml">cisco.com</a></p>
]]></content:encoded>
    </item>
    <item>
      <title>Shoretel iPhone Reverse Proxy Server</title>
      <link>https://thenetworkstack.com/shoretel-iphone-reverse-proxy-server-ubuntu-with-apache2/</link>
      <pubDate>Thu, 07 Feb 2013 20:46:14 +0000</pubDate>
      <guid>https://thenetworkstack.com/shoretel-iphone-reverse-proxy-server-ubuntu-with-apache2/</guid>
      <description>&lt;p&gt;This guide is for a Linux beginner, as I had to go through and modify the ShoreTel guide to work with Apache2.  This setup works great, and even passes through AD authentication from the ShoreTel app.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;What you will need:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Ubuntu Server 12.10 (I provisioned a VM with 2 CPU, 2gb RAM, 12gb HD)&lt;/li&gt;
&lt;li&gt;Public DNS Record and Public IP (And NAT on firewall to internal IP)&lt;/li&gt;
&lt;li&gt;Internal DNS Record (for internal clients)&lt;/li&gt;
&lt;li&gt;iPhone with Communicator App installed&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Download Ubuntu Server 12.10&lt;/strong&gt; - &lt;a href=&#34;http://www.ubuntu.com/download/server&#34;&gt;http://www.ubuntu.com/download/server&lt;/a&gt;&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>This guide is for a Linux beginner, as I had to go through and modify the ShoreTel guide to work with Apache2.  This setup works great, and even passes through AD authentication from the ShoreTel app.</p>
<p><strong>What you will need:</strong></p>
<ul>
<li>Ubuntu Server 12.10 (I provisioned a VM with 2 CPU, 2gb RAM, 12gb HD)</li>
<li>Public DNS Record and Public IP (And NAT on firewall to internal IP)</li>
<li>Internal DNS Record (for internal clients)</li>
<li>iPhone with Communicator App installed</li>
</ul>
<p><strong>Download Ubuntu Server 12.10</strong> - <a href="http://www.ubuntu.com/download/server">http://www.ubuntu.com/download/server</a></p>
<ul>
<li>Install the server going through the basic prompts</li>
<li>If you can install the server on a network that has DHCP, the install process should be easier, since you will need to download various components during setup</li>
<li>When prompted for a name, give the FQDN (ex. shoretelproxy.domainname.com)</li>
<li>When prompted to install additional components, highlight the <strong>OpenSSL</strong> server and <strong>LAMP</strong> server options, then press enter to proceed</li>
</ul>
<p><strong>Once your server is ready, set a static IP address</strong></p>
<ul>
<li>Type <code>sudo vi /etc/network/interfaces</code> (You will be prompted for your user password)</li>
<li>Under “auto eth0”, change “iface eth0 inet dhcp” to “iface eth0 inet static” and add IP information to be formatted like this:</li>
</ul>
<pre tabindex="0"><code>auto eth0
iface eth0 inet static
address x.x.x.x
netmask 255.255.255.0
network x.x.x.0
broadcast x.x.x.255
gateway x.x.x.1
dns-nameservers x.x.x.x x.x.x.x
dns-search yourdomain.com
</code></pre><ul>
<li>Press Ctrl + O then Enter to save the configuration.  Press Ctrl + X to exit</li>
<li>Apply the network changes by typing: sudo ifdown eth0 and then sudo ifup eth0</li>
<li>If clients will be accessing the reverse proxy from the internal network, make sure to create an internal DNS record pointing to the static IP</li>
</ul>
<p><strong>Before we continue, let’s update the Ubuntu server</strong></p>
<pre tabindex="0"><code>sudo apt-get update
sudo apt-get upgrade
</code></pre><p><strong>Next, load the additional modules needed for apache2</strong></p>
<pre tabindex="0"><code>sudo a2enmod ssl
sudo a2enmod rewrite
sudo a2enmod proxy
sudo a2enmod proxy_http
sudo a2enmod proxy_connect
</code></pre><p><strong>Restart apache2 with:</strong></p>
<pre tabindex="0"><code>sudo service apache2 restart
</code></pre><p><strong>Now create directories to store the SSL cert</strong></p>
<pre tabindex="0"><code>sudo mkdir /etc/apache2/ssl
sudo mkdir /etc/apache2/ssl/certs
sudo mkdir /etc/apache2/ssl/private
cd /etc/apache2/ssl
</code></pre><p><strong>To create my CSR, I used DigiCert’s OpenSSL wizard here: <a href="https://www.digicert.com/easy-csr/openssl.htm">https://www.digicert.com/easy-csr/openssl.htm</a></strong></p>
<ul>
<li>Move the private key: sudo mv servername_domain_com.key /etc/apache2/ssl/private/</li>
<li>View the csr by entering: cat servername_domain_com.csr</li>
<li>Copy and paste that output into your SSL cert provider form</li>
</ul>
<p><strong>Once you receive the download for your .crt files, you will need to transfer them to your server</strong></p>
<ul>
<li>Download and install free ftp software (like Filezilla or WinSCP) on your PC</li>
<li>FTP to your server IP with your username and password on port 22</li>
<li>Browse to your user directory (/home/username) and drop and drag your CA.crt and server.crt files</li>
<li>Back on the Ubuntu server, we will move the files to the correct location</li>
<li>Type: sudo mv /home/username/filename.crt /etc/apache2/ssl/certs for both crt files</li>
</ul>
<p><strong>You need to tell Apache to listen on your reverse proxy port (5501)</strong></p>
<p>Type: <code>sudo vi /etc/apache2/ports.conf</code><br>
Under “Listen 80”, add the following:</p>
<pre tabindex="0"><code>NameVirtualHost *:5501
Listen 5501
</code></pre><p>Press escape, then type <code>:wq!</code> and enter to save the file and exit</p>
<p><strong>Next, create a new site to use for the reverse proxy</strong></p>
<pre tabindex="0"><code>sudo cp /etc/apache2/sites-available/default /etc/apache2/sites-available/proxy
sudi vi /etc/apache2/sites-available/proxy
</code></pre><p>Edit your config to look like this:</p>
<pre tabindex="0"><code>&lt;VirtualHost *:5501&gt;
ServerAdmin webmaster@localhost
ServerName servername.domain.com

DocumentRoot /var/www/
&lt;Directory /&gt;
Options FollowSymLinks
AllowOverride None

&lt;/Directory&gt;
&lt;Directory /var/www/&gt;
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
&lt;/Directory&gt;

ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
&lt;Directory &#34;/usr/lib/cgi-bin&#34;&gt;
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
&lt;/Directory&gt;

ErrorLog ${APACHE_LOG_DIR}/error.log

# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn

CustomLog ${APACHE_LOG_DIR}/access.log combined

SSLEngine On
SSLProxyEngine On

SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL

SSLCertificateFile /etc/apache2/ssl/certs/server_domain_com.crt
SSLCertificateKeyFile /etc/apache2/ssl/private/server_domain_com.key
SSLCACertificateFile /etc/apache2/ssl/certs/CAfile.crt

RewriteRule ^/theme/(.+)$ /director2/theme/$1 [P]
RewriteRule ^/yui_2.7.0/(.+)$ /director2/yui_2.7.0/$1 [P]
RewriteRule ^/js/(.+)$ /director2/js/$1 [P]

ProxyPass /authenticate/ http://ShoretelDirectorIP/
ProxyPassReverse /authenticate/ http:// ShoretelDirectorIP /

ProxyPass /cas/ http:// ShoretelDirectorIP:5447/
ProxyPassReverse /cas/ http:// ShoretelDirectorIP:5447/

ProxyPass /director2/ http:// ShoretelDirectorIP:5449/
ProxyPassReverse /director2/ http:// ShoretelDirectorIP:5449/

&lt;/VirtualHost&gt;
</code></pre><p>Make sure to save and then exit the file</p>
<p><strong>Now enable your new proxy site</strong></p>
<ul>
<li>Type: sudo a2ensite proxy</li>
<li>Restart apache: sudo service apache2 restart</li>
</ul>
<p>Now you should be able to start the iPhone app, enter the public DNS name, and enable the proxy on port 5501</p>
]]></content:encoded>
    </item>
    <item>
      <title>New Network Subnet Provisioning</title>
      <link>https://thenetworkstack.com/new-network-subnet-provisioning/</link>
      <pubDate>Sat, 12 Jan 2013 00:58:16 +0000</pubDate>
      <guid>https://thenetworkstack.com/new-network-subnet-provisioning/</guid>
      <description>&lt;p&gt;Found the Cisco Design Zone online, which has tons of great resources: &lt;a href=&#34;http://www.cisco.com/en/US/netsol/ns982/networking_solutions_program_home.html&#34;&gt;cisco.com&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Read an article on IPv4 addressing schemes, and best practices for setting up a new network.  Besides separate subnets for the standard data and voice networks, it is recommended to:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&amp;ldquo;Reserve a subnet for physical security. Security requirements can be as simple as a subnet to control door access to a building or something more complex like video surveillance for the entire building. Even if physical security is not required at the initial setup, you should still complete this step.&amp;rdquo;&lt;/li&gt;
&lt;li&gt;&amp;ldquo;Reserve a subnet for facilities. This subnet addresses physical plant requirements such as remote power control, air conditioning, and facilities monitoring, which can now be monitored with new technology on the IP network.&amp;rdquo;&lt;/li&gt;
&lt;li&gt;&amp;ldquo;Allocate public addresses for all production networks in the demilitarized\&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;zone (DMZ), which is the network or networks situated between an ISP edge\&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>Found the Cisco Design Zone online, which has tons of great resources: <a href="http://www.cisco.com/en/US/netsol/ns982/networking_solutions_program_home.html">cisco.com</a></p>
<p>Read an article on IPv4 addressing schemes, and best practices for setting up a new network.  Besides separate subnets for the standard data and voice networks, it is recommended to:</p>
<ol>
<li>&ldquo;Reserve a subnet for physical security. Security requirements can be as simple as a subnet to control door access to a building or something more complex like video surveillance for the entire building. Even if physical security is not required at the initial setup, you should still complete this step.&rdquo;</li>
<li>&ldquo;Reserve a subnet for facilities. This subnet addresses physical plant requirements such as remote power control, air conditioning, and facilities monitoring, which can now be monitored with new technology on the IP network.&rdquo;</li>
<li>&ldquo;Allocate public addresses for all production networks in the demilitarized\</li>
</ol>
<p>zone (DMZ), which is the network or networks situated between an ISP edge\</p>
<p>router and corporate firewalls. An alternative is to use NAT. &quot;
4. &ldquo;Allocate a subnet for remote access, which is generally set up as a virtual\</p>
<p>private network (VPN).&rdquo;
5. &ldquo;Allocate a subnet for network management to provide access to network\</p>
<p>devices such as Ethernet switches, firewalls, routers, etc. This subnet allows\</p>
<p>for easy management with a separate logical network. Cisco SBA uses VLAN\</p>
<p>1 for management of network devices.&rdquo;
6. &ldquo;Create a loopback address to make it easier to manage a single address for\</p>
<p>a router that has multiple interfaces.&rdquo;</p>
<p><a href="http://www.cisco.com/en/US/docs/solutions/SBA/August2012/Cisco_SBA_BN_IPv4AddressingGuide-Aug2012.pdf" title="http://www.cisco.com/en/US/docs/solutions/SBA/August2012/Cisco_SBA_BN_IPv4AddressingGuide-Aug2012.pdf">http://www.cisco.com/en/US/docs/solutions/SBA/August2012/Cisco_SBA_BN_IPv4AddressingGuide-Aug2012.pdf</a></p>
]]></content:encoded>
    </item>
    <item>
      <title>Shoretel SA-100 Service Appliance CLI</title>
      <link>https://thenetworkstack.com/shoretel-sa-100-service-appliance-cli/</link>
      <pubDate>Thu, 20 Dec 2012 18:33:31 +0000</pubDate>
      <guid>https://thenetworkstack.com/shoretel-sa-100-service-appliance-cli/</guid>
      <description>&lt;p&gt;I needed to verify the network config on our Shoretel SA100, but I didn&amp;rsquo;t find the SSH credentials in the provided documentation, so after a few guesses I was able to get in.  Here are the steps I used:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;SSH to the IP address of the conference appliance (I use Putty)&lt;/li&gt;
&lt;li&gt;Username: root Password: ShoreTel&lt;/li&gt;
&lt;li&gt;Enter the command: stcli&lt;/li&gt;
&lt;li&gt;You should now have a couple different prompts allowing you to easily change settings. I used option 2 to verify network settings.&lt;/li&gt;
&lt;li&gt;Press 0 to exit the stcli and then type exit to close your SSH session&lt;/li&gt;
&lt;/ol&gt;</description>
      <content:encoded><![CDATA[<p>I needed to verify the network config on our Shoretel SA100, but I didn&rsquo;t find the SSH credentials in the provided documentation, so after a few guesses I was able to get in.  Here are the steps I used:</p>
<ol>
<li>SSH to the IP address of the conference appliance (I use Putty)</li>
<li>Username: root Password: ShoreTel</li>
<li>Enter the command: stcli</li>
<li>You should now have a couple different prompts allowing you to easily change settings. I used option 2 to verify network settings.</li>
<li>Press 0 to exit the stcli and then type exit to close your SSH session</li>
</ol>
]]></content:encoded>
    </item>
    <item>
      <title>Solarwinds 10.4 Indexes with Fragmentation</title>
      <link>https://thenetworkstack.com/solarwinds-10-4-indexes-with-fragmentation/</link>
      <pubDate>Wed, 12 Dec 2012 20:57:35 +0000</pubDate>
      <guid>https://thenetworkstack.com/solarwinds-10-4-indexes-with-fragmentation/</guid>
      <description>&lt;p&gt;The Solarwinds event log was giving me this error: &amp;ldquo;Indexes with fragmentation over 90% found during DB maintenance.&amp;rdquo;&lt;/p&gt;
&lt;p&gt;I found this Solarwinds article giving me the fix &lt;a href=&#34;http://knowledgebase.solarwinds.com/kb/questions/3202/Critical+index+fragmentation+detected+during+database+maintenance&#34;&gt;HERE&lt;/a&gt;, but unfortunately the command is slightly different than the one they posted (maybe NPM 10.4 changed the tables slightly).  The command they have you paste in a SQL query is:&lt;/p&gt;
&lt;p&gt;UPDATE dbo.Settings SET CurrentValue = 1 WHERE SettingID LIKE &amp;lsquo;dbm-defragmentation-enabled%&amp;rsquo;&lt;/p&gt;
&lt;p&gt;But having the % sign was giving me an error, so the updated command should be:&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>The Solarwinds event log was giving me this error: &ldquo;Indexes with fragmentation over 90% found during DB maintenance.&rdquo;</p>
<p>I found this Solarwinds article giving me the fix <a href="http://knowledgebase.solarwinds.com/kb/questions/3202/Critical+index+fragmentation+detected+during+database+maintenance">HERE</a>, but unfortunately the command is slightly different than the one they posted (maybe NPM 10.4 changed the tables slightly).  The command they have you paste in a SQL query is:</p>
<p>UPDATE dbo.Settings SET CurrentValue = 1 WHERE SettingID LIKE &lsquo;dbm-defragmentation-enabled%&rsquo;</p>
<p>But having the % sign was giving me an error, so the updated command should be:</p>
<p><strong>UPDATE dbo.Settings SET CurrentValue = 1 WHERE SettingID LIKE &lsquo;dbm-defragmentation-enabled&rsquo;</strong></p>
<p>Solarwinds does not give you a query to actually verify your work, but this sql query will show you that your CurrentValue = 1:</p>
<p><strong>Select *</strong><br>
<strong>from dbo.Settings where SettingID = &lsquo;dbm-defragmentation-enabled&rsquo;</strong></p>
<p>**I&rsquo;m using SQL Server 2008 installed on Windows Server 2008R2</p>
]]></content:encoded>
    </item>
    <item>
      <title>XenServer Networking Configuration</title>
      <link>https://thenetworkstack.com/xenserver-networking-configuration/</link>
      <pubDate>Tue, 27 Nov 2012 02:18:34 +0000</pubDate>
      <guid>https://thenetworkstack.com/xenserver-networking-configuration/</guid>
      <description>&lt;p&gt;Useful information I gathered regarding setting up Citrix XenServer 6.0 networking:&lt;/p&gt;
&lt;p&gt;Bond two NICs dedicated for Management Traffic.  Since there will be an IP address assigned to the NICs, the bond can only operate on an active/passive basis.  This management bond will also be used for pool communication and live migrations.&lt;/p&gt;
&lt;p&gt;Bond two NICs for VM traffic, this L2 bond should be set to active/active for maximum bandwidth usage.&lt;/p&gt;
&lt;p&gt;Bond two NICs for iSCSI storage traffic.  Since this will be an L3 IP interface, the bond will active/passive.  If you need additional bandwidth, implement multi-pathing or high bandwidth NICs (10G)&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>Useful information I gathered regarding setting up Citrix XenServer 6.0 networking:</p>
<p>Bond two NICs dedicated for Management Traffic.  Since there will be an IP address assigned to the NICs, the bond can only operate on an active/passive basis.  This management bond will also be used for pool communication and live migrations.</p>
<p>Bond two NICs for VM traffic, this L2 bond should be set to active/active for maximum bandwidth usage.</p>
<p>Bond two NICs for iSCSI storage traffic.  Since this will be an L3 IP interface, the bond will active/passive.  If you need additional bandwidth, implement multi-pathing or high bandwidth NICs (10G)</p>
<p>Bond two NICs for Provisioning services (assuming you are running a XenDesktop environment)  This is a great article (<a href="http://blogs.citrix.com/2011/02/22/xenserver-for-xendesktop-how-many-network-cards-do-i-need/">http://blogs.citrix.com/2011/02/22/xenserver-for-xendesktop-how-many-network-cards-do-i-need/</a>) which states that &ldquo;PVS typically streams 166MB of data across the network during the boot process of a single Windows 7 x86 desktop&rdquo;.</p>
<p>On your physical switch network, make sure you enable portfast on the interfaces connecting to your XenServer hosts, and disable port security and BPDU Guard.  You can enable trunking on the ports you need, but I would make the management interfaces access ports.</p>
<p>All information was taken from this very useful guide (<a href="http://support.citrix.com/servlet/KbServlet/download/28782-102-666382/XS-60-design-network_advanced.pd">http://support.citrix.com/servlet/KbServlet/download/28782-102-666382/XS-60-design-network_advanced.pdf</a>) and the aforementioned XenDesktop guide.</p>
]]></content:encoded>
    </item>
    <item>
      <title>Solarwinds NPM 10.4 Upgrade</title>
      <link>https://thenetworkstack.com/solarwinds-npm-10-4-upgrade/</link>
      <pubDate>Tue, 27 Nov 2012 02:17:04 +0000</pubDate>
      <guid>https://thenetworkstack.com/solarwinds-npm-10-4-upgrade/</guid>
      <description>&lt;p&gt;Upgraded our Solarwinds NPM from 10.3 to 10.4 with these steps for a problem-free install:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Create solarwinds database backup on SQL server&lt;/li&gt;
&lt;/ol&gt;
&lt;ul&gt;
&lt;li&gt;Login to SQL Management Studio -&amp;gt; Right-click SolarWindsOrion Database -&amp;gt; Tasks -&amp;gt; Backup&lt;/li&gt;
&lt;/ul&gt;
&lt;ol&gt;
&lt;li&gt;Upgrade Solarwinds NPM server&lt;/li&gt;
&lt;/ol&gt;
&lt;ul&gt;
&lt;li&gt;Log into Solarwinds NPM server as local administrator&lt;/li&gt;
&lt;li&gt;Extract 10.4 upgrade and right-click the NPM 10.4 install and select “Run as administrator”&lt;/li&gt;
&lt;li&gt;Run through the basic prompts and click finish&lt;/li&gt;
&lt;li&gt;The Configuration wizard will start up showing you your existing SQL server/login info (assuming you are using an external SQL server)&lt;/li&gt;
&lt;li&gt;Confirm on the final screen that the database will be upgraded and services installed and click finish&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I was able to login after this with no problem and start using the new hardware monitoring features for network devices.  If you have any issues, I would first try shutting down all services with Orion Service Manager (under All Programs -&amp;gt; Solarwinds Orion -&amp;gt; Advanced Features) and then starting up all services.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>Upgraded our Solarwinds NPM from 10.3 to 10.4 with these steps for a problem-free install:</p>
<ol>
<li>Create solarwinds database backup on SQL server</li>
</ol>
<ul>
<li>Login to SQL Management Studio -&gt; Right-click SolarWindsOrion Database -&gt; Tasks -&gt; Backup</li>
</ul>
<ol>
<li>Upgrade Solarwinds NPM server</li>
</ol>
<ul>
<li>Log into Solarwinds NPM server as local administrator</li>
<li>Extract 10.4 upgrade and right-click the NPM 10.4 install and select “Run as administrator”</li>
<li>Run through the basic prompts and click finish</li>
<li>The Configuration wizard will start up showing you your existing SQL server/login info (assuming you are using an external SQL server)</li>
<li>Confirm on the final screen that the database will be upgraded and services installed and click finish</li>
</ul>
<p>I was able to login after this with no problem and start using the new hardware monitoring features for network devices.  If you have any issues, I would first try shutting down all services with Orion Service Manager (under All Programs -&gt; Solarwinds Orion -&gt; Advanced Features) and then starting up all services.</p>
]]></content:encoded>
    </item>
    <item>
      <title>Shoretel SA-100 Service Appliance DMZ Ports</title>
      <link>https://thenetworkstack.com/shoretel-sa-100-service-appliance-dmz-ports/</link>
      <pubDate>Sat, 20 Oct 2012 00:46:50 +0000</pubDate>
      <guid>https://thenetworkstack.com/shoretel-sa-100-service-appliance-dmz-ports/</guid>
      <description>&lt;p&gt;If you are placing your SA-100 Service (Conference) Appliance in a DMZ, you have quite a few ports that need to be opened up to your internal Shoretel network.  These are the ports listed in the Shoretel install guide - but listed in order instead of a non-sequential table:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;UDP:&lt;/strong&gt;&lt;br&gt;
53&lt;br&gt;
67&lt;br&gt;
111&lt;br&gt;
123&lt;br&gt;
162&lt;br&gt;
5004&lt;br&gt;
5440&lt;br&gt;
5441&lt;br&gt;
5442&lt;br&gt;
5443&lt;br&gt;
5445&lt;br&gt;
5446&lt;br&gt;
5450&lt;br&gt;
5451&lt;br&gt;
5458&lt;br&gt;
5463&lt;br&gt;
5466&lt;br&gt;
5500-5600&lt;br&gt;
10000-10550&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;TCP:&lt;/strong&gt;&lt;br&gt;
20&lt;br&gt;
21&lt;br&gt;
25&lt;br&gt;
53&lt;br&gt;
80&lt;br&gt;
111&lt;br&gt;
443&lt;br&gt;
4306&lt;br&gt;
4308&lt;br&gt;
4309&lt;br&gt;
5222&lt;br&gt;
5432&lt;br&gt;
5449&lt;br&gt;
5450&lt;br&gt;
5457&lt;br&gt;
5466&lt;br&gt;
5469&lt;br&gt;
5500-5600&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>If you are placing your SA-100 Service (Conference) Appliance in a DMZ, you have quite a few ports that need to be opened up to your internal Shoretel network.  These are the ports listed in the Shoretel install guide - but listed in order instead of a non-sequential table:</p>
<p><strong>UDP:</strong><br>
53<br>
67<br>
111<br>
123<br>
162<br>
5004<br>
5440<br>
5441<br>
5442<br>
5443<br>
5445<br>
5446<br>
5450<br>
5451<br>
5458<br>
5463<br>
5466<br>
5500-5600<br>
10000-10550</p>
<p><strong>TCP:</strong><br>
20<br>
21<br>
25<br>
53<br>
80<br>
111<br>
443<br>
4306<br>
4308<br>
4309<br>
5222<br>
5432<br>
5449<br>
5450<br>
5457<br>
5466<br>
5469<br>
5500-5600</p>
]]></content:encoded>
    </item>
    <item>
      <title>VMware Insufficient video RAM</title>
      <link>https://thenetworkstack.com/vmware-insufficient-video-ram/</link>
      <pubDate>Fri, 19 Oct 2012 17:00:07 +0000</pubDate>
      <guid>https://thenetworkstack.com/vmware-insufficient-video-ram/</guid>
      <description>&lt;p&gt;Looking through my ESXi event log I saw this message:&lt;/p&gt;
&lt;p&gt;&amp;ldquo;Warning message on &lt;strong&gt;server&lt;/strong&gt;: Insufficient video RAM. The maximum resolution of the virtual machine will be limited to 1672x1254. To use the configured maximum resolution of 2560x1600, increase the amount of video RAM allocated to this virtual machine by setting svgavramSize=&amp;ldquo;16384000&amp;rdquo; in the virtual machine&amp;rsquo;s configuration file.&amp;rdquo;&lt;/p&gt;
&lt;p&gt;This is already detailed in a VMware kb article: &lt;a href=&#34;http://kb.vmware.com/selfservice/microsites/search.do?cmd=displayKC&amp;amp;docType=kc&amp;amp;externalId=1024990&amp;amp;sliceId=1&amp;amp;docTypeID=DT_KB_1_1&amp;amp;dialogID=281540115&amp;amp;stateId=1%200%20281538732&#34;&gt;kb.vmware.com&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The quick and easy fix is:&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>Looking through my ESXi event log I saw this message:</p>
<p>&ldquo;Warning message on <strong>server</strong>: Insufficient video RAM. The maximum resolution of the virtual machine will be limited to 1672x1254. To use the configured maximum resolution of 2560x1600, increase the amount of video RAM allocated to this virtual machine by setting svgavramSize=&ldquo;16384000&rdquo; in the virtual machine&rsquo;s configuration file.&rdquo;</p>
<p>This is already detailed in a VMware kb article: <a href="http://kb.vmware.com/selfservice/microsites/search.do?cmd=displayKC&amp;docType=kc&amp;externalId=1024990&amp;sliceId=1&amp;docTypeID=DT_KB_1_1&amp;dialogID=281540115&amp;stateId=1%200%20281538732">kb.vmware.com</a></p>
<p>The quick and easy fix is:</p>
<ol>
<li>Shut down your VM</li>
<li>Edit your VM settings</li>
<li>Change the Video card total RAM to 16mb</li>
<li>Boot up your VM and no error message</li>
</ol>
]]></content:encoded>
    </item>
    <item>
      <title>Shoretel - Personalized Call Handling Rules</title>
      <link>https://thenetworkstack.com/shoretel-personalized-call-handling-rules/</link>
      <pubDate>Sat, 10 Mar 2012 18:50:43 +0000</pubDate>
      <guid>https://thenetworkstack.com/shoretel-personalized-call-handling-rules/</guid>
      <description>&lt;p&gt;Recently I had a user ask me:&lt;/p&gt;
&lt;p&gt;&amp;ldquo;Can I have all external calls go to voicemail, but all internal calls still ring my desk phone&amp;rdquo;&lt;/p&gt;
&lt;p&gt;Well, if you have the professional license for the Shoretel Communcator, then you have access to a very powerful set of tools called &amp;ldquo;Personalized Call Handling&amp;rdquo;.  These rules can be created from the user&amp;rsquo;s Communicator software (you can&amp;rsquo;t create rules in Director 12.1,  only disable/enable/delete them).  To access the rules:&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>Recently I had a user ask me:</p>
<p>&ldquo;Can I have all external calls go to voicemail, but all internal calls still ring my desk phone&rdquo;</p>
<p>Well, if you have the professional license for the Shoretel Communcator, then you have access to a very powerful set of tools called &ldquo;Personalized Call Handling&rdquo;.  These rules can be created from the user&rsquo;s Communicator software (you can&rsquo;t create rules in Director 12.1,  only disable/enable/delete them).  To access the rules:</p>
<ol>
<li>Open the user&rsquo;s Communicator software, click &ldquo;Tools&rdquo; and then &ldquo;Options&rdquo; (Ctrl + O)</li>
<li>On the left-hand side, click &ldquo;Personalized Call Handling&rdquo;</li>
<li>Click &ldquo;New Rule&rdquo;</li>
<li>Under &ldquo;Choose Condition to handle inbound calls&rdquo;, I selected &ldquo;Phone Number Match&rdquo; and then clicked &ldquo;Phone Number Match&rdquo; in the box below</li>
<li>Under &ldquo;Match Type&rdquo;, I select &ldquo;Every External Number&rdquo; and hit &ldquo;Ok&rdquo;</li>
<li>Click &ldquo;Next&rdquo;, and select &ldquo;Forward call to voice mail&rdquo; and click Next.</li>
<li>Finally, name your rule and click &ldquo;Finish&rdquo;.</li>
</ol>
<p>**Remember, the rule will not be in affect until you click &ldquo;Apply&rdquo;!</p>
<p>It takes the user 3 clicks to enable/disable the rule, and unfortunately I don&rsquo;t see a way to link Personalized Call Handling rules to the different Call Handling Modes&hellip;maybe in the future?</p>
]]></content:encoded>
    </item>
  </channel>
</rss>
