![FoxGate S6424-S2C2 series Скачать руководство пользователя страница 48](http://html1.mh-extra.com/html/foxgate/s6424-s2c2-series/s6424-s2c2-series_configuration-manual_2325481048.webp)
Ethernet Port Mirroring Configuration
48
link-group
{
acl-number
|
acl-name
} [
subitem
subitem
]: Specifies a Layer 2 ACL.
The
acl-number
argument ranges from 4000 to 4999;
acl-name
: Name of a string,
start with letters without space and quotation mark
;
subitem
: option parameter for
specifying the subitem in acl-list, in the range of 0 to 127.
interface ethernet
{
interface-num
}: Specifies destination port (also called monitor
port) of traffic.
Configuration example
! Mirror acl-list 2000 to Ethernet 0/0/1.
Switch(config)#access-list 2000 permit 1.1.1.1 0
Config ACL subitem successfully.
Switch(config)#mirrored-to ip-group 2000 interface ethernet 0/0/1
Config mirrored-to successfully.
5.1.4.2 Configuring Port Mirroring
Configuration prerequisites
The source port is specified and whether the packets to be mirrored are ingress or egress
is specified: ingress: only mirrors the packets received via the port; egress: only mirrors the
packets sent by the port; both: mirrors the packets received and sent by the port at the same
time.
The destination port is specified.
Configuration procedure
Perform the following configuration in global configuration mode.
Table 5-3 Configure port mirroring
Operation
Command
Description
Configure destination port (so
called monitor port)
mirror destination-interface
interface-num
This command will cancel
original port mirroring.
Configure source port (so
called mirrored port)
mirror source-interface
{
interface-list
| cpu } { both |
egress | ingress }
both
means both ingress and
egress;
cpu
means mirroring
cpu packets.
Show port mirroring
show mirror
Note:
A port cannot be monitor and mirrored port at the same time.
Configuration example
! Mirror egress of ethernet 0/0/1 to ethernet 0/0/12 to ethernet 0/1/1
Switch(config)#mirror destination-interface ethernet 0/1/1
Config monitor port successfully !
Switch(config)#mirror source-interface ethernet 0/0/1 to ethernet 0/0/12 egress
Config mirrored port successfully !