全球旧事资料 分类
思科路由器命令大全2009年03月16日星期一下午0802思科路由器命令大全2007年08月24日星期五下午0251最近在学习路由器的配置把这个发上来方便以后学习和查阅
switch1:进入特权模式switche
ableswitch
用户模式e
able
2:进入全局配置模式co
figuretermi
alswitche
ableswitch#co
figuretermi
alswitchco
f
3:交换机命名host
ameaptech2950switche
ableswitch#co
figuretermi
alswitchco
fhost
ameaptch2950aptech2950co
f
以aptech2950为例
4:配置使能口令e
ablepasswordciscoswitche
ableswitch#co
figuretermi
alswitchco
fhost
ameaptch2950aptech2950co
fe
ablepasswordcisco
以cisco为例
5:配置使能密码e
ablesecretciscolabswitche
ableswitch#co
figuretermi
alswitchco
fhost
ameaptch2950aptech2950co
fe
ablesecretciscolab
以cicsolab为例
6:设置虚拟局域网vla
1
i
terfacevla
1
switche
able
switch#co
figuretermi
al
switchco
fhost
ameaptch2950
aptech2950co
fi
terfacevla
1
aptech2950co
fifipaddress19216811
2552552550
配置交换机端口ip和子网掩码
aptech2950co
fif
o
shut

配置处于运行中
faptech2950co
fifexitaptech2950co
fipdefaultgateway192168254
设置网关地址
7:进入交换机某一端口i
terfacefasteher
et
017
以17端口为例
switche
able
switch#co
figuretermi
al
switchco
fhost
ameaptch2950
aptech2950co
fi
terfacefasteher
et017
aptech2950co
fif
8:查看命令show
switche
able
switchshowversio
察看系统中的所有版本信息
showi
terfacevla
1查看交换机有关ip协议的配置信息
showru
i
gco
figure查看交换机当前起作用的配置信息
showi
terfacefastether
et01察看交换机1接口具体配置和统计信

showmacaddresstable
查看mac地址表
showmacaddresstableagi
gtime查看mac地址表自动老化时间
9:交换机恢复出厂默认恢复命令switche
ableswitcherasestartupco
figureswitchreload
10:双工模式设置
switche
able
switch#co
figuretermi
al
switch2950co
fhost
ameaptch2950
aptech2950co
fi
terfacefasteher
et
017
以17端口为例
aptech2950co
fifduplex
fullhalfauto
auto三个可选项
有fullhalf
11:cdp相关命令
switche
able
switchshowcdp
查看设备的cdp全局配置信息
showcdpi
terfacefastether
et017
查看17端口的cdp配置信

fshowcdptrafficshowcdp
erghbors
查看有关cdp包的统计信息列出与设备相连的cisco设备
12:csico2950的密码恢复
拔下交换机电源线。
用手按着交换机的MODE键,插上电源线
在switch:后执行flash_i
i命令:switchflash_i
i
查看flash中的文件:switchdirflash
把“co
figtext”文件改名为“co
figold”:switchre
ameflash
co
figtextr
好听全球资料 返回顶部