思科交换机配置命令大全.doc

doc,交换机,命令,大全,思科,材料设备
文档页数:45
文档大小:75.5KB
文档格式:doc
文档分类:材料设备
上传会员:
上传日期:
最后更新:

思科交换机配置命令大全 switch> 用户模式 1:进入特权模式enable switch>enable switch# 2:进入全局配置模式configureterminal switch>enable switch#configureterminal switch(conf)# 3:交换机命名hostnameaptech2950 以aptech2950为例 switch>enable switch #c onfigure terminal switch(conf)#hostname aptch-2950 aptech2950(conf)# 4:配置使能口令enablepasswordcisco 以cisco为例
switch>enable switch#configure terminal switch(conf)#hostnameaptch2950 aptech2950(conf)#enablepassword cisco 5:配置使能密码enablesecretciscolab 以cicsolab为例 switch>enable switch #configure terminal switch(conf)#hostname aptch2950 aptech2950(conf)#enablesecretciscolab 6:设置虚拟局域网vlan1interfacevlan1 switch>enable switch#configure terminal switch(conf)#hostname aptch2950 aptech2950(conf)#interface vlan1 aptech2950(conf-if)#ip address 192.168.1.1 255.255.255.0 配置交换机端口 ip和子网掩码
aptech2950(conf-if)#no shut 是配置处于运行中 aptech2950(conf-if)#exit aptech2950(conf)#ip default-gateway192.168.254 设置网关地址 7:进入交换机某一端口interfacefastehernet0/17 以17端口为例 switch>enable switch#configureterminal switch(conf)#hostname aptch2950 aptech2950(conf)#interface fastehernet 0/17 aptech2950(conf-if)# 8:查看命令show switch>enable switch#showversion察看系统中的版本信息 showinterfacevlan1查看交换机有关ip协议的配置信息 showrunning-configure查看交换机当前起作用的配置信息 showinterfacefastethernet0/1察看交换机1接口具体配置和统计信息
show mac-address-table 查看mac地址表 9:交换机恢复出厂默认恢复命令 switch>enable switch#erase startup-configure switch#reload 10:双工模式设置 switch> enable switch#configureterminal switch2950(conf)#hostname aptch-2950 aptech2950(conf)#interfacefastehernet 0/17 以17端口为例 aptech2950(conf-if)#duplexfull/half/auto 有full,halfauto三个 可选项 11:cdp相关命令 switch>enable switch#show cdp 查看设备的cdp全局配置信息
showcdpinterfacefastethernet0/17查看17端口的cdp配置信息 show cdp traffic 查看有关cdp包的统计信息 showcdpnerghbors列出与设备相连的cisco设备 12:csico2950的密码恢复 拔下交换机电源线.

用手按着交换机的MODE键,插上电源线 在switch:后执行flash_ini命令:switch:flash_ini 查看flash中的文件:switch:dirflash: 把“config.text”文件改名为“config.old”:switch:rename flash:config.text flash: config.old 执行boot:switch:boot 交换机进入是否进入配置的对话,执行no: 进入特权模式察看flash里的文件:showflash: 把“config.old”文件改名为“config.text” : switch:rename flash: config.oldflash:config.text 把“config.text”拷入系统的“running-configure”:copyflash:config.text system:running-configure

资源链接请先登录(扫码可直接登录、免注册)
十二年老网站,真实资源!
高速直链,非网盘分享!浏览器直接下载、拒绝套路!
本站已在工信部及公安备案,真实可信!
手机扫码一键登录、无需填写资料及验证,支持QQ/微信/微博(建议QQ,支持手机快捷登录)
①升级会员方法:一键登录后->用户中心(右上角)->升级会员菜单
②注册登录、单独下载/升级会员、下载失败处理等任何问题,请加客服微信
不会操作?点此查看“会员注册登录方法”

投稿会员:匿名用户
我的头像

您必须才能评论!

手机扫码、免注册、直接登录

 注意:QQ登录支持手机端浏览器一键登录及扫码登录
微信仅支持手机扫码一键登录

账号密码登录(仅适用于原老用户)