02-25-2025 09:26 PM
Need help on one scenario i have. I have one IP Phone recording solution which need a port mirroring, where source IP phones are connected on multiple switches in our network and recording server is connected on one of our switch which will be destination for all. VLAN is 115, passed on trunk to every switch and respective ports are configured as access port of this vlan on each switch. What and how i can achieve this. I tried connecting IP phone and recording software on one switch and used monitor session source and monitor source destination, it work, but if multiple switch i am not able to understand how to do this. If anyone can help on this please.
02-25-2025 09:51 PM - edited 02-25-2025 09:52 PM
Hello @anilgupta1974
Please see for RSPAN configuration since the source IP phones are spread across multiple switches, and the recording server is on a different switch.
02-25-2025 09:55 PM
To achieve port mirroring (SPAN) across multiple switches in your network for your IP phone recording solution, you need to consider the following:
To mirror traffic from multiple switches to a single destination (the recording server), you can use RSPAN (Remote SPAN) or ERSPAN (if supported).
Let me know, if you need details of how to enable these solutions. I will be more than happy to help!
Hope This Helps!!!
AshSe
Community Etiquette:
02-25-2025 11:25 PM
Hi AshSe, It would be great help if you can guide me with the commands i need to give on all the switches to configure RSPAN so that source IP phones on VLAN 115 traffic can go from all the switches to the switch, where destination server is connected on my network with VLAN 115 access. I will configure all the switches one by one and test if it works. Thanks in advance for helping me out on this.
02-26-2025 12:05 AM
Please check here: https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst9200/software/release/16-10/configuration_guide/nmgmt/b_1610_nmgmt_9200_cg/configuring_span_and_rspan.html
02-26-2025 12:10 AM - edited 02-26-2025 12:19 AM
@anilgupta1974 wrote:
Hi AshSe, It would be great help if you can guide me with the commands i need to give on all the switches to configure RSPAN so that source IP phones on VLAN 115 traffic can go from all the switches to the switch, where destination server is connected on my network with VLAN 115 access. I will configure all the switches one by one and test if it works. Thanks in advance for helping me out on this.
from this post, it seems that both Source (IP phones) and Destination (Recording Server) are in the same VLAN 115. Is that correct?
02-26-2025 12:24 AM
Yes, my source devices and destination server are in vlan 115
02-26-2025 12:39 AM
Here’s a step-by-step guide to configure RSPAN for VLAN 115 traffic:
On all switches in the path (source, intermediate, and destination switches), create a dedicated RSPAN VLAN. This VLAN will carry the mirrored traffic across the network.
configure terminal
vlan <RSPAN-VLAN-ID> # Choose an unused VLAN ID for RSPAN
remote-span
exit
Example:
configure terminal
vlan 999
remote-span
exit
Note: The remote-span
keyword is required to designate this VLAN as an RSPAN VLAN.
On the switch where the IP phones (source traffic) are connected:
Define a monitor session to capture traffic from VLAN 115.
Set the RSPAN VLAN as the destination for the mirrored traffic.
configure terminal
monitor session 1 source vlan 115
monitor session 1 destination remote vlan <RSPAN-VLAN-ID>
exit
Example:
configure terminal
monitor session 1 source vlan 115
monitor session 1 destination remote vlan 999
exit
Explanation:
monitor session 1 source vlan 115
: Specifies VLAN 115 as the source of the mirrored traffic.monitor session 1 destination remote vlan 999
: Sends the mirrored traffic to the RSPAN VLAN (999 in this case).On all intermediate switches between the source and destination switches:
Ensure the RSPAN VLAN is allowed on the trunk links.
configure terminal
interface <trunk-interface>
switchport trunk allowed vlan add <RSPAN-VLAN-ID>
exit
Example:
configure terminal
interface GigabitEthernet1/0/1
switchport trunk allowed vlan add 999
exit
Explanation:
On the switch where the monitoring server is connected:
Define a monitor session to capture traffic from the RSPAN VLAN.
Specify the destination port where the monitoring server is connected.
configure terminal
monitor session 1 source remote vlan <RSPAN-VLAN-ID>
monitor session 1 destination interface <destination-interface>
exit
Example:
configure terminal
monitor session 1 source remote vlan 999
monitor session 1 destination interface GigabitEthernet1/0/2
exit
Explanation:
monitor session 1 source remote vlan 999
: Specifies the RSPAN VLAN (999) as the source of the mirrored traffic.monitor session 1 destination interface GigabitEthernet1/0/2
: Sends the mirrored traffic to the monitoring server connected to GigabitEthernet1/0/2
.On each switch, verify the monitor session configuration:
show monitor session 1
Verify that the RSPAN VLAN is active and allowed on trunk links:
show vlan brief
show interfaces trunk
On the destination switch, ensure the monitoring server is receiving the mirrored traffic.
By following these steps, you should be able to configure RSPAN to monitor VLAN 115 traffic from all switches to the destination switch where the monitoring server is connected.
Kindly let me know if you have any question regarding why VLAN 999 is being configured.
Hope This Helps!!!
AshSe
Community Etiquette:
02-26-2025 12:52 AM
That is so helpful ! Thank you so much for these detailed steps !! It is now much clear to me how to use and configure it. Allow me to test it and will confirm you soon.
02-26-2025 06:00 AM
Hi AshSe, i tried below configuration, but still destination system is not getting traffic mirrored.
***Switch 1 C9200L on which IP phones are connected***
configuration terminal
vlan 1501
remote-span
exit
configure terminal
monitor session 1 source interface gi1/0/x,gi1/0/y, gi1/0/z
monitor session 1 destination remote vlan 1501
exit
configure terminal
inter gi1/0/n
switch trunk allowed vlan add 1501
***Switch 2 C9200L which is passing on this vlan on trunk to further destination switch***
configuration terminal
vlan 1501
remote-span
exit
configure terminal
inter gi1/0/n
switch trunk allowed vlan add 1501
***Switch 3 C9500 where destination server is connected***
configure terminal
vlan 1501
remote-span
exit
configure terminal
inter te1/0/n
switch trunk allowed vlan add 1501
exit
configure terminal
monitor session 1 source remote vlan 1501
monitor session 1 destination inter te1/0/x
exit
02-26-2025 07:05 PM
***Switch 1 C9200L on which IP phones are connected***configuration terminal
vlan 1501
remote-span
exitconfigure terminal
monitor session 1 source interface gi1/0/x,gi1/0/y, gi1/0/z
Check and configure:
monitor session 1 source vlan 115
configure terminal
inter gi1/0/n
switch trunk allowed vlan add 1501
Which interface is it?
***Switch 3 C9500 where destination server is connected***
configure terminal
vlan 1501
remote-span
exitconfigure terminal
inter te1/0/n
switch trunk allowed vlan add 1501
exitconfigure terminal
monitor session 1 source remote vlan 1501
monitor session 1 destination inter te1/0/x
exit
Hope you are using correct interface number.
02-26-2025 09:50 PM - edited 02-26-2025 09:52 PM
Hi AshSe,
1. If I use monitor session 1 source vlan 115 on the switch, where IP phones are connected, all the IP phones stop working. So when i mentioned port numbers in source, IP phones started working fine.
2. this switch port is used for trunk to next switch.
3. Yes ports are correct where trunk is connected on this destination switch and destination port also correct where the server is connected.
02-26-2025 10:42 PM
I can see that all your configurations are correct. My apprehension now is with respect to the interfaces especially the trunk interfaces.
Could you please:
Lastly, I would also suggest you,
Also,
I am sure you are doing your best!
AshSe
02-26-2025 11:30 PM
Hi AshSe,
Diagram attached herewith
Firewall is connected to our network, but this VLAN is not configured in our firewall, still will check with our firewall team on this.
Will plan a downtime and will do the testing for source as VLAN 115 on Switch 1.
There is only one session for this is only monitored on each of the switches.
02-27-2025 10:21 PM
all configuration looks good. Let's change the source to VLAN 115, during downtime window.
Fingers crossed
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide