S7506E+S5560 如何在三層網絡中做遠程端口鏡像配置?
(0)
最佳答案
· 在一個三層網絡中,Device A、Device B、Device C及Server如下圖所示連接。其中,Device A通過端口GigabitEthernet1/0/1連接市場部。
· 通過配置三層遠程端口鏡像,並建立OSPF方式的GRE隧道,使得Server可以通過由GRE隧道傳輸的鏡像報文來監控所有進、出市場部的報文。
(1) 配置IP地址
請按照圖1-10配置各接口的IP地址和子網掩碼,具體配置過程略。
# 創建業務環回組1,並配置服務類型為Tunnel。
[DeviceA] service-loopback group 1 type tunnel
# 將接口GigabitEthernet1/0/3加入業務環回組1。
[DeviceA] interface gigabitethernet 1/0/3
[DeviceA-GigabitEthernet1/0/3] port service-loopback group 1
All configurations on the interface will be lost. Continue?[Y/N]:y
[DeviceA-GigabitEthernet1/0/3] quit
# 創建GRE模式的Tunnel接口1,並為其配置IP地址和掩碼。
[DeviceA] interface tunnel 1 mode gre
[DeviceA-Tunnel1] ip address 50.1.1.1 24
# 為Tunnel接口1分別指定源地址和目的地址。
[DeviceA-Tunnel1] source 20.1.1.1
[DeviceA-Tunnel1] destination 30.1.1.2
[DeviceA-Tunnel1] quit
# 配置OSPF協議。
[DeviceA-ospf-1] area 0
[DeviceA-ospf-1-area-0.0.0.0] network 10.1.1.0 0.0.0.255
[DeviceA-ospf-1-area-0.0.0.0] network 20.1.1.0 0.0.0.255
[DeviceA-ospf-1-area-0.0.0.0] quit
[DeviceA-ospf-1] quit
# 創建本地鏡像組1。
[DeviceA] mirroring-group 1 local
# 配置本地鏡像組1的源端口為GigabitEthernet1/0/1,目的端口為Tunnel1。
[DeviceA] mirroring-group 1 mirroring-port gigabitethernet 1/0/1 both
[DeviceA] mirroring-group 1 monitor-port tunnel 1
# 配置OSPF協議。
[DeviceB] ospf 1
[DeviceB-ospf-1] area 0
[DeviceB-ospf-1-area-0.0.0.0] network 20.1.1.0 0.0.0.255
[DeviceB-ospf-1-area-0.0.0.0] network 30.1.1.0 0.0.0.255
[DeviceB-ospf-1-area-0.0.0.0] quit
[DeviceB-ospf-1] quit
# 創建業務環回組1,並配置服務類型為Tunnel。
[DeviceC] service-loopback group 1 type tunnel
# 將接口GigabitEthernet1/0/3加入業務環回組1。
[DeviceC] interface gigabitethernet 1/0/3
[DeviceC-GigabitEthernet1/0/3] port service-loopback group 1
All configurations on the interface will be lost. Continue?[Y/N]:y
[DeviceC-GigabitEthernet1/0/3] quit
# 創建GRE模式的Tunnel接口1,並為其配置IP地址和掩碼。
[DeviceC] interface tunnel 1 mode gre
[DeviceC-Tunnel1] ip address 50.1.1.2 24
# 為Tunnel接口1分別指定源地址和目的地址。
[DeviceC-Tunnel1] source 30.1.1.2
[DeviceC-Tunnel1] destination 20.1.1.1
[DeviceC-Tunnel1] quit
# 配置OSPF協議。
[DeviceC-ospf-1] area 0
[DeviceC-ospf-1-area-0.0.0.0] network 30.1.1.0 0.0.0.255
[DeviceC-ospf-1-area-0.0.0.0] network 40.1.1.0 0.0.0.255
[DeviceC-ospf-1-area-0.0.0.0] quit
[DeviceC-ospf-1] quit
# 創建本地鏡像組1。
[DeviceC] mirroring-group 1 local
# 配置本地鏡像組1的源端口為GigabitEthernet1/0/1,目的端口為GigabitEthernet1/0/2。
[DeviceC] mirroring-group 1 mirroring-port gigabitethernet 1/0/1 inbound
[DeviceC] mirroring-group 1 monitor-port gigabitethernet 1/0/2
# 顯示Device A上所有鏡像組的配置信息。
[DeviceA] display mirroring-group all
Mirroring group 1:
Type: Local
Status: Active
Mirroring port:
GigabitEthernet1/0/1 Both
Monitor port: Tunnel1
# 顯示Device C上所有鏡像組的配置信息。
[DeviceC] display mirroring-group all
Mirroring group 1:
Type: Local
Status: Active
Mirroring port:
GigabitEthernet1/0/1 Inbound
Monitor port: GigabitEthernet1/0/2
配置完成後,用戶可以通過Server監控所有進、出市場部的報文。
(0)
三層網絡做遠程端口鏡像必須采用OSPF和GRE這種方式嗎?
OSPF不是必須的,但是GRE必須
其實網絡架構是這樣的,S7506是核心,S5560是彙聚交換機,鏡像的源端口在5560上麵,監控設備是連接在核心交換機上麵。
親~登錄後才可以操作哦!
確定你的郵箱還未認證,請認證郵箱或綁定手機後進行當前操作
舉報
×
侵犯我的權益
×
侵犯了我企業的權益
×
抄襲了我的內容
×
原文鏈接或出處
誹謗我
×
對根叔社區有害的內容
×
不規範轉載
×
舉報說明
您好,這樣也要用到GRE嗎?