Showing posts with label Cisco. Show all posts
Showing posts with label Cisco. Show all posts

Thursday, January 4, 2018


Cisco Software-Defined Access (SDA) -  Published December 7th, 2017 by Jeff Dixon

It’s that time again, posting some more of my latest work.

Cisco Campus Fabric, ACI, APIC-EM, VXLAN, LISP, Cisco TrustSec SGT, DNA Center, Software-Defined Networking (SDN)

If any of that interest you, you come to the right place. If you don’t know what it is, you’re also in the right place. Weather you a leader, network engineer, or just learning, there is something for everyone here.

This paper is a ground up discussion covering Cisco’s unique approach called software-defined access. The general idea is the creation of a single plane-of-glass management system to provision, secure, monitor, and analyze your network.

This is a very exciting advancement and this paper will cover all the information you need to start your journey down this path.
Click Here to Read the Paper!


Software-Defined Access: Beyond the Hype


Wednesday, July 20, 2016

Cisco ASA Firepower Threat Defense

Introduction to Cisco Firepower Threat Defense
Check out my newest paper on Cisco ASA's discussing the Firepower services and Cisco's newest FTD Unified Image.
 
 
 

Friday, June 6, 2014

Find unused ports on a Cisco Switch

Have you ever had a switch that had every port connected to a cable and you needed to add one more? Are any of those ports unused even though they are connected? I bet so! But how do you know which ones??

Some of you may have nice utilities to help monitor your network and that may help you with this sort of situation. I’ve seen and used a few myself that help tell you just that. However, for those that don’t have such a tool at their disposal or if you’re just looking for an alternative method this is a neat combination of commands I came across that can come in very handy.

What I’m doing is creating an alias (free_ports) and you can name it anything you want. This will let me run the command easier and quicker next time. It will output a list of interfaces along with a listing of when the port was last active. So maybe it’s not full proof but it gives you a pretty good idea of where you might have a free port. If it last saw activity 2 years ago, odds are you are probably safe in thinking that port is now free.

alias exec free_ports show int | i proto.*notconnect|proto.*administratively down|Last in.* [8-9]w|Last in.*[0-9][0-9]w|[0-9]y|disabled|Last input never, output never, output hang never

Switch#free_ports

Of course you don’t have to create an alias and can always just run the base command itself:

show int | i proto.*notconnect|proto.*administratively down|Last in.* [8-9]w|Last in.*[0-9][0-9]w|[0-9]y|disabled|Last input never, output never, output hang never

This has been a very helpful trick for me a times and I hope it is for you as well!

Thursday, January 13, 2011

Creating an etherchannel to an HP Windows Server


This will very briefly describe how to setup a port-channel connection between a Cisco switch and an HP server.

*Note - HP Server, Discovered Bug (Must manually set speed to 1000 and duplex to full on server for proper operation.)

On the server, set teaming to 802.3ad Dynamic with Fault Tolerance (team will fail until switch is configured)

Configure interfaces with port commands shown on interface below

6509#sh run int gi2/25

interface GigabitEthernet2/25
switchport trunk encapsulation dot1q
switchport mode trunk
switchport nonegotiate
spanning-tree portfast trunk
channel-group 100 mode active

Configure port-channel with commands shown on interface below

6509#sh run int po 100

interface Port-channel100
description ServerPO
switchport trunk encapsulation dot1q
switchport mode trunk
switchport nonegotiate
mls qos trust dscp

View port-channel status

6509# sh ether 100 sum
Flags:  D - down        P - bundled in port-channel
        I - stand-alone s - suspended
        H - Hot-standby (LACP only)
        R - Layer3      S - Layer2
        U - in use      f - failed to allocate aggregator

        M - not in use, minimum links not met
        u - unsuitable for bundling
        w - waiting to be aggregated
Number of channel-groups in use: 5
Number of aggregators:           5

Group  Port-channel  Protocol    Ports
------+-------------+-----------+----------------------
100    Po100(SU)       LACP      Gi2/25(P)  Gi3/25(P)

 See more info here:



Friday, November 19, 2010

Configure a Port-Channel on a Cisco Switch to connect to VMware ESX Server


By Jeff Dixon
November 19, 2010

Connecting an ESX server often involves connecting a number of network runs to a switch. Here I am going to presume to have four data connections for ESX that I’m assigning in the vSwitch for the VM’s to use. I’m also going to presume to be using all Cisco Switches.

If I were to plug these into a switch and let them run as is I would have some advantage over a single link but not as much as I could have. The result is any outbound traffic can use all four links, however, inbound will only use one.

So what if you want to step this up a notch and get the best utilization possible by allowing all four links to process traffic both inbound and outbound. The answer is, I need to create a port-channel on the physical switch. This bonds the four links on the Cisco Switch so that they are bonded as one on both sides. This setup allows you to gain additional bandwidth and redundancy.

The first step is that on the vSwitch, the load balancing method must be set to “Route based on ip hash”. If this is not set, you will not communicate back to the server once you enable the port channel.

The rest is done on the Cisco Switch.

Before we get started on the ports, ensure the load balancing method is in the correct state on the switch:

sh etherchannel load balance

You want this to be set to src-dst-ip, if it’s not you can change it with this command:

 port-channel load balance src-dst-ip

Once you have verified your load balancing method it’s time to access your ports:

                int range gi1/0/1 -2 , gi1/0/1 -2

Join the ports to the port channel:

                Channel-group 1 mode on

During this step, mode options allow you to choose pagp, lacp, and on. ESX does not support either protocol pagp (Cisco Proprietary) or lacp (industry standard). Setting the mode to “on” doesn’t use either protocol and simply sets the port-channel to on.

Additionally, any commands entered onto the port after the channel-group command should also show up on the port-channel interface. Entering this command in the beginning allows you to configure that port while you configure these. Otherwise you will need to go back and configure the port-channel interface.

channel-group 1 mode on will create interface port-channel 1 (the group number determines the interface number)

                When using pagp or lacp this is also known as an etherchannel

Set trunking:

switchport trunk encapsulation dot1q
switchport mode trunk
switchport nonegotiate
spanning-tree portfast trunk

ESX doesn’t support DTP so using the nonegotiate command disables DTP

Additionally, you will want to ensure that all settings on each port are the same; if they are not they may not all become active on the port channel.

I noted an issue on a 6509 switch where the flowcontrol on the ports wouldn’t match up by default. On all interfaces I manually set the flowcontrol to resolve, for ex: flowcontrol send off

I would also add a description to the ports for future reference before moving on.

This should be all you need on the interfaces; however, you may desire to add QoS or other commands if needed.

Ensure the port-channel interface shows at least these commands:  (sh int port-channel 1)

switchport trunk encapsulation dot1q
switchport mode trunk
switchport nonegotiate

At this point everything should be up.

You can check the status with these commands. If something is not active, likely there is some difference between your ports.

sh etherchannel 1 [sum, detail]

This will show you the port status for each interface in the port-channel

sh protocol | include Port-channel

This will show you the port status of the port-channel interface itself. It should be in an up state.


For more information, there is a very good post about this here: