switch.>用户模式
1 :进入特权模式enable
switch>enable
switch#
 
2:进入全局配置模式configure terminal
switch>enable
switch#configure terminal
switch(conf)#
 
3:交换机命名 host name qingqi2010以qingqi2010为例
switch>enable
switch#configure terminal
switch(conf)#hostname qingqi2010
qingqi2010(conf)#
 
4:配置使能命令 enable passwode cisco 以cisco为例
switch>enable
switch#configure terminal
switch(conf)#hostname qingqi2010
qingqi2010(conf)enable passwode cisco
 
5:配置使能密码 enable secret ciscolab 以ciscolab为例
switch>enable
switch#configure terminal
switch(conf)#hostname qingqi2010
qingqi2010(conf)#enable secret ciscolab
 
6:设置虚拟局域网 vlan  1 interface vlan 1
switch>enable
switch#configure terminal
switch(conf)#hostname qingqi2010
qingqi2010(conf)#interface vlan 1
qingqi2010(conf-if)#ip address 172.16.1.1 255.255.255.0配置交换机端口ip和子网掩码
qingqi2010(conf-if)#no shut 是配置处于运行中
qingqi2010(conf-if)#exit
qingqi 2010(conf-if)#ip default-gateway 172.16.254 配置网关地址