Mirroring configuration
port monitor
This command enables traffic mirroring mode.
The use of a negative form (no) of the command disables the traffic mirroring mode.
Syntax
[no] port monitor
Parameters
None.
Required privilege level
10
Command mode
CONFIG-GI
CONFIG-TE
Example
esr(config-if-gi)# port monitor interface gigabitethernet 1/0/5
port monitor interface
This command defines controlling ports.
The use of a negative form (no) of the command removes controlling port.
Syntax
port monitor interface <IF> <DIRECTION>
no port monitor
Parameters
<IF> – physical interface or a group of physical interfaces is specified in the form described in Section Types and naming order of router interfaces;
<DIRECTION> – traffic direction:
- tx – only outgoing traffic mirroring;
- rx – only incoming traffic mirroring.
Required privilege level
10
Command mode
CONFIG-GI
CONFIG-TE
Example
esr(config-if-gi)# port monitor interface gigabitethernet 1/0/5
port monitor mode
This command defines the mode of the port transmitting mirrored traffic.
The use of a negative form (no) of the command sets the default value.
Syntax
port monitor mode <MODE>
no port monitor mode
Parameters
<MODE> – mode:
- network – combined data transfer and mirroring;
- monitor-only – mirroring only.
Default value
network
Required privilege level
10
Command mode
CONFIG
Example
esr(config)# port monitor mode monitor-only
port monitor remote
In the current firmware version this functionality is supported only by ESR-1000/1200/1500/1511/1700 routers
This command enables remote mirroring (RSPAN).
The use of a negative form (no) of the command disables remote mirroring (RSPAN).
Syntax
[no] port monitor remote
Parameters
The command does not contain parameters.
Required privilege level
10
Command mode
CONFIG-GI
CONFIG-TE
Example
esr(config-if-gi)# port monitor remote
port monitor remote vlan
In the current firmware version this functionality is supported only by ESR-1000/1200/1500/1511/1700 routers.
This command defines the VLAN over which the mirrored traffic will be transmitted.
The use of a negative form (no) of the command removes a specified VLAN.
Syntax
port monitor remote vlan <VID> <DIRECTION>
no port monitor remote vlan <DIRECTION>
Parameters
<VID> – VLAN ID, set in the range of [2..4094];
<DIRECTION> – traffic direction:
- tx – mirroring only outgoing traffic to the specified VLAN;
- rx – mirroring only incoming traffic to the specified VLAN.
Required privilege level
10
Command mode
CONFIG
Example
esr(config)# port monitor remote vlan 10
show interfaces switch-port monitor
The commands displays mirroring settings.
Syntax
show interfaces switch-port monitor
Parameters
None.
Required privilege level
1
Command mode
ROOT
Example
esr# show interfaces switch-port monitor
Port monitor mode: network
RSPAN configuration RX: VLAN 222
RSPAN configuration TX: VLAN 222
Source Port Destination Port Type RSPAN
------------ ---------------- ------ --------
gi1/0/7 gi1/0/6 RX,TX Enabled