华为3026交换机流量监控配置单
Z)5klg$c 注明:此交换机为华为3026系列交换机,做流量监控的必须配置要求
Z)5klg$c Z)5klg$c <Quidway>display current-configuration 【显示交换机配置信息】
Z)5klg$c #
Z)5klg$c sysname Quidway
Z)5klg$c #
Z)5klg$c radius scheme system
Z)5klg$c server-type huawei
Z)5klg$c primary authentication 127.0.0.1 1645
Z)5klg$c primary accounting 127.0.0.1 1646
Z)5klg$c user-name-format without-domain
Z)5klg$c domain system
A`7uw|uO$ radius-scheme system
A`7uw|uO$ access-limit disable
A`7uw|uO$ state active
A`7uw|uO$ vlan-assignment-mode integer
A`7uw|uO$ idle-cut disable
A`7uw|uO$ self-service-url disable
A`7uw|uO$ messenger time disable
A`7uw|uO$ domain default enable system
A`7uw|uO$ #
A`7uw|uO$ local-server nas-ip 127.0.0.1 key huawei
A`7uw|uO$ #
A`7uw|uO$ temperature-limit 0 42 65
A`7uw|uO$ #
A`7uw|uO$ am enable 【这里要开启】
A`7uw|uO$ #
A`7uw|uO$ vlan 1
A`7uw|uO$ #
A`7uw|uO$ interface Vlan-interface1 【设置交换机IP】
A`7uw|uO$ ip address 交换机VLAN1IP 掩码地址
A`7uw|uO$ #
A`7uw|uO$ interface Aux0/0
A`7uw|uO$ #
A`7uw|uO$ interface Ethernet0/1 【这里设置1口为出入口】
A`7uw|uO$ #
A`7uw|uO$ interface Ethernet0/2 【以下2-24口彼此都做隔离】
A`7uw|uO$ am isolate Ethernet0/3 to Ethernet0/24
A`7uw|uO$ #
A`7uw|uO$ interface Ethernet0/3
A`7uw|uO$ am isolate Ethernet0/2 Ethernet0/4 to Ethernet0/24
A`7uw|uO$ #
A`7uw|uO$ interface Ethernet0/4
A`7uw|uO$ am isolate Ethernet0/2 to Ethernet0/3 Ethernet0/5 to Ethernet0/24
A`7uw|uO$ #
A`7uw|uO$ interface Ethernet0/5
A`7uw|uO$ am isolate Ethernet0/2 to Ethernet0/4 Ethernet0/6 to Ethernet0/24
A`7uw|uO$ #
A`7uw|uO$ interface Ethernet0/6
A`7uw|uO$ am isolate Ethernet0/2 to Ethernet0/5 Ethernet0/7 to Ethernet0/24
A`7uw|uO$ #
A`7uw|uO$ interface Ethernet0/7
A`7uw|uO$ am isolate Ethernet0/2 to Ethernet0/6 Ethernet0/8 to Ethernet0/24
A`7uw|uO$ #
A`7uw|uO$ interface Ethernet0/8
A`7uw|uO$ am isolate Ethernet0/2 to Ethernet0/7 Ethernet0/9 to Ethernet0/24
A`7uw|uO$ #
A`7uw|uO$ interface Ethernet0/9
A`7uw|uO$ am isolate Ethernet0/2 to Ethernet0/8 Ethernet0/10 to Ethernet0/24
A`7uw|uO$ #
A`7uw|uO$ interface Ethernet0/10
A`7uw|uO$ am isolate Ethernet0/2 to Ethernet0/9 Ethernet0/11 to Ethernet0/24
A`7uw|uO$ #
A`7uw|uO$ interface Ethernet0/11
A`7uw|uO$ am isolate Ethernet0/2 to Ethernet0/10 Ethernet0/12 to Ethernet0/24
A`7uw|uO$ #
A`7uw|uO$ interface Ethernet0/12
A`7uw|uO$ am isolate Ethernet0/2 to Ethernet0/11 Ethernet0/13 to Ethernet0/24
A`7uw|uO$ #
A`7uw|uO$ interface Ethernet0/13
A`7uw|uO$ am isolate Ethernet0/2 to Ethernet0/12 Ethernet0/14 to Ethernet0/24
A`7uw|uO$ #
A`7uw|uO$ interface Ethernet0/14
A`7uw|uO$ am isolate Ethernet0/2 to Ethernet0/13 Ethernet0/15 to Ethernet0/24
A`7uw|uO$ #
A`7uw|uO$ interface Ethernet0/15
A`7uw|uO$ am isolate Ethernet0/2 to Ethernet0/14 Ethernet0/16 to Ethernet0/24
A`7uw|uO$ #
A`7uw|uO$ interface Ethernet0/16
A`7uw|uO$ am isolate Ethernet0/2 to Ethernet0/15 Ethernet0/17 to Ethernet0/24
A`7uw|uO$ #
A`7uw|uO$ interface Ethernet0/17
A`7uw|uO$ am isolate Ethernet0/2 to Ethernet0/16 Ethernet0/18 to Ethernet0/24
A`7uw|uO$ #
A`7uw|uO$ interface Ethernet0/18
A`7uw|uO$ am isolate Ethernet0/2 to Ethernet0/17 Ethernet0/19 to Ethernet0/24
A`7uw|uO$ #
A`7uw|uO$ interface Ethernet0/19
A`7uw|uO$ am isolate Ethernet0/2 to Ethernet0/18 Ethernet0/20 to Ethernet0/24
A`7uw|uO$ #
A`7uw|uO$ interface Ethernet0/20
A`7uw|uO$ am isolate Ethernet0/2 to Ethernet0/19 Ethernet0/21 to Ethernet0/24
A`7uw|uO$ #
A`7uw|uO$ interface Ethernet0/21
A`7uw|uO$ am isolate Ethernet0/2 to Ethernet0/20 Ethernet0/22 to Ethernet0/24
A`7uw|uO$ #
A`7uw|uO$ interface Ethernet0/22
A`7uw|uO$ am isolate Ethernet0/2 to Ethernet0/21 Ethernet0/23 to Ethernet0/24
A`7uw|uO$ #
A`7uw|uO$ interface Ethernet0/23
A`7uw|uO$ am isolate Ethernet0/2 to Ethernet0/22 Ethernet0/24
A`7uw|uO$ #
A`7uw|uO$ interface Ethernet0/24
A`7uw|uO$ am isolate Ethernet0/2 to Ethernet0/23
A`7uw|uO$ #
A`7uw|uO$ interface NULL0
A`7uw|uO$ # 【设置交换机网络关】
A`7uw|uO$ ip route-static 0.0.0.0 0.0.0.0 网关IP preference 60
A`7uw|uO$ # 【开启SNMP协议】
A`7uw|uO$ snmp-agent
A`7uw|uO$ snmp-agent local-engineid 800007DB000FE20183BF6877
A`7uw|uO$ snmp-agent community write private
A`7uw|uO$ snmp-agent community read olylinux 【设置public信息,可随意名称】
A`7uw|uO$ snmp-agent sys-info contact
xxxx@126.com A`7uw|uO$ snmp-agent sys-info location BeiJing China
A`7uw|uO$ snmp-agent sys-info version all
A`7uw|uO$ snmp-agent trap enable standard
A`7uw|uO$ snmp-agent trap enable configuration
A`7uw|uO$ #
A`7uw|uO$ user-interface aux 0
A`7uw|uO$ user-interface vty 0 4 【设置远程登陆密码】
A`7uw|uO$ user privilege level 3
A`7uw|uO$ set authentication password simple 远程登陆密码
A`7uw|uO$ #
80*hi)ux[
return
80*hi)ux[
80*hi)ux[
如何删除不用的规则
80*hi)ux[
1.删除交换机VLAN1IP
80*hi)ux[
interface Vlan-interface1 【先进入】