ROS软路由论坛 ROSABC.com 网络方案网络工程交流

 找回密码
 会员注册

QQ登录

只需一步,快速开始

查看: 3648|回复: 0

华为2300交换机镜像配置教程

[复制链接]
发表于 2015-12-3 09:53:49 | 显示全部楼层 |阅读模式

马上注册成为ROSABC会员,随时发帖回复。

您需要 登录 才可以下载或查看,没有账号?会员注册

x
电话:15387060596   QQ:2221920342     有什么关于网络技术 优惠价拿缓存都可以联系~


关键配置:


#设置观察口(接缓存的镜像口)
observe-port 1 interface Ethernet0/0/24   

#接路由LAN口,将数据镜像到镜像口
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 2 to 4094
port-mirroring to observe-port 1 inbound
port-mirroring to observe-port 1 outbound
#接缓存的管理口,允许所有VLAN访问                                         
interface GigabitEthernet0/0/2
port link-type trunk
port trunk allow-pass vlan 2 to 4094
loopback-detect enable
完整配置如下:

# telnet passwd: huawei
[Quidway]display cu
#
!Software Version V100R006C03
sysname Quidway
#
vlan batch 2 to 99 101 to 199 201 to 4094
#
undo http server enable

#观察口(接缓存的镜像口)
observe-port 1 interface Ethernet0/0/24   
#
aaa
authentication-scheme default
authorization-scheme default
accounting-scheme default
domain default
domain default_admin
local-user admin password cipher %$%$I6.ASV)hJET,p"Dn.YM%3aXO%$%$
local-user admin service-type http
#
interface Vlanif1
ip address 172.16.1.253 255.255.255.0
#
interface Ethernet0/0/1
port link-type access
loopback-detect enable                  
port-isolate enable group 1
#
interface Ethernet0/0/2
port link-type access
port default vlan 2
loopback-detect enable
port-isolate enable group 1
#
interface Ethernet0/0/3
port link-type access
port default vlan 3
loopback-detect enable
port-isolate enable group 1
#
interface Ethernet0/0/4
port link-type access
port default vlan 4
loopback-detect enable
port-isolate enable group 1
#
interface Ethernet0/0/5
port link-type access
port default vlan 5
loopback-detect enable                  
port-isolate enable group 1
#
interface Ethernet0/0/6
port link-type access
port default vlan 6
loopback-detect enable
port-isolate enable group 1
#
interface Ethernet0/0/7
port link-type access
port default vlan 7
loopback-detect enable
port-isolate enable group 1
#
interface Ethernet0/0/8
port link-type access
port default vlan 8
loopback-detect enable
port-isolate enable group 1
#
interface Ethernet0/0/9
port link-type access
port default vlan 9
loopback-detect enable                  
port-isolate enable group 1
#
interface Ethernet0/0/10
port link-type access
port default vlan 10
loopback-detect enable
#
interface Ethernet0/0/11
port link-type access
port default vlan 11
loopback-detect enable
port-isolate enable group 1
#
interface Ethernet0/0/12
port link-type access
port default vlan 12
loopback-detect enable
port-isolate enable group 1
#
interface Ethernet0/0/13
port link-type access
port default vlan 13
loopback-detect enable
port-isolate enable group 1               
#
interface Ethernet0/0/14
port link-type access
port default vlan 14
loopback-detect enable
port-isolate enable group 1
#
interface Ethernet0/0/15
port link-type access
port default vlan 15
loopback-detect enable
port-isolate enable group 1
#
interface Ethernet0/0/16
port link-type access
port default vlan 16
loopback-detect enable
port-isolate enable group 1
#
interface Ethernet0/0/17
port link-type access
port default vlan 26
loopback-detect enable
port-isolate enable group 1               
#
interface Ethernet0/0/18
port link-type access
port default vlan 18
loopback-detect enable
port-isolate enable group 1
#
interface Ethernet0/0/19
port link-type access
port default vlan 19
loopback-detect enable
port-isolate enable group 1
#
interface Ethernet0/0/20
port link-type access
port default vlan 20
loopback-detect enable
port-isolate enable group 1
#
interface Ethernet0/0/21
port link-type access
port default vlan 21
loopback-detect enable
port-isolate enable group 1               
#
interface Ethernet0/0/22
port link-type access
port default vlan 22
loopback-detect enable
port-isolate enable group 1
#
interface Ethernet0/0/23
port link-type access
port default vlan 23
loopback-detect enable
port-isolate enable group 1
#
interface Ethernet0/0/24
port link-type access
loopback-detect enable
port-isolate enable group 1

#接路由LAN口,将数据镜像到镜像口
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 2 to 4094
port-mirroring to observe-port 1 inbound
port-mirroring to observe-port 1 outbound

#接缓存的管理口,允许所有VLAN访问                                         
interface GigabitEthernet0/0/2
port link-type trunk
port trunk allow-pass vlan 2 to 4094
loopback-detect enable
您需要登录后才可以回帖 登录 | 会员注册

本版积分规则

不良信息举报Q:2000617
新用户7天后可回帖!

软路由

不良信息举报Q:2000617|Archiver|ROS软路由论坛 ROSABC.com 网络方案网络工程交流

GMT+8, 2025-11-19 23:05 , Processed in 0.038224 second(s), 17 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表