# Create traffic behavior 1 and configure the action of mirroring traffic to interface GigabitEthernet
3/0/1 for the traffic behavior.
<Sysname> system-view
[Sysname] traffic behavior 1
[Sysname-behavior-1] mirror-to interface GigabitEthernet 3/0/1
# Create traffic behavior 1 and configure the action of mirroring traffic to VLAN 100 for the traffic
behavior.
<Sysname> system-view
[Sysname] traffic behavior 1
[Sysname-behavior-1] mirror-to vlan 100
# Create traffic behavior 1, configure the action of mirroring traffic to GigabitEthernet 3/0/1, and
reference the sampler samp.
<Sysname> system-view
[Sysname] traffic behavior 1
[Sysname-behavior-1] mirror-to interface GigabitEthernet3/0/1 sampler samp
193