华为交换机的基本命令
配置模式
system-view (从用户模式切换到配置)
Enter system view, return user view with Ctrl+Z.
[Huawei]
[Huawei]quit
(从配置模式切换到用户模配置)
基本配置命令:
display interface brief
交换机常用的物理接口类型:
Ethernet:10m
FastEthernet:100m
GigabitEthernet:1000m
如何进入一个接口:
[Huawei]interface Ethernet 0/0/1 #进入端口模式
[Huawei-Ethernet0/0/1]
[Huawei-Ethernet0/0/1]display this #只显示当前模式的配置
[Huawei-Ethernet0/0/1]description link-switch01 #对端口进注释
[Huawei-Ethernet0/0/1]display this
interface Ethernet0/0/1
description
link-switch01
[Huawei-Ethernet0/0/1]display current-configuration
查看交换机上所有的配置信息。
save #对配置信息进行保存
The current configuration will be written to the device.
Are you sure to continue?[Y/N]y
Now saving the current configuration to the slot 0.
Jul 25 2019 10:47:48-08:00 Huawei
%%01CFM/4/SAVE(l)[50]:The user chose Y when dec
iding whether to save the configuration to the device.
Save the configuration successfully.