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