switch>en
switch#conf t
switch(config)#enable password ipdataccna
switch(config)#hostname ipdata
ipdata(config)#exit
ipdata#exit
试验是否成功
ipdata>en
password:
ipdata#