欢迎来到天天文库
浏览记录
ID:1534962
大小:42.00 KB
页数:8页
时间:2017-11-12
《cisco设备的基本配置命令》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、switch> 用户模式1:进入特权模式 enableswitch>enableswitch#2:进入全局配置模式 configureterminalswitch>enableswitch#configureterminalswitch(conf)#3:交换机命名hostnameaptech2950 以aptech2950为例switch>enableswitch#configureterminalswitch(conf)#hostnameaptch-2950aptech2950(c
2、onf)#4:配置使能口令 enablepasswordcisco 以cisco为例switch>enableswitch#configureterminalswitch(conf)#hostnameaptch2950aptech2950(conf)#enablepasswordcisco5:配置使能密码 enablesecretciscolab 以cicsolab为例switch>enableswitch#configureterminalswitch(conf)#hostnameaptch2
3、950aptech2950(conf)#enablesecretciscolab6:设置虚拟局域网vlan1 interfacevlan1switch>enableswitch#configureterminalswitch(conf)#hostnameaptch2950aptech2950(conf)#interfacevlan1aptech2950(conf-if)#ipaddress192.168.1.1255.255.255.0 配置交换机端口ip和子网掩码aptech2950(conf-
4、if)#noshut 是配置处于运行中aptech2950(conf-if)#exitaptech2950(conf)#ipdefault-gateway192.168.254 设置网关地址7:进入交换机某一端口interfacefastehernet0/17 以17端口为例switch>enableswitch#configureterminalswitch(conf)#hostnameaptch2950ap
5、tech2950(conf)#interfacefastehernet0/17aptech2950(conf-if)#8:查看命令 showswitch>enableswitch#showversion 察看系统中的所有版本信息showinterfacevlan1 查看交换机有关ip协议的配置信息showrunning-configure查看交换机当前起作用的配置信息showinterfacefastethernet0/1 察看交换机1接口具体配置和统计信息showmac-address-table
6、 查看mac地址表showmac-address-tableaging-time 查看mac地址表自动老化时间9:交换机恢复出厂默认恢复命令 switch>enableswitch#erasestartup-configureswitch#reload10:双工模式设置switch>enableswitch#configureterminalswitch2950(conf)#hostnameaptch-2950aptech2950(conf)#interfacefastehernet0/17
7、 以17端口为例aptech2950(conf-if)#duplexfull/half/auto 有full,half,auto三个可选项11:cdp相关命令switch>enableswitch#showcdp 查看设备的cdp全局配置信息showcdpinterfacefastethernet0/17 查看17端口的cdp配置信息showcdptraffic 查看有关cdp包的统计信息showcdpnerghbors 列出
8、与设备相连的cisco设备12:csico2950的密码恢复拔下交换机电源线。用手按着交换机的MODE键,插上电源线在switch:后执行flash_ini命令:switch:flash_ini查看flash中的文件:switch:dirflash:把“config.text”文件改名为“config.old”:switch:renameflash:config.textflash:c
此文档下载收益归作者所有