-
常用交换机镜像设置
以下一些典型交换机的监听口的配置方法,
供用户参考,
更多
信息应当参考具体的交换
机的使用配置手册。
a)
Cisco
交换机端口监听配置
Catalyst
4506
系列交换机端口监听配置
1)
以下命令配置端口监听:
monitorsession
例如,
Gi0/2-Gi0/5
同属
VLAN1
,
Gi0/1
监听
Gi0/2-Gi0/5
的端口:
monitor session
source interface Gi0/2 -5 both
monitor
session destination interface Gi0/1
2)
以下命令禁止端口监听:
no
monitor session
3)
以下命令用来显示镜像组:
show
monitor session
b)
Cisconexus
系列交换机(
N7K
)端口监听配置
Switchport Analyzer
(S
PAN)
:
SPAN
可被用于给源端
口到目的端口的流量做一个
镜象流量,以便提供给数据包分析器或对住机的具体应用和故
障排除分析器进行管理。
A
SPAN
的目标接口需要配置成
switchport mon
itor
接口,同时进程应处于
active
< br>状
态。
1.
配置目标
SPAN
接口
:
n7000(config)#
interface
ethernet 2/14
n7000(config-if)#
switchport
n7000(config-if)#
switchport
monitor
(配置目标
monitor
接口)
2.
端口镜像配置:
n7000(config)#
monitor
session 1
n7000(config-
monitor)#
description Inbound(rx)/both
SPAN on Eth 2/13
n7000(config-monitor)#
source interface ethernet 2/13 rx/both(
配置源
monitor
接口
)
n7000(config-
monitor)#
destination interface
ethernet 2/14
n7000(config-
monitor)#
no
shut(
激活镜像
)
3.
验证
SPAN
①验证目标接口类型:
n7000#
show interface ethernet 2/14
Ethernet2/14 is up
Hardware is
10/100/1000 Ethernet, address is (bia )
MTU 1500 bytes,
BW 1000000 Kbit, DL
Y 10 usec,
reliability 255/255, txload 1/255,
rxload 1/255
Encapsulation ARPA
Port mode is access
full-duplex, 1000 Mb/s
Beacon is turned off
Auto-
Negotiation is turned on
Input flow-control is off, output flow-
control is off
Auto-mdix is turned on
Switchport monitor is
on
(交换接口模式)
Last clearing of
②验证
SPAN
进程
n7000#
show monitor session
1
session 1
---------------
description
: Inbound(rx)
SPAN on Eth 2/13
type
: local
state
: up
(运行的监控进程为
UP
)
sourceintf
:
rx
: Eth2/13
(源接口
=rx
或
both
等)
tx
:
both
:
source VLANs
:
rx
:
tx
:
both
:
filter VLANs
:
filter not specified
destination ports
: Eth2/14
(目标接口)
-
-
-
-
-
-
-
-
-
上一篇:华为S9312技术资料
下一篇:华为交换机_后台管理地址ok