配置示例 | 思科N3K交换机端口镜像(SPAN)

深圳运维 网络维护 845

The Switched Port Analyzer (SPAN) 功能 (有时网工们都叫它“端口监控”或“端口镜像”g) ,它的作用就是进行流量分析,即抓包,流量捕获。

想要配置SPAN会话,可以参考如下步骤

步骤1: 在access模式下配置目的端口,开启SPAN monitoring

Example:

switch # configure terminal

switch(config) # interface ethernet 2/5

switch(config-if) # switchport

switch(config-if) # switchport monitor

switch(config-if) # no shut

switch(config-if) # exit

switch(config) #

步骤2: 配置一个 SPAN 会话

Example:

switch(config) # no monitor session 3

switch(config) # monitor session 3

switch(config-monitor) # source interface ethernet 2/1-3, ethernet 3/1 rx

switch(config-monitor) # source interface port-channel 2

switch(config-monitor) # source interface sup-eth 0 both

switch(config-monitor) # source vlan 3, 6-8 rx

switch(config-monitor) # source interface ethernet 101/1/1-3

switch(config-monitor) # filter vlan 3-5, 7

switch(config-monitor) # destination interface ethernet 2/5

switch(config-monitor) # no shut

switch(config-monitor) # exit

switch(config) # show monitor session 3

switch(config) # copy running-config startup-config

标签: 华为交换机配置

抱歉,评论功能暂时关闭!