1 / 22
文档名称:

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

格式:doc   大小:71KB   页数:22页
下载后只包含 1 个 DOC 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

分享

预览

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

上传人:一花一叶 2019/5/6 文件大小:71 KB

下载得到文件列表

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

文档介绍

文档介绍:Forpersonaluseonlyinstudyandresearch;mercialuse膀思科交换机配置命令大全蒀switch>用户模式蚄1:进入特权模式enable肂switch>enable蕿switch#膀2:进入全局配置模式configureterminal螅switch>enable蒅switch#configureterminal芃switch(conf)#蚆3:交换机命名hostnameaptech2950以aptech2950为例袇switch>enable薃switch#configureterminal蚂switch(conf)#hostnameaptch-2950蒇aptech2950(conf)#蚄4:配置使能口令enablepasswordcisco以cisco为例蚂switch>enable膁switch#configureterminal***switch(conf)#hostnameaptch2950蚅aptech2950(conf)#enablepasswordcisco肄5:配置使能密码enablesecretciscolab以cicsolab为例薁switch>enable羈switch#configureterminal螇switch(conf)#hostnameaptch2950膂aptech2950(conf)#enablesecretciscolab羀6:设置虚拟局域网vlan1interfacevlan1蚈switch>enable薄switch#configureterminal蒅switch(conf)#hostnameaptch2950袁aptech2950(conf)#interfacevlan1袀aptech2950(conf-if)#ipaddress配置交换机端口ip和子网掩码肇aptech2950(conf-if)#noshut是配置处于运行中肅aptech2950(conf-if)#exit薅aptech2950(conf)#ipdefault-gateway设置网关地址蚁7:0/17以17端口为例腿switch>enable膃switch#configureterminal羄switch(conf)#hostnameaptch2950莁aptech2950(conf)#0/17羆aptech2950(conf-if)#薆8:查看命令show蒃switch>enable肁switch#showversion察看系统中的所有版本信息羈showinterfacevlan1查看交换机有关ip协议的配置信息蚄showrunning-0/1察看交换机1接口具体配置和统计信息袂showmac-address-table查看mac地址表聿showmac-address-tableaging-time查看mac地址表自动老化时间肆9:交换机恢复出厂默认恢复命令节switch>enable薂switch#erasestartup-configure袆switch#reload膅10:双工模式设置蚂switch>enable肈switch#configureterminal袈switch2950(conf)#hostnameaptch-2950芃aptech2950(conf)#0/17以17端口为例膁aptech2950(conf-if)#duplexfull/half/auto有full,half,auto三个可选项蝿11:cdp相关命令罿switch>enable蚆switch#0/17查看17端口的cdp配置信息蕿showcdptraffic查看有关cdp包的统计信息螆showcdpnerghbors列出与设备相连的cisco设备螄12:csico2950的密码恢复芄拔下交换机电源线。芀用手按着交换机的MODE键,插上电源线螈在switch:后执行flash_ini命令:switch:flash_ini膆查看flash中的文件:switch:dirflash:蚃把“”文件改名为“”:switch:renameflash:::switch:boot衿交换机进入是否进入配置的对话,执行no:芅进入特权模式察看flash里的文件:showflash:肂把“”文件改名为“”:switch:renameflash::“”拷入系统的“running-configure”:copyflash::running-configure