设备使用反射口方式实现二层远程镜像,1/0/3口作为源端口,1/0/5口作为反射口,vlan2是镜像vlan
[access-1]display mirroring-group 1
Mirroring group 1:
Type: Remote source
Status: Active
Mirroring port:
Ten-GigabitEthernet1/0/3 Both
Reflector port: Ten-GigabitEthernet1/0/5
Remote probe VLAN: 2
无
无
正常情况下,反射口能按照带宽全部反射,但是反射口在进行反射时,会在外层再加一层vlan标签,因此实际能反射的要略微小一点。
[access-1-Ten-GigabitEthernet1/0/33
<access-1>d c r i i
Usage: Bandwidth utilization in percentage
Interface Usage (%) Total (pps) Broadcast (pps) Multicast (pps)
XGE1/0/3 97 8223763 -- --
XGE1/0/5 100 8223749 -- --
XGE1/0/33 0 1 -- --
Overflow: More than 14 digits.
--: Not supported.
<access-1>
1)在镜像目的口是access口时:
[access-1-Ten-GigabitEthernet1/0/33]dis this
#
interface Ten-GigabitEthernet1/0/33
port link-mode bridge
port access vlan 2
flow-interval 5
#
return
[access-1-Ten-GigabitEthernet1/0/33]
<access-1>d c r o i
Usage: Bandwidth utilization in percentage
Interface Usage (%) Total (pps) Broadcast (pps) Multicast (pps)
XGE1/0/3 0 0 -- --
XGE1/0/5 100 8223804 -- --
XGE1/0/33 97 8223802 -- --
Overflow: More than 14 digits.
--: Not supported.
<access-1>
1)在镜像目的口是trunk口时:
[access-1-Ten-GigabitEthernet1/0/33]dis this
#
interface Ten-GigabitEthernet1/0/33
port link-mode bridge
port link-type trunk
undo port trunk permit vlan 1
port trunk permit vlan 2
flow-interval 5
#
[access-1-Ten-GigabitEthernet1/0/33]d c r o i
Usage: Bandwidth utilization in percentage
Interface Usage (%) Total (pps) Broadcast (pps) Multicast (pps)
XGE1/0/3 0 1 -- --
XGE1/0/5 100 8224218 -- --
XGE1/0/33 100 8223962 -- --
Overflow: More than 14 digits.
--: Not supported.
[access-1-Ten-GigabitEthernet1/0/33]
看端口统计信息,在为trunk口时如下:
Ten-GigabitEthernet1/0/3
Input (total): 22172124 packets, 2838031872 bytes
Ten-GigabitEthernet1/0/5
Input (total): 22172133 packets, 2926721745 bytes
Output (total): 22172133 packets, 2926721745 bytes
Ten-GigabitEthernet1/0/33
Output (total): 22172137 packets, 2926725061 bytes
相差部分:
(2926721745-2838031872)/22172124 = 4
这个4正好是vlan标签,4字节。