Layer2&Layer3 switch intro(CCNP BCMAN)

2009年06月10日 09:14  |  分类:网络

a layer2 switch performs essentially the same function as a transparent bridge. however, a switch can have many ports and can perform hardware-based bridging. Frames are forwarded using specialized hardware, called application-specific integrated circuits(ASICs). This hardware gives switching great scalability, with wire-speed performance, low latency, low cost, and high-port density.

the router can become a bottleneck due to a latency of packet examination and processing.

Layer 3 switches are designed to examine and forward packets in high-speed LAN environments. Whereas, a router might impose a bottleneck to forwarding throughput, a Layer 3 switch can be placed anywhere in the network with little or no performance penalty.

如何升级Huawei-S3952的VRP

2008年10月24日 00:43  |  分类:网络

每种产品都有生命周期,为了保障用户的权宜,提高产品的竞争力,网络设备往往使用通用的系统平台,例如cisco路由器的系统平台是IOS,而华为交换机的系统平台则称之为VRP。

huawei-S3952S3952是华为公司推出的一款企业级三层交换机,在alfie参与的某个项目中,由于所使用的S3952的VRP版本过低,不支持VRRP功能,所以需要进行升级,然而升级的过程中遇到很多挫 折,在这里写出来供有升级需求的读者参考。

全文阅读 »

如何配置华为S3900交换机的端口镜像

2008年10月23日 15:03  |  分类:网络

最新的项目需要在汇聚S3900上面做一个镜像,捕获和SMS系统连接的那个端口的数据包,翻遍了华为的《Quidway S3900系列以太网交换机 命令手册-Release 1510(V1.01).pdf》又做了n多实验,终于大概了解的华为交换机做端口镜像的要点。

配置步骤如下

一、定义mirroring group
system-view
mirroring-group 2 #group_id
二、定义被镜像的端口,也就是源端口
mirroring-group 2 mirroring-port eth 1/0/4 both

其中both指的是从该端口进来和出去的数据包都将被捕获,还可以选择inbound和outbound

三、定义目的端口
mirroring-group 2 monitor-port eth 1/0/10

接着将网线查到eth1/0/10,启用ethereal,promisc模式捕获。

在该交换机的配置中eth1/0/4属于vlan 40,eth1/0/10属于管理vlan。它们不需要处于同一个vlan。

四、查看mirroring group
disp mirroring-group 2

通过上面镜像的包很杂,所以在利用ehereal做分析的时候可利用filter进行过滤。

说明:曾经想在交换机上面应用acl,只捕获感兴趣的包,但是发现华为的文档是错的,在《Quidway S3900系列以太网交换机 命令手册-Release1510(V1.01).pdf》中有一个例子:

<quidway> system-view 
System View: return to User View with Ctrl+Z. 
[Quidway] interface GigabitEthernet1/1/4 
[Quidway-GigabitEthernet1/1/4] monitor-port 
[Quidway-GigabitEthernet1/1/4] quit 
[Quidway] interface GigabitEthernet1/1/1 
[Quidway-GigabitEthernet1/1/1] mirrored-to inbound ip-group 2000 monitor-interface

依葫芦画瓢,我在S3900上面做了如下的配置:

1、定义源端口
int eth 1/0/4
mirrored-to inbound ip-group 3000 rule 30 monitor-interface
2、定义目的端口
int eth 1/0/10
 
monitor-port

我发现不论怎么调整acl,都无法在目的端口捕获到数据包,华为的文档真是太滥,相比之下,cisco这方面做得很好。