تنظیمات mirroring به چندین اینترفیس در سوئیچ‌های MES2300-xx/MES3300-xx/MES3500I-10P/MES5312/MES53xxA/MES5310-48/MES5400-xx/MES5410-48/MES5500-32
16 ژوئن 2025 توسط
نوران ارتباطات نوین (نورانو)

برای تنظیم remote mirroring، که در آن ترافیک از اینترفیس‌های فیزیکی یا VLAN‌ها به چندین آپلینک (uplink) mirror می‌شود، می‌توانید از طرح زیر استفاده کنید:

;Where te1/0/1 is the controlled port

;te1/0/15,  te1/0/16 — uplinks

.te1/0/2, te1/0/3 is the physical loop for Q-in-Q

ترافیک از پورت کنترل‌شده te1/0/1 با استفاده از SPAN به پورت te1/0/2 آینه‌سازی (mirror) می‌شود. از این پورت، ترافیک به همان VLAN اولیه هدایت می‌شود.

پورت te1/0/2 به‌صورت فیزیکی به پورت te1/0/3 متصل است، جایی که برچسب دوم با شناسه 100 به تمام ترافیک mirror اضافه می‌شود. در این VLAN، ترافیک mirror از طریق آپلینک‌ها (uplinks) منتقل می‌شود. بنابراین، در سوئیچ‌های میانی که VLAN 100 ثبت شده است، mac learning برای این VLAN باید غیرفعال شود.

vlan database
vlan 10,100
exit
!
no mac address-table learning vlan 100
!
interface TenGigabitEthernet1/0/1
switchport mode general
switchport general allowed vlan add 10 tagged
exit
!
interface TenGigabitEthernet1/0/2
spanning-tree disable
spanning-tree bpdu filtering
exit
!
interface TenGigabitEthernet1/0/3
spanning-tree disable
spanning-tree bpdu filtering
switchport mode customer
switchport customer vlan 100
exit
!
interface TenGigabitEthernet1/0/15
switchport mode customer
switchport customer vlan 100
exit
!
interface TenGigabitEthernet1/0/16
switchport mode customer
switchport customer vlan 100
exit
!
monitor session 1 destination interface TenGigabitEthernet1/0/2
monitor session 1 source interface TenGigabitEthernet1/0/1 both
!
end