letgohome 2007-9-21 15:01
华为交换机设置大全
[url=http://www.pcdog.com/network/switch/2007/09/f193394.html]华为3Com公司三层以太网交换机[/url]
[url=http://www.pcdog.com/network/switch/2007/09/f193390.html]华为3Com全千兆交换机家族添新成员[/url]
[url=http://www.pcdog.com/diy/devices/2006/11/f156239.html]华为3COM 24口千兆交换机再降400售2400元[/url]
[url=http://www.pcdog.com/network/huawei/2006/11/f156882.html]华为QuidwayS8016骨干交换机在银行中的应用[/url]
[url=http://www.pcdog.com/network/huawei/2006/11/f156440.html]华为核心交换机添新丁[/url]
[url=http://www.pcdog.com/network/huawei/2006/09/f145706.html]华为交换机端口限速[/url]
[url=http://www.pcdog.com/network/huawei/2006/09/f145703.html]华为交换机交换机端口镜像配置[/url]
[url=http://www.pcdog.com/diy/devices/2006/09/x144529.html]16口华为商用交换机八折优惠 仅售430元[/url]
[url=http://www.pcdog.com/network/switch/2006/11/p169213.html]判断华为中低端交换机是二层还是三层的简单方法[/url]
[url=http://www.pcdog.com/network/switch/2006/11/f167878.html]华为3COM交换机PVLAN配置使用说明[/url]
[url=http://www.pcdog.com/network/switch/2005/10/x036468.html]思科华为几种主流交换机的镜像配置方法[/url]
[url=http://www.pcdog.com/network/switch/2005/10/j036322.html]华为3Com再推二层交换机新品S3100[/url]
[url=http://www.pcdog.com/network/switch/2005/10/j036320.html]华为3Com推出S3100系列千兆智能交换机[/url]
[url=http://www.pcdog.com/network/switch/2005/10/f036070.html]华为交换机中小企业或大企分支机构的常用配置[/url]
[url=http://www.pcdog.com/network/switch/2005/10/f036068.html]华为交换机ip mac 端口绑定!![/url]
[url=http://www.pcdog.com/network/switch/2005/10/f036067.html]华为交换机端口**配置[/url]
[url=http://www.pcdog.com/network/switch/2005/10/f036065.html]华为交换机端口镜像配置[/url]
[url=http://www.pcdog.com/network/switch/2005/10/j036061.html]华为8016交换机DHCP配置[/url]
[url=http://www.pcdog.com/network/switch/2005/10/j036050.html]华为Quidway S8016骨干交换机在银行中的应用[/url]
[url=http://www.pcdog.com/network/switch/2005/10/i036034.html]华为C&C08交换机发展历程[/url]
[url=http://www.pcdog.com/network/switch/2005/10/n036014.html]华为交换机命令手册--2005配置[/url]
[url=http://www.pcdog.com/network/switch/2005/10/n036013.html]华为交换机SNMP配置命令[/url]
[url=http://www.pcdog.com/network/switch/2005/10/i035972.html]华为S3026交换机对端口流量限制的的例子[/url]
[url=http://www.pcdog.com/network/switch/2005/10/u035627.html]Cisco、华为、Intel交换机漫谈[/url]
[url=http://www.pcdog.com/network/switch/2005/10/h035502.html]华为三层以太网交换机基本原理及转发流程[/url]
[url=http://www.pcdog.com/network/switch/2005/10/w035448.html]配置华为3526e交换机[/url]
[url=http://www.pcdog.com/network/switch/2005/10/n035338.html]华为、Intel与Cisco的交换机产品使用感受[/url]
[url=http://www.pcdog.com/network/route/2005/10/w034756.html]思科领跑路由器和交换机市场 华为第三[/url]
[url=http://www.pcdog.com/network/route/2005/10/f034618.html]华为路由器交换机VLAN配置实例[/url]
[url=http://www.pcdog.com/network/route/2005/10/l034506.html]交换机命令---华为路由器配置[/url]
letgohome 2007-9-21 18:22
一、说明
『环境配置参数』
1. PC1接在交换机E0/1端口,IP地址1.1.1.1/24
2. PC2接在交换机E0/2端口,IP地址2.2.2.2/24
3. E0/24为交换机上行端口
4. Server接在交换机E0/8端口,该端口作为镜像端口
『组网需求』
1. 通过交换机端口镜像的功能使用server对两台pc的业务报文进行监控。
2. 按照镜像的不同方式进行配置:
1) 基于端口的镜像
2) 基于流的镜像
二、 数据配置步骤『端口镜像的数据流程』
基于端口的镜像是把被镜像端口的进出数据报文完全拷贝一份到镜像端口,这样来进行流量观测或者故障定位。
【3026等交换机镜像】
S2008/S2016/S2026/S2403H/S3026等交换机支持的都是基于端口的镜像,有两种方法:
方法一
1. 配置镜像(观测)端口
[SwitchA]monitor-port e0/8
2. 配置被镜像端口
[SwitchA]port mirror Ethernet 0/1 to Ethernet 0/2
方法二
1. 可以一次性定义镜像和被镜像端口
[SwitchA]port mirror Ethernet 0/1 to Ethernet 0/2 observing-port Ethernet 0/8
【8016交换机端口镜像配置】
1. 假设8016交换机镜像端口为E1/0/15,被镜像端口为E1/0/0,设置端口1/0/15为端口镜像的观测端口。
[SwitchA] port monitor ethernet 1/0/15
2. 设置端口1/0/0为被镜像端口,对其输入输出数据都进行镜像。
[SwitchA] port mirroring ethernet 1/0/0 both ethernet 1/0/15
也可以通过两个不同的端口,对输入和输出的数据分别镜像
1. 设置E1/0/15和E2/0/0为镜像(观测)端口
[SwitchA] port monitor ethernet 1/0/15
2. 设置端口1/0/0为被镜像端口,分别使用E1/0/15和E2/0/0对输入和输出数据进行镜像。
[SwitchA] port mirroring gigabitethernet 1/0/0 ingress ethernet 1/0/15
[SwitchA] port mirroring gigabitethernet 1/0/0 egress ethernet 2/0/0
『基于流镜像的数据流程』
基于流镜像的交换机针对某些流进行镜像,每个连接都有两个方向的数据流,对于交换机来说这两个数据流是要分开镜像的。
【3500/3026E/3026F/3050】
〖基于三层流的镜像〗
1. 定义一条扩展访问控制列表
[SwitchA]acl num 100
2. 定义一条规则报文源地址为1.1.1.1/32去往所有目的地址
[SwitchA-acl-adv-101]rule 0 permit ip source 1.1.1.1 0 destination any
3. 定义一条规则报文源地址为所有源地址目的地址为1.1.1.1/32
[SwitchA-acl-adv-101]rule 1 permit ip source any destination 1.1.1.1 0
4. 将符合上述ACL规则的报文镜像到E0/8端口
[SwitchA]mirrored-to ip-group 100 interface e0/8
〖基于二层流的镜像〗
1. 定义一个ACL
[SwitchA]acl num 200
2. 定义一个规则从E0/1发送至其它所有端口的数据包
[SwitchA]rule 0 permit ingress interface Ethernet0/1 egress interface Ethernet0/2
3. 定义一个规则从其它所有端口到E0/1端口的数据包
[SwitchA]rule 1 permit ingress interface Ethernet0/2 egress interface Ethernet0/1
4. 将符合上述ACL的数据包镜像到E0/8
[SwitchA]mirrored-to link-group 200 interface e0/8
【5516/6506/6503/6506R】
目前该三款产品支持对入端口流量进行镜像
1. 定义镜像端口
[SwitchA]monitor-port Ethernet 3/0/2
2. 定义被镜像端口
[SwitchA]mirroring-port Ethernet 3/0/1 inbound
【补充说明】
1. 镜像一般都可以实现高速率端口镜像低速率端口,例如1000M端口可以镜像100M端口,反之则无法实现
2. 8016支持跨单板端口镜像
三、 测试验证在观测端口上通过工具软件可以看到被镜像端口的相应的报文,可以进行流量观测或者故障定位。