30 个高频任务 × 三厂商命令, 输入关键词实时过滤 (如: vlan / ssh / stp / 备份)。
| 任务 | H3C (Comware) | 华为 (VRP) | 思科 (IOS) |
|---|---|---|---|
| 查看当前配置 | display current-configuration | display current-configuration | show running-config |
| 保存配置 | save | save | write memory |
| 查看版本/型号 | display version | display version | show version |
| 查看 VLAN 列表 | display vlan | display vlan | show vlan brief |
| 创建 VLAN | vlan 10 | vlan batch 10 | vlan 10 |
| 接入端口划 VLAN | port access vlan 10 | port default vlan 10 | switchport access vlan 10 |
| 配置 Trunk | port link-type trunk port trunk permit vlan all | port link-type trunk port trunk allow-pass vlan all | switchport mode trunk switchport trunk allowed vlan all |
| 查看 MAC 地址表 | display mac-address | display mac-address | show mac address-table |
| 查看 ARP 表 | display arp | display arp all | show ip arp |
| 查看接口状态(简) | display interface brief | display interface brief | show ip interface brief |
| 查看接口详细(错包/CRC) | display interface GigabitEthernet1/0/1 | display interface GigabitEthernet0/0/1 | show interfaces gigabitEthernet0/1 |
| 端口描述 | description To-Core | description To-Core | description To-Core |
| 开启 SSH 登录 | ssh server enable user-interface vty 0 4 authentication-mode scheme | stelnet server enable user-interface vty 0 4 authentication-mode aaa | ip domain-name x.com crypto key generate rsa line vty 0 4 transport input ssh login local |
| 创建本地用户 | local-user admin class manage password simple P@ss service-type ssh | aaa local-user admin password cipher P@ss local-user admin service-type ssh | username admin secret P@ss |
| 查看 CPU/内存 | display cpu-usage display memory | display cpu-usage display memory-usage | show processes cpu sorted show memory statistics |
| 查看日志 | display logbuffer | display logbuffer | show logging |
| 配置 SNMP | snmp-agent snmp-agent community read public | snmp-agent snmp-agent community read public | snmp-server community public RO |
| 配置 NTP | ntp-service unicast-server 10.1.1.1 | ntp-service unicast-server 10.1.1.1 | ntp server 10.1.1.1 |
| 查看 STP 状态 | display stp brief | display stp brief | show spanning-tree summary |
| 查看 STP 根桥 | display stp root | display stp root | show spanning-tree root |
| 链路聚合(手工) | interface Bridge-Aggregation 1 link-aggregation mode dynamic | interface Eth-Trunk 1 mode lacp | interface Port-channel 1 channel-group 1 mode active |
| 查看聚合口状态 | display link-aggregation summary | display eth-trunk | show etherchannel summary |
| 端口安全(绑 MAC) | port-security enable port-security max-mac-count 1 | port-security enable port-security max-mac-num 1 | switchport port-security switchport port-security maximum 1 |
| 重启设备 | reboot | reboot | reload |
| 查看路由表 | display ip routing-table | display ip routing-table | show ip route |
| 配置默认路由 | ip route-static 0.0.0.0 0 10.1.1.254 | ip route-static 0.0.0.0 0 10.1.1.254 | ip route 0.0.0.0 0.0.0.0 10.1.1.254 |
| DHCP 服务(接口) | dhcp enable | dhcp enable | service dhcp (IOS) |
| 查看设备告警 | display alarm | display alarm | show facility-alarm status |
| 配置 syslog 服务器 | info-center loghost 10.1.1.10 | info-center loghost 10.1.1.10 | logging host 10.1.1.10 |
| 备份配置到 TFTP | backup startup-configuration to 10.1.1.10 cfg.cfg | backup startup-configuration to 10.1.1.10 cfg.cfg | copy startup-config tftp: |