【电脑学习】锐捷交换机端口镜像(转)
2011-06-17 09:41阅读:
2.18
锐捷交换机
2.18.1 S
1926F+交换机端口镜像设置图例
进入交换机主菜单
选择(P)进入端口设置界面
选择(C)进入端口配置界面
选择(I),进入被监控的端口的设置(实例中被监控端口为24口)
选择
(M)进入镜像口的设置界面,选择镜像口(设置为除本身之外的其它端口,在此选择端口1对24口进行监控)
设置成功,保存配置(S)
注意事项:在S1926G+中,在同一时刻只可一个端口被设为被监控口,该被监控口允许有1个镜像端口,且监控端口与被监控端口需处在同一VLAN。
2.18.2
锐捷中高端交换机端口监控配置
例:fa0/2接口监控fa0/10接口的步骤如下:
Switch# configure terminal
!进入全局配置模式
Enter configuration commands, one per
line. End with CNTL/Z.
Switch(config)# monitor session 1 source interface fastEthernet
0/10 both
!设置被监控口
2006-03-16 17:26:56
@5-CONFIG:Configured from outband
Switch(config)# monitor session 1 destination interface
fastEthernet 0/2
!设置监控口
2006-03-16 17:27:19
@5-CONFIG:Configured from outband
Switch# show monitor session 1
!显示配置信息
Session: 1
Source Ports:
Rx Only : None
Tx Only : None
Both
: Fa0/10
Destination Ports: Fa0/2
Switch# show running-config
!显示当前所有配置信息
System software version : 1.63 Build Jan
6 2006 Rel
Building configuration...
Current configuration : 472 bytes
!
version 1.0
!
no enable services web-server
hostname Switch
vlan 1
!
enable secret level 1 5
&t>H.Y*TquC,tZ[VrvD+S(\Ws=G1X)sv
enable secret level 15 5
&ttj9=G1qu7R:>H.rvu_;C,ts8U0<D+S
!
interface vlan 1
no shutdown
ip address 192.168.26.38 255.255.255.0
!
ip default-gateway 192.168.26.10
snmp-server community public ro
monitor session 1 destination interface fastEthernet 0/2
monitor session 1 source interface fastEthernet 0/10 both
end
例:创建一个SPAN会话并指定监控口和被监控口
1步骤
configure
terminal
进入全局配置模式。
2步骤
no monitor session
session_number
清除当前配置。
3步骤
monitor session session_number source
interface interface-id [| ,-] {both | rx |
tx}
指定源端口。对于session_number1,请指定。对于interface-id,请指定相应的接口号。
4步骤
monitor session session_number destination
interface
interface-id
指定源端口。对于session_number1,请指定。对于interface-id,请指定相应的接口号
5步骤
end
返回特权模式
6步骤
show monitor [session
session_number]
确认您的配置
下面这个例子说明了如何创建一个会话:会话。首先,将当前会话的配置清除掉,然后设1MIRROR8置端口的帧到端口。
Show monitor session
特权命令用于确认配置。
Switch(config)# no monitor session 1
Switch(config)# monitor session 1 source interface
gigabitEthernet1/1 both
Switch(config)# monitor session 1 destination interface
gigabitEthernet 1/8
Switch(config)# end
Switch# show monitor session 1
Session 1
-----------
Souce Ports:
RX Only: None
TX Only: None
Both: Gi 1/1
Destination Ports: Gi 1/8