SPAN/Port Mirror Configuration Reference
Ciscoβ
IOS / IOS XEβ
-
Enter Configuration Mode:
Switch# configure terminal -
Define the Monitor Session Number and Input (Source):
Switch(config)# monitor session <SESSION_NUMBER> source [interface <INTERFACE_NAME> | vlan <VLAN_ID>] both -
Specify the Output (Destination) Interface:
Switch(config)# monitor session <SESSION_NUMBER> destination interface <INTERFACE_NAME> -
Save the Configuration:
Switch(config)# end
Switch# copy running-config startup-config
NX-OSβ
-
Enter Configuration Mode:
switch# configure terminal -
Define the Monitor Session Number and Input (Source):
switch(config)# monitor session <SESSION_NUMBER> type local
switch(config-monitor)# source [interface <INTERFACE_NAME> | vlan <VLAN_ID>] <INTERFACE_NAME> both -
Specify the Output (Destination) Interface:
switch(config-monitor)# destination interface <INTERFACE_NAME> -
Save the Configuration:
switch(config-monitor)# no shut
switch(config-monitor)# exit
switch(config)# exit
switch# copy running-config startup-config
Juniperβ
Junos OSβ
-
Enter Configuration Mode:
user@device> configure -
Define the Analyzer Name and Input (Source):
user@device# set forwarding-options analyzer <ANALYZER_NAME> input ingress interface [<INTERFACE_NAME> | vlan.<VLAN_ID>]
user@device# set forwarding-options analyzer <ANALYZER_NAME> input egress interface [<INTERFACE_NAME> | vlan.<VLAN_ID>] -
Specify the Output (Destination) Interface:
user@device# set forwarding-options analyzer <ANALYZER_NAME> output interface <INTERFACE_NAME> -
Commit the Configuration:
user@device# commit
Dellβ
Dell Networking OS (DNOS)β
-
Enter Configuration Mode:
switch# configure -
Create the SPAN Session:
switch(config)# monitor session <SESSION_NUMBER>
switch(config-mon)# source interface <INTERFACE_NAME> both -
Specify the Destination Port:
switch(config-mon)# destination interface <INTERFACE_NAME> -
Activate the Session (if necessary):
switch(config-mon)# no shutdown -
Exit and Save Configuration:
switch(config-mon)# end
switch# write memory
Dell PowerConnect OSβ
-
Enter Configuration Mode:
switch# configure -
Define the Source Port:
switch(config)# mirror <SOURCE_INTERFACE> -
Define the Destination Port:
switch(config)# ethernet <DESTINATION_INTERFACE>
switch(config-if)# port monitor <SOURCE_INTERFACE> -
Save the Configuration:
switch(config)# exit
switch# write memory
Dell EMC OS10β
-
Enter Configuration Mode:
switch# configure terminal -
Create the SPAN Session:
switch(config)# monitor session <SESSION_NUMBER> type local
switch(config-monitor)# source [interface <INTERFACE_NAME> | vlan <VLAN_ID>] both -
Specify the Destination Port:
switch(config-monitor)# destination interface <INTERFACE_NAME> -
Activate the Session (if necessary):
switch(config-monitor)# no shutdown -
Exit and Save Configuration:
switch(config-monitor)# end
switch# write memory
HPβ
HP ProVision (ArubaOS-Switch)β
-
Enter Configuration Mode:
switch# configure terminal -
Define the Source Port:
switch(config)# mirror-port <SOURCE_INTERFACE> -
Define the Destination Port:
switch(config)# interface <DESTINATION_INTERFACE>
switch(eth-<DESTINATION_INTERFACE>)# monitor -
Save the Configuration:
switch(config)# write memory
HP Comwareβ
-
Enter System View:
<HP> system-view -
Create a Local Mirroring Group:
[HP] mirroring-group <GROUP_NUMBER> local -
Add Sources to the Mirroring Group:
-
Interfaces:
[HP] interface <SOURCE_INTERFACE>
[HP-if] port-mirroring to interface <DESTINATION_INTERFACE> both -
VLANs:
[HP] mirroring-group <GROUP_NUMBER> vlan <VLAN_ID> both
-
-
Specify the Mirroring Group's Destination Port:
[HP] mirroring-group <GROUP_NUMBER> mirroring-port <DESTINATION_INTERFACE> -
Save the Configuration:
[HP] save