免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
楼主: happymood
打印 上一主题 下一主题

cisco2950做端口境象的问题 [复制链接]

论坛徽章:
0
11 [报告]
发表于 2008-06-16 11:51 |只看该作者
原帖由 happymood 于 2008-6-16 11:45 发表

比如我在2号port上做,就要进到interface fastethernet0/2
对吧?谢谢


mis_happymood(config)#interface fastethernet0/2
mis_happymood(config-if)#port monitor
                       ^
% Invalid input detected at '^' marker.

mis_happymood(config-if)#

论坛徽章:
3
辰龙
日期:2013-11-20 23:03:57子鼠
日期:2014-05-26 14:46:482015年亚洲杯之伊拉克
日期:2015-01-30 14:29:38
12 [报告]
发表于 2008-06-16 11:51 |只看该作者
原帖由 happymood 于 2008-6-16 11:51 发表


mis_happymood(config)#interface fastethernet0/2
mis_happymood(config-if)#port monitor
                       ^
% Invalid input detected at '^' marker.

mis_happymood(config-if)#

不要用这个了,这个是以前OS的命令,用后面给你的

论坛徽章:
0
13 [报告]
发表于 2008-06-16 11:56 |只看该作者
原帖由 seven007 于 2008-6-16 11:48 发表

conf t
monitor session 1 source interface Fa0/23
monitor session 1 destination interface fa0/2

mis_happymood(config)#monitor session1 source interface fastethernet0/23
                                  ^
% Invalid input detected at '^' marker.

论坛徽章:
3
辰龙
日期:2013-11-20 23:03:57子鼠
日期:2014-05-26 14:46:482015年亚洲杯之伊拉克
日期:2015-01-30 14:29:38
14 [报告]
发表于 2008-06-16 12:02 |只看该作者
原帖由 happymood 于 2008-6-16 11:56 发表

mis_happymood(config)#monitor session1 source interface fastethernet0/23
                                  ^
% Invalid input detected at '^' marker.

你OS是什么版本?
show version

论坛徽章:
0
15 [报告]
发表于 2008-06-16 13:22 |只看该作者
原帖由 seven007 于 2008-6-16 12:02 发表

你OS是什么版本?
show version

IOS (tm) C2950 Software (C2950-I6Q4L2-M), Version 12.1(13)EA1, RELEASE SOFTWARE
(fc1)
Copyright (c) 1986-2003 by cisco Systems, Inc.
Compiled Tue 04-Mar-03 02:14 by yenanh
Image text-base: 0x80010000, data-base: 0x805A8000

ROM: Bootstrap program is CALHOUN boot loader

mis_beyond uptime is 6 weeks, 3 days, 19 hours, 10 minutes
System returned to ROM by power-on
System image file is "flash:/c2950-i6q4l2-mz.121-13.EA1.bin"

cisco WS-C2950-24 (RC32300) processor (revision J0) with 20839K bytes of memory.

Processor board ID FOC0820Z1V1
Last reset from system-reset
Running Standard Image
24 FastEthernet/IEEE 802.3 interface(s)

32K bytes of flash-simulated non-volatile configuration memory.
Base ethernet MAC Address: 00:0D:28:BF:51:40
Motherboard assembly number: 73-5781-11
Power supply part number: 34-0965-01

论坛徽章:
3
辰龙
日期:2013-11-20 23:03:57子鼠
日期:2014-05-26 14:46:482015年亚洲杯之伊拉克
日期:2015-01-30 14:29:38
16 [报告]
发表于 2008-06-16 13:38 |只看该作者
原帖由 happymood 于 2008-6-16 13:22 发表

IOS (tm) C2950 Software (C2950-I6Q4L2-M), Version 12.1(13)EA1, RELEASE SOFTWARE
(fc1)
Copyright (c) 1986-2003 by cisco Systems, Inc.
Compiled Tue 04-Mar-03 02:14 by yenanh
Image text-base:  ...

SPAN on the Catalyst 2940, 2950, 2955, 2960, 2970, 3550, 3560, 3560-E, 3750 and 3750-E Series Switches These are guidelines for the configuration of the SPAN feature on the Catalyst 2940, 2950, 2955, 2960, 2970, 3550, 3560, 3560-E, 3750, and 3750-E Series Switches:
  • The Catalyst 2950 Switches can have only one SPAN session active at a time and can monitor only source ports. These switches cannot monitor VLANs.
  • The Catalyst 2950 and 3550 Switches can forward traffic on a destination SPAN port in Cisco IOS Software Release 12.1(13)EA1 and later.
  • The Catalyst 3550, 3560, and 3750 Switches can support up to two SPAN sessions at a time and can monitor source ports as well as VLANs.
  • The Catalyst 2970, 3560, and 3750 Switches do not require the configuration of a reflector port when you configure an RSPAN session.
  • The Catalyst 3750 Switches support session configuration with the use of source and destination ports that reside on any of the switch stack members.
  • Only one destination port is allowed per SPAN session, and the same port cannot be a destination port for multiple SPAN sessions. Therefore, you cannot have two SPAN sessions that use the same destination port.
