核心交換機隻有光口板卡,沒有電口,現在有一台ids旁路部署要做鏡像流量,能不能通過核心交換機通過光口下聯一台接入交換機,然後ids接在接入交換機的電口上去,這樣能把核心的流量鏡像到ids上去嗎,應該怎麼配置,有沒有案例
(0)
可以,通過遠程鏡像的方式實現
如圖3所示,某公司內部各部門通過二層網絡連接到核心設備Device A,各部門使用不同網段的IP地址,其中研發部使用10.1.1.0/24網段,市場部使用12.1.1.0/24網段。現要求通過配置二層遠程端口鏡像功能,使用數據監測設備對研發部發送的報文進行監控。
· 為確保源設備與目的設備之間的鏡像報文可以二層轉發,中間設備連接到源設備和目的設備方向的端口上需允許遠程鏡像VLAN通過。
· 建議用戶先配目的設備,再配中間設備,最後配源設備,以保證鏡像流量的正常轉發。
配置遠程端口鏡像的目的設備和源設備時均需要注意:
· 配置遠程鏡像VLAN時:
¡ 要求該VLAN為靜態VLAN並預先創建。
¡ 要求該VLAN不用做其他用途,僅用於遠程鏡像功能。
¡ 要求該VLAN隻能被一個遠程源鏡像組使用。
· 源設備和目的設備上的遠程鏡像組必須使用相同的遠程鏡像VLAN。
配置遠程端口鏡像的目的設備時需要注意:
· 目的端口不能是現有鏡像組的成員端口。
· 目的端口不用做其他用途,僅用於端口鏡像。
· 如果目的端口是二層接口,請不要在目的端口上使能生成樹協議,否則會影響鏡像功能的正常使用。
配置遠程端口鏡像的源設備時需要注意:
· 請不要將源端口加入到遠程鏡像VLAN中,否則會影響鏡像功能的正常使用。
· 建議選擇設備上未被使用的端口作為反射端口,且不要在該端口上連接網線,否則會影響鏡像功能的正常使用。
· 在將端口配置為反射端口時,該端口上已存在的所有配置都將被清除;在配置為反射端口後,該端口上不能再配置其他業務。
· 隻有當端口的雙工模式、端口速率和MDI屬性值均為缺省值時,才能將其配置為反射端口。當端口已配置為反射端口後,不能再修改其雙工模式、端口速率和MDI屬性值,即這些屬性隻能取缺省值。
# 創建業務VLAN 2和VLAN 3。
<DeviceA> system-view
[DeviceA] vlan 2 to 3
# 創建VLAN 2接口和VLAN 3接口並配置IP地址作為相應VLAN的網關。
[DeviceA] interface Vlan-interface 2
[DeviceA-Vlan-interface2] ip address 10.1.1.1 24
[DeviceA-Vlan-interface2] quit
[DeviceA] interface Vlan-interface 3
[DeviceA-Vlan-interface3] ip address 12.1.1.1 24
[DeviceA-Vlan-interface3] quit
# 配置端口Ten-GigabitEthernet 1/0/1的端口類型為Trunk端口,允許業務VLAN 2、VLAN 3和鏡像VLAN 5的報文通過。
<DeviceA> system-view
[DeviceA] interface ten-gigabitethernet 1/0/1
[DeviceA-Ten-GigabitEthernet1/0/1] port link-type trunk
[DeviceA-Ten-GigabitEthernet1/0/1] port trunk permit vlan 2 3 5
[DeviceA-Ten-GigabitEthernet1/0/1] quit
# 配置端口Ten-GigabitEthernet1/0/2的端口類型為Trunk端口,允許業務VLAN 2和鏡像VLAN 5的報文通過。
[DeviceA] interface ten-gigabitethernet 1/0/2
[DeviceA-Ten-GigabitEthernet1/0/2] port link-type trunk
[DeviceA-Ten-GigabitEthernet1/0/2] port trunk permit vlan 2 5
[DeviceA-Ten-GigabitEthernet1/0/2] quit
# 創建遠程目的鏡像組1。
[DeviceA] mirroring-group 1 remote-destination
# 創建VLAN 5作為遠程鏡像VLAN。
[DeviceA] vlan 5
[DeviceA-vlan5] quit
# 為遠程目的鏡像組1配置遠程鏡像VLAN為VLAN 5,及配置連接數據監測設備的端口Ten-GigabitEthernet 1/0/3為目的端口。
[DeviceA] mirroring-group 1 remote-probe vlan 5
[DeviceA] mirroring-group 1 monitor-port ten-gigabitethernet 1/0/3
# 將鏡像目的端口加入遠程鏡像VLAN。將鏡像數據發送給監測設備時,不需要攜帶遠程鏡像VLAN的VLAN Tag,因此將該端口配置為Access端口。
[DeviceA] interface ten-gigabitethernet 1/0/3
[DeviceA-Ten-GigabitEthernet1/0/3] port access vlan 5
# 關閉目的端口Ten-GigabitEthernet1/0/3上的生成樹協議。
[DeviceA-Ten-GigabitEthernet1/0/3] undo stp enable
[DeviceA-Ten-GigabitEthernet1/0/3] quit
# 創建業務VLAN 2和VLAN 3。
<DeviceB> system-view
[DeviceB] vlan 2 to 3
# 創建VLAN 5作為遠程鏡像VLAN。
[DeviceB] vlan 5
[DeviceB-vlan5] quit
# 配置端口Ten-GigabitEthernet 1/0/1的端口類型為Trunk端口,允許業務VLAN 2、VLAN 3和鏡像VLAN 5的報文通過。
[DeviceB] interface ten-gigabitethernet 1/0/1
[DeviceB-Ten-GigabitEthernet1/0/1] port link-type trunk
[DeviceB-Ten-GigabitEthernet1/0/1] port trunk permit vlan 2 3 5
[DeviceB-Ten-GigabitEthernet1/0/1] quit
# 配置端口Ten-GigabitEthernet 1/0/2的端口類型為Trunk端口,允許業務VLAN 2、VLAN 3和鏡像VLAN 5的報文通過。
[DeviceB] interface ten-gigabitethernet 1/0/2
[DeviceB-Ten-GigabitEthernet1/0/2] port link-type trunk
[DeviceB-Ten-GigabitEthernet1/0/2] port trunk permit vlan 2 3 5
[DeviceB-Ten-GigabitEthernet1/0/2] quit
# 創建業務VLAN 2和VLAN 3。
<DeviceC> system-view
[DeviceC] vlan 2 to 3
# 將端口Ten-GigabitEthernet 1/0/1加入VLAN 2。
[DeviceC] interface ten-gigabitethernet 1/0/1
[DeviceC-Ten-GigabitEthernet1/0/1] port access vlan 2
[DeviceC-Ten-GigabitEthernet1/0/1] quit
# 將端口Ten-GigabitEthernet 1/0/2加入VLAN 3。
[DeviceC] interface ten-gigabitethernet 1/0/2
[DeviceC-Ten-GigabitEthernet1/0/2] port access vlan 3
[DeviceC-Ten-GigabitEthernet1/0/2] quit
# 創建遠程源鏡像組1。
[DeviceC] mirroring-group 1 remote-source
# 創建VLAN 5作為遠程鏡像VLAN。
[DeviceC] vlan 5
[DeviceC-vlan5] quit
# 配置遠程源鏡像組1的遠程鏡像VLAN為VLAN 5,源端口為Ten-GigabitEthernet1/0/1,反射端口為Ten-GigabitEthernet1/0/5。
[DeviceC] mirroring-group 1 remote-probe vlan 5
[DeviceC] mirroring-group 1 mirroring-port ten-gigabitethernet 1/0/1 inbound
[DeviceC] mirroring-group 1 reflector-port ten-gigabitethernet 1/0/5
This operation may delete all settings made on the interface. Continue? [Y/N]: y
# 配置端口Ten-GigabitEthernet 1/0/3的端口類型為Trunk端口,允許業務VLAN 2、VLAN 3和鏡像VLAN 5的報文通過。
[DeviceC] interface ten-gigabitethernet 1/0/3
[DeviceC-Ten-GigabitEthernet1/0/3] port link-type trunk
[DeviceC-Ten-GigabitEthernet1/0/3] port trunk permit vlan 2 3 5
[DeviceC-Ten-GigabitEthernet1/0/3] quit
# 創建業務VLAN 2。
<DeviceD> system-view
[DeviceD] vlan 2
[DeviceD-vlan2] quit
# 將端口Ten-GigabitEthernet 1/0/1加入VLAN 2。
[DeviceD] interface ten-gigabitethernet 1/0/1
[DeviceD-Ten-GigabitEthernet1/0/1] port access vlan 2
[DeviceD-Ten-GigabitEthernet1/0/1] quit
# 創建遠程源鏡像組1。
[DeviceD] mirroring-group 1 remote-source
# 創建VLAN 5作為遠程鏡像VLAN。
[DeviceD] vlan 5
[DeviceD-vlan5] quit
# 配置遠程源鏡像組1的遠程鏡像VLAN為VLAN 5,對源端口Ten-GigabitEthernet1/0/1入方向進行鏡像,反射端口為Ten-GigabitEthernet1/0/5。
[DeviceD] mirroring-group 1 remote-probe vlan 5
[DeviceD] mirroring-group 1 mirroring-port ten-gigabitethernet 1/0/1 inbound
[DeviceD] mirroring-group 1 reflector-port ten-gigabitethernet 1/0/5
This operation may delete all settings made on the interface. Continue? [Y/N]: y
# 配置端口Ten-GigabitEthernet 1/0/2的端口類型為Trunk端口,允許業務VLAN 2和鏡像VLAN 5的報文通過。
[DeviceD] interface ten-gigabitethernet 1/0/2
[DeviceD-Ten-GigabitEthernet1/0/2] port link-type trunk
[DeviceD-Ten-GigabitEthernet1/0/2] port trunk permit vlan 2 5
[DeviceD-Ten-GigabitEthernet1/0/2] quit
(0)
暫無評論
可以配置二層遠端鏡像
(0)
暫無評論
親~登錄後才可以操作哦!
確定你的郵箱還未認證,請認證郵箱或綁定手機後進行當前操作
舉報
×
侵犯我的權益
×
侵犯了我企業的權益
×
抄襲了我的內容
×
原文鏈接或出處
誹謗我
×
對根叔社區有害的內容
×
不規範轉載
×
舉報說明
暫無評論