基础配置命令

启动后进入交换机

设置中文提示

1
language-mode Chinese

进入系统视图

1
system-view

用户权限

1
user privilege level 15

进入console配置

1
user-interface console 0

设置console密码

1
2
authentication-mode password
set authentication password simple Huawei

设置登录前后标语

1
2
header login information "This is SW1"
header shell information "login succeed"

创建与划分vlan

创建vlan

1
vlan batch 10 20

进入端口并划分vlan

1
2
3
interface GigabitEthernet 0/0/1
port link-type access
port default vlan 10

设置vlan IP

1
2
interface vlanif 10
ip address 192.168.10.1 24

查看配置结果

1
display current-configuration