cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
426
Views
1
Helpful
7
Replies

SPAN config in NEXUS Switch

shaikh.zaid22
Level 3
Level 3

Hello,

I have nexus 9380 pre-configured with monitor session 1 and 2 for SPAN.

Session 1 shows source as all port channels destination interface eth1/2

Session 2 has source all vlans > destination interface eth1/20

Now when am creating a session 3 and adding source vlan all to forward traffic to a new vapt server, i get a error saying vlans have been used in other session. I also tried with port-channels as source, then it says destination interface eth1/30 is already mentioned in session1.

How can i achieve the below scenario :

Want to forward  span traffic for all vlans to a new vapt server on destination interface eth1/30?

If i use the same session 2 with destination interface range eth1/20, eth1/30 then also it pops an error.

Need guidance.

7 Replies 7

balaji.bandi
Hall of Fame
Hall of Fame

try instead of range , each interface as below :

destination interface ethernet 1/20
destination interface ethernet 1/30

make sure follow the guide lines :

https://www.cisco.com/c/en/us/td/docs/switches/datacenter/nexus9000/sw/6-x/system_management/configuration/guide/b_Cisco_Nexus_9000_Series_NX-OS_System_Management_Configuration_Guide/sm_14span.html 

BB

=====Preenayamo Vasudevam=====

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

@balaji

I tried the above but it give the same Error: saying the eth1/30 is used in other source port-channel.

Since there are existing 2 Monitor sessions which are configured with source as all port channel and other session with source as all vlans.

How do i create a new monitor with source with all vlans, it throws as error as already used 

eth1/30 is used in other source port-channel.

You always need to use the port which is not in source or destination to work. find out free port and use for destination.

make sure follow the guide lines :

https://www.cisco.com/c/en/us/td/docs/switches/datacenter/nexus9000/sw/6-x/system_management/configuration/guide/b_Cisco_Nexus_9000_Series_NX-OS_System_Management_Configuration_Guide/sm_14span.html 

BB

=====Preenayamo Vasudevam=====

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Actually, the port eth1/30 is not actually in any port channel, it is an unused port, however, when i do > show monitor session al

I see Session 1 is configured with all port channels and ports(which includes unused ports) as Source, how can i remove the unused ports from the Session1 configuration.

 

I am 

Can you post the configuration bit to understand what configured. along with 

show monitor session 1

show monitor session 2

you can try below example :

switch(config)# interface ethernet 1/10
switch(config-if)# no switchport monitor

you can only use control port as below (same reference you can see the guide i provided)

source {interface type [rx | tx | both ] | vlan {number | range} [rx ]}

Example:

switch(config-monitor)# source interface ethernet 2/1-3, ethernet 3/1 rx

Example:

switch(config-monitor)# source interface port-channel 2

Example:

switch(config-monitor)# source interface sup-eth 0 both

Example:

switch(config-monitor)# source vlan 3, 6-8 rx

Example:

switch(config-monitor)# source interface ethernet 101/1/1-3

 

BB

=====Preenayamo Vasudevam=====

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

The configuration is :

Session 1 shows as local

source vlan all

destination port-channel 30, 40,50 (each po has interfaces with in even the unused ports like eth1/30)

Under the Eth1/30 interface configuration as follows:

config# int eth1/30

          switchport

          switchport monitor

         no shutdown

 

Thats it

Ensure the interface is not included in the source before using it in the destination, as I mentioned earlier, to ensure it works as expected.

If that is in the source, you need to remove the configuration to get the outcome you're looking for.

If the destination port-channel is already in use (and the port is available), you need to choose a different unused port and add it to the requirement.

Always read the guidelines.

BB

=====Preenayamo Vasudevam=====

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help