How to configure SPAN on a Nexus 55xx
Posted: April 13, 2013 Filed under: Cisco Nexus, Networking | Tags: 5k span, cisco nexus, configure span, how to configure span, Nexus, nexus span, span, switch port analzyer 4 CommentsI’ve recently needed to configure SPAN a couple times in the lab at work to troubleshoot some issues – or at least to see what I could see. It wasn’t exactly glamorous work, but somebody had to do it. Now, I had to look it up the first time because it had probably been a good year since I’d done it. The document I used is here. Well, the second time I needed to configure SPAN was shortly after the first. I was annoyed that I had to look at the same document and skip over all the paragraphs to get to the commands, then sort out the FC ports and other commands I didn’t need. So for my benefit, and perhaps yours, here’s my short and sweet version of how to configure SPAN on a Nexus 5k.
Create SPAN session ================================= switch# conf t switch(config)# monitor session 1 Configure destination port (destination cannot be a FEX port or a port-channel!) ================================= switch# conf t switch(config)# interface ethernet 1/15 switch(config-if)# switchport monitor switch(config-if)# exit switch(config)# monitor session 1 switch(config-monitor)# destination interface ethernet 1/15 Configure source port (or VLAN) ================================= switch(config-monitor)# source interface ethernet 101/1/10 switch(config-monitor)# source interface ethernet 101/1/31 or switch(config-monitor)# source vlan 215 Activate a SPAN session ================================== switch(config)# no monitor session 1 shut Display SPAN session ================================== switch# show monitor or switch# show monitor session 1
And a cut-and-paste version for those who like quickies.
conf t monitor session 1 exit int eth 1/15 switchport monitor exit monitor session 1 destination int eth 1/15 source int eth 101/1/10 source int eth 101/1/31 exit no monitor session 1 shut
nice one! just want to point out the following:
switch(config)# interface ethernet 101/1/20
switch(config-if)# switchport monitor
don’t think FEX host post can be destination port though?
It is wrongly configured
it is etherenet 1/15
Cool – thanks for noticing. I think I fixed it along with updating that awful blockquote to an easy to use code block.
Wow. I just noticed that someone else has already caught that error but I failed to update it. Shame on me! Thanks for letting me know gents!