The SPAN feature configuration commands are similar on the Catalyst 2950 and Catalyst 3550. However, the Catalyst 2950 cannot monitor the VLANs. You can configure the SPAN, as in this example:
C2950#configure terminalC2950(config)#C2950(config)#monitor session 1 source interface fastethernet 0/2!--- This configures interface Fast Ethernet 0/2 as source port.C2950(config)#monitor session 1 destination interface fastethernet 0/3!--- This configures interface Fast Ethernet 0/3 as destination port.C2950(config)# C2950#show monitor session 1Session 1---------Source Ports:    RX Only:       None        TX Only:       None        Both:          Fa0/2Destination Ports: Fa0/3C2950#
You can also configure a port as a destination for local SPAN and RSPAN for the same VLAN traffic. In order to monitor traffic for a particular vlan that resides in two switches directly connected, configure these commands on the switch that has the destination port. In this example, we monitor traffic from VLAN 5 that is spread across two switches:
c3750(config)#monitor session 1 source vlan < Remote RSPAN VLAN ID >c3750(config)#monitor session 1 source vlan 5c3750(config)#monitor session 1 destination fastethernet 0/3!--- This configures interface FastEthernet 0/3 as a destination port.
On the remote switch, use this configuration:
c3750_remote(config)#monitor session 1 source vlan 5!--- Specifies VLAN 5 as the VLAN to be monitored.c3750_remote(config)#monitor session 1 destination remote vlan  <Remote vlan id>
In the previous example a port was configured as a destination port for both local SPAN and the RSPAN to monitor traffic for the same VLAN that resides in two switches.
Note: Unlike the 2900XL and 3500XL Series Switches, the Catalyst 2940, 2950, 2955, 2960, 2970, 3550, 3560, 3560-E, 3750, and 3750-E Series Switches support SPAN on source port traffic in the Rx direction only (Rx SPAN or ingress SPAN), in the Tx direction only (Tx SPAN or egress SPAN), or both.
Note: The commands in the configuration are not supported on the Catalyst 2950 with Cisco IOS Software Release 12.0(5.2)WC(1) or any software that is earlier than Cisco IOS Software Release 12.1(6)EA2. Refer to the Enabling Switch Port Analyzer section of Managing Switches in order to configure SPAN on a Catalyst 2950 with software that is earlier than Cisco IOS Software Release 12.1(6)EA2.
Note: Catalyst 2950 Switches that use Cisco IOS Software Release 12.1.(9)EA1d and earlier releases in the Cisco IOS Software Release 12.1 train support SPAN. However, all packets that are seen on the SPAN destination port (connected to the sniffing device or PC) have an IEEE 802.1Q tag, even though the SPAN source port (monitored port) might not be an 802.1Q trunk port. If the sniffing device or PC network interface card (NIC) does not understand 802.1Q-tagged packets, the device can drop the packets or have difficulty as it tries to decode the packets. The ability to see the 802.1Q-tagged frames is important only when the SPAN source port is a trunk port. With Cisco IOS Software Release 12.1(11)EA1 and later, you can enable and disable tagging of the packets at the SPAN destination port. Issue the monitor session session_number destination interface interface_id encapsulation dot1q command in order to enable encapsulation of the packets at the destination port. If you do not specify the encapsulation keyword, the packets are sent untagged, which is the default in Cisco IOS Software Release 12.1(11)EA1 and later.
Feature
Catalyst 2950/3550
Ingress (inpkts) enable/disable option
Cisco IOS Software Release 12.1(12c)EA1
RSPAN
Cisco IOS Software Release 12.1(12c)EA1

Feature
Catalyst 29401, 2950, 2955, 2960, 2970, 3550, 3560, 3750
Rx or both SPAN sessions
2
Tx SPAN sessions
2
Rx, Tx, or both RSPAN source sessions
2
RSPAN destination
2
Total sessions
2
1 The Catalyst 2940 Switches only support local SPAN. RSPAN is not supported in this platform.
Refer to these configuration guides for more information on the configuration of SPAN and RSPAN:

论坛徽章:
0
17 [报告]
发表于 2008-06-16 14:21 |只看该作者
原帖由 seven007 于 2008-6-16 13:38 发表

SPAN on the Catalyst 2940, 2950, 2955, 2960, 2970, 3550, 3560, 3560-E, 3750 and 3750-E Series Switches These are guidelines for the configuration of the SPAN feature on the Catalyst 2940, 2950, ...


C2950#configure terminalC2950(config)#C2950(config)#monitor session 1 source interface fastethernet 0/2!--- This configures interface Fast Ethernet 0/2 as source port.C2950(config)#monitor session 1 destination interface fastethernet 0/3!--- This configures interface Fast Ethernet 0/3 as destination port.

source interface
destination interface
哪个接网络分析软件端口?

论坛徽章:
0
18 [报告]
发表于 2008-06-16 14:27 |只看该作者
原帖由 happymood 于 2008-6-16 14:21 发表


C2950#configure terminalC2950(config)#C2950(config)#monitor session 1 source interface fastethernet 0/2!--- This configures interface Fast Ethernet 0/2 as source port.C2950(config)#monitor se ...

the destination port接网络分析软件PC的接口,如果这样,我有24个口,3号口对2号口进行抓包进行分析了,其它的口都不分析了?

论坛徽章:
3
辰龙
日期:2013-11-20 23:03:57子鼠
日期:2014-05-26 14:46:482015年亚洲杯之伊拉克
日期:2015-01-30 14:29:38
19 [报告]
发表于 2008-06-16 14:45 |只看该作者
原帖由 happymood 于 2008-6-16 14:27 发表

the destination port接网络分析软件PC的接口,如果这样,我有24个口,3号口对2号口进行抓包进行分析了,其它的口都不分析了?

2950似乎支持对两个端口镜像。

论坛徽章:
0
20 [报告]
发表于 2008-06-16 14:53 |只看该作者
原帖由 seven007 于 2008-6-16 14:45 发表

2950似乎支持对两个端口镜像。

那我有24个port啦,如果这样分析,要好多的时间啦,


Cisco哪一个型号的switch能支持完呢?

谢谢你啦
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP