华为交换机命令大全
查看当前配置:display current-configuration
查看接口信息:display interface
查看 VLAN 信息:display vlan
查看 ARP 表:display arp
查看 MAC 地址表:display mac-address
查看路由表:display ip routing-table
查看设备信息:display device
查看系统版本:display version
查看电源状态:display power
查看风扇状态:display fan
查看温度:display temperature
查看 CPU 使用率:display cpu-usage
查看内存使用率:display memory-usage
查看链路状态:display link-aggregation
查看堆叠信息:display stack
查看集群信息:display cluster
查看 OSPF 邻居:display ospf neighbor
查看 BGP 邻居:display bgp neighbor
配置 VLAN:vlan [vlan-id]
配置端口:interface [interface-id]
配置 IP 地址:ip address [ip-address] [mask]
配置静态路由:ip route-static [destination-network] [mask] [next-hop]
启用或禁用端口:shutdown/undo shutdown
配置端口速率:interface [interface-id] speed [speed]
配置端口双工模式:interface [interface-id] duplex [duplex]
配置链路聚合:link-aggregation group [group-id] mode [mode] interface [interface-id1] [interface-id2]...。
配置生成树协议:stp [stp-mode] root [primary/secondary]
配置 VRRP:interface [interface-id] vrrp vrid [vrid] [virtual-ip] [priority]
配置 ACL:acl [acl-number] rule [rule-number] permit/deny [source-network] [destination-network] [protocol] [port]
配置 QoS:qos car [class-id] [bandwidth]
配置 SNMP:snmp-agent community [community-string] [ro/rw]
保存配置:save
查看系统日志:display log
升级系统软件:ftp load
配置 SNMP 团体名:snmp-agent community write community-string
配置 SNMP 版本:snmp-agent sys-info version v2c/v3
配置端口镜像:port-mirroring to monitor-port inbound/outbound
配置风暴控制:storm-control enable broadcast/unicast/multicast threshold rate
配置 DHCP 服务器:dhcp server ip-pool pool-name network network-address mask mask-address dns-list dns-address1 dns-address2...
配置 DHCP 中继:dhcp relay server-ip server-address
