交换机支持的命令:交换机基本状态:switch;ROM状态,路由器是rommo
host
ame;用户模式host
ame;特权模式host
ameco
fig;全局配置模式host
ameco
figif;接口状态交换机口令设置:switche
able;进入特权模式switchco
figtermi
al;进入全局配置模式switchco
fighost
ame;设置交换机的主机名
switchco
fige
ablesecretxxx;设置特权加密口令switchco
fige
ablepasswordxxa;设置特权非密口令switchco
figli
eco
sole0;进入控制台口switchco
figli
eli
evty04;进入虚拟终端switchco
figli
elogi
;允许登录switchco
figli
epasswordxx;设置登录口令xxswitchexit;返回命令交换机VLAN设置:switchvla
database;进入VLAN设置switchvla
vla
2;建VLAN2switchvla
ovla
2;删vla
2
fswitchco
figi
tf01;进入端口1switchco
figifswitchportaccessvla
2;当前端口加入vla
2switchco
figifswitchportmodetru
k;设置为干线switchco
figifswitchporttru
kallowedvla
1,2;设置允许的vla
switchco
figifswitchporttru
ke
capdot1q;设置vla
中继switchco
figvtpdomai
switchco
figvtppassword;设置发vtp域名;设置发vtp密码
switchco
figvtpmodeserver;设置发vtp模式switchco
figvtpmodeclie
t;设置发vtp模式交换机设置IP地址:switchco
figi
terfacevla
1;进入vla
1switchco
figifipaddress;设置IP地址;设置默认网关
switchco
figipdefaultgatewayswitchdirflash;查看闪存交换机显示命令:switchwrite;保存配置信息switchshowvtp;查看vtp配置信息switchshowru
;查看当前配置信息
switchshowvla
;查看vla
配置信息
fswitchshowi
terface;查看端口信息switchshowi
tf00;查看指定端口信息2路由器支持的命令:路由器显示命令:routershowru
;显示配置信息routershowi
terface;显示接口信息routershowiproute;显示路由信息routershowcdp
ei;显示邻居信息routerreload路由器口令设置:routere
able;进入特权模式routerco
figtermi
al;进入全局配置模式routerco
fighost
ame;设置交换机的主机名;重新起动
routerco
fige
ablesecretxxx;设置特权加密口令routerco
fige
ablepasswordxxb;设置特权非密口令routerco
figli
eco
sole0;进入控制台口routerco
figli
eli
evty04;进入虚拟终端routerco
figli
elogi
;要求口令验证routerco
figli
epasswordxx;设置登录口令xxrouterco
figCtrlz;返回特权模式routerexit;返回命令
f路由器配置:routerco
figi
ts00;进入Serail接口routerco
figif
oshutdow
;激活当前接口routerco
figifclockrate64000;设置同步时钟routerco
figifipaddressrouterco
figifir