<?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>Cisco on The Network Stack</title>
    <link>https://thenetworkstack.com/tags/cisco/</link>
    <description>Recent content in Cisco on The Network Stack</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Mon, 26 Mar 2018 14:25:52 +0000</lastBuildDate>
    <atom:link href="https://thenetworkstack.com/tags/cisco/index.xml" rel="self" type="application/rss+xml" />
    <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>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>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>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>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>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>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>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>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>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>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>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>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>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>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>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>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>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>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>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>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>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>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>
  </channel>
</rss>
