系统视图操作


system-view # 进入系统视图
quit # 返回上一级视图
return # 直接返回用户视图
sysname [name] # 设置设备名称

用户管理


local-user [username] class manage # 创建管理用户
password simple [password] # 设置明文密码
password cipher [password] # 设置密文密码
service-type telnet terminal # 设置用户服务类型
level [0-15] # 设置用户权限级别
user-interface vty 0 4 # 配置VTY用户界面
authentication-mode scheme # 设置认证方式为AAA
protocol inbound all # 允许所有协议接入

接口配置


interface GigabitEthernet 1/0/1 # 进入接口视图
description [text] # 设置接口描述
port link-type access # 设置接口为access模式
port link-type trunk # 设置接口为trunk模式
port trunk permit vlan all # trunk允许所有VLAN通过
undo shutdown # 开启接口
shutdown # 关闭接口

VLAN配置


vlan [vlan-id] # 创建VLAN并进入VLAN视图
name [vlan-name] # 设置VLAN名称
description [text] # 设置VLAN描述
undo vlan [vlan-id] # 删除VLAN

接口VLAN分配


port access vlan [vlan-id] # 将access接口加入VLAN
port trunk permit vlan [vlan-list] # trunk接口允许通过的VLAN
port trunk pvid vlan [vlan-id] # 设置trunk接口的PVID