欢迎来到天天文库
浏览记录
ID:48031380
大小:715.00 KB
页数:99页
时间:2020-01-13
《Catalyst2960交换机基本配置.ppt》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、CiscoCatalyst2960系列交换机初始配置基于IOS交换机的配置模式模式访问方式提示符退出方式用户模式在交换机上启动一个会话Switch>输入logout或quit特权模式在用户模式下输入enable命令Switch#输入disable或exit命令全局配置模式在特权模式输入configterm命令Switch(config)#输入exit、end或ctrl+z命令接口配置模式在全局配置模式输入interface命令Switch(config-if)#输入exit、end或ctrl+z命令连接配置模式全局配置模式输入linevty或lineconsole命令Switc
2、h(config-line)#输入exit命令vlan配置模式全局配置模式输入vlandatabase命令Switch(vlan)#输入exit命令2查看并保存配置switch#showstartup-configswitch#showrunning-configswitch#erasestartup-configErasingthenvramfilesystemwillremoveallconfigurationfiles!Continue?[co][ok]Eraseofnvram:completeswitch#showstartup-config%%non-volatile
3、configurationmemoryisnotpresentswitch#copyrunning-configstartup-configDestinationfilename[startup-config]?Buildingconfiguration...Compressedconfigurationfrom6015bytesto2238bytes[OK]switch#copynvramtftp://192.168.1.101/wgswd.cfg%%Configurationuploadissuccessfullycompletedswitch#copytftp://192
4、.168.1.101/wgswd.cfgnvram%%TFTPsuccessfullydownloadedconfigurationfile3设置口令switch>enablePassword:switch(config)#enablepasswordciscoswitch(config)#enablesecretswitchswitch(config)#servicepassword-encryptionswitch#configtermEnterconfigurationcommands,oneperline.EndwithCNTL/Z.switch(config)#lin
5、econsole0switch(config-line)#loginswitch(config-line)#passwordconpassswitch(config)#linevty015switch(config-line)#loginswitch(config-line)#passwordvtypassswitch(config-line)#endswitch#copyrunning-configstartup-config4设置主机名switch#configtermEnterconfigurationcommands,oneperline.EndwithCNTL/Z.s
6、witch(config)#hostnameswitchswitch(config)#endswitch#copyrunning-configstartup-configBuildingconfiguration...Compressedconfigurationfrom5984bytesto2218bytes[OK]5设置IP地址switch#configtermswitch(config)#interfacevlan1switch(config-if)#ipaddress192.168.1.2255.255.255.0switch(config)#ipdefault-gat
7、eway192.168.1.1switch(config)#noshutdownswitch(config)#endswitch#copyrunning-configstartup-config通常情况下,二层交换机的端口不设置IP地址,路由器的接口设置IP地址,三层交换机(实际上有路由功能)的接口可以设置也可以不设置,具体情况具体分析。不跨网段管理可不设默认网关。6CiscoCatalyst2960系列交换机配置端口配置一组端口命令目的Step1configureterminal进入配置状
此文档下载收益归作者所有