进入系统视图:system-view
返回用户视图:quit
保存配置:save
查看当前配置:display current-configuration
查看启动配置:display startup-configuration
例如:interface GigabitEthernet1/0/1
启用接口:undo shutdown
创建VLAN:vlan [VLAN ID]
例如:vlan 10
为接口分配VLAN:interface [接口名]
port access vlan [VLAN ID]
例如:interface GigabitEthernet1/0/1
port access vlan 10
配置Trunk接口:interface [接口名]
port link-type trunk
port trunk permit vlan [VLAN列表]
例如:interface GigabitEthernet1/0/1
port link-type trunk
例如:interface Bridge-Aggregation 1
将接口加入链路聚合组:interface [接口名]
port link-aggregation group [组号]
例如:interface GigabitEthernet1/0/1
启用生成树协议:stp enable
启用端口安全:interface [接口名]
例如:interface GigabitEthernet1/0/1
port-security enable
例如:port-security max-mac-count 1
例如:port-security mac-address 00E0.4C68.0001
查看接口状态:display interface [接口名]
例如:display interface GigabitEthernet1/0/1
查看ARP表:display arp
查看MAC地址表:display mac-address
例如:sysname Switch1
配置登录密码:user-interface vty 0 4
例如:user-interface vty 0 4
set authentication password simple mypassword
热门关键词:13048291888