《华为交换机常用命令速查大全,工作直接复制粘贴》
大家好,本篇给大家整理一份华为交换机常用、高频、现场直接能用的命令速查,适合日常运维、项目交付、面试复习。
全部都是实战命令,没有废话,收藏这一篇基本够用。
一、基础查看类命令
display version // 查看版本信息
display current-configuration // 查看当前配置
display saved-configuration // 查看保存的配置
display ip interface brief // 查看接口IP与状态
display interface GigabitEthernet 0/0/1 // 查看单个接口信息
display cpu-usage // 查看CPU利用率
display memory-usage // 查看内存利用率
二、VLAN 配置命令
vlan 10 // 创建VLAN 10
name Test_VLAN // 给VLAN命名
interface GigabitEthernet 0/0/1
port link-type access
port default vlan 10 // 接口加入VLAN 10
三、Trunk 配置
interface GigabitEthernet 0/0/1
port link-type trunk
port trunk allow-pass vlan 10 20 30 // 放行VLAN
四、静态路由
ip route-static 192.168.2.0 255.255.255.0 192.168.1.1
五、端口聚合 Eth-Trunk
interface Eth-Trunk 1
mode lacp-static
interface GigabitEthernet 0/0/1
eth-trunk 1
interface GigabitEthernet 0/0/2
eth-trunk 1
六、DHCP 配置
dhcp enable
ip pool TestPool
gateway-list 192.168.1.1
network 192.168.1.0 mask 255.255.255.0
dns-list 223.5.5.5
interface Vlanif 10
ip address 192.168.1.1 255.255.255.0
dhcp select global
七、ACL 访问控制
acl number 3000
rule 10 deny ip source 192.168.1.0 0.0.0.255 destination 192.168.2.0 0.0.0.255
interface GigabitEthernet 0/0/1
traffic-filter inbound acl 3000
八、保存配置
save
九、常用排错命令
ping 192.168.1.1
tracert 192.168.1.1
display arp
display mac-address
display stp brief
以上就是华为交换机最常用、最实用的命令总结,工作中直接复制就能用。
后续我会继续更新:
- 锐捷 & 华为命令对照
- 网络排错实战案例
- 企业网络项目方案
- HCIA/HCIP 面试题
觉得有用可以点赞、收藏、关注,我会持续输出网络工程师实战干货。
更多推荐
所有评论(0)