`
yangben
  • 浏览: 169984 次
  • 性别: Icon_minigender_1
  • 来自: 济南
社区版块
存档分类
最新评论

锐捷交换机的镜象设置

阅读更多

如何使用CONSOLE口配置设备

2006-07-08

 

 

 

 

 

 

 

 

 

 

 

锐捷网络远程技术支持中心

技术热线:800-858-1360

 

 

 

 

CONSOLE口又叫控制台端口。当一台网络设备买回来的时候,我们必使须使用CONSOLE口对设备进行正确配置后,才能使设备按照我们的要求工作。下面将介绍如何使用CONSOLE口对设备进行配置。

一、准备工作

在对设备配置前,请检查是否具有以下条件:反转线、终端适配器和终端配置程序。

反转线和终端适配器随网络设备一起提供,常用的终端配置程序为Windows里的超级终端。

反转线:

反转线看起来就像我们平时使用的双绞线,但是两边RJ-45水晶头里的线序刚好相反。

终端适配器:

如图所示,终端适配器有两端,一端用于连接反转线的水晶头,另一端用于连接PC机的COM口,即通常所说的串口。

 

超级终端:

超级终端是Windows附件里的一个程序,可以在“开始”——“程序”——“附件”——“通讯”中找到,如果没有找到该程序,请在“控制面板”的“添加/删除程序”里进行添加(Windows 98Windows Server 2003默认安装是没有该程序的,请自行添加)。

二、连接

连接过程非常简单:将反转线的任意一端插入网络设备的CONSOLE口(CONSOLE口一般位于网络设备的以太接口旁,其上都会标有字母CONSOLE),另一端插入终端适配器的RJ-45接口,然后将终端适配器的DB9接口插入PC机的COM口即完成了连接。如图:

 

三、使用超级终端配置网络设备

打开超级终端,如果是首次使用超级终端会出现如下信息:

 

任意填入一个区号后点击“确定”,出现以下信息:

 

再次点击“确定”便打开了超级终端:

 

名称任意填写,然后点击“确定”:

 

在“连接时使用”选择当前终端适配器连接的COM口,然后点击“配置”:

 

按照上图进行设置或单击“还原默认值”,然后点击“确定”:

 

再次点击“确定”:

 

这时按一下“ENTER键”后即进入了网络设备的配置界面:

 

 

 

 

交换机基端口监控的配置

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

端口监控配置

例:fa0/2接口监控fa0/10接口的步骤如下:

     S3760> en

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

 

 

 

 

 

 

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics