- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
PAGE
PAGE 8
交换机的常用操作项
更改主机名 switch(config)#hostname sw1
设置进入特权模式的密码switch(config)#enable password 1234switch(config)#enable secret cisco
设置console口密码switch(config)#line console 0switch(config-line)#password 123switch(config-line)#login
查看mac地址列表 switch#show mac-address-table
查看mac地址列表刷新时间 switch#show mac-address-table aging-time
更改mac地址列表刷新时间 switch(config)#mac-address-table aging-time 200
查看当前配置(RAM) switch#show running-config
查看交换机的配置(NVRAM) switch#show startup-config
保存配置switch#copy running-config startup-configswitch#write
恢复出厂默认设置switch#erase startup-configswitch#reload
查看cdp的全局信息 switch#show cdp
查看接口的cdp配置信息 switch#show cdp interface f0/2
查看有关cdp包的统计信息 switch#show cdp traffic
查看邻居信息 switch#show cdp neighbors
查看所有入口项的详细信息switch#show cdp neighbors detailswitch#show cdp entry *
添加接口的描述信息 switch(config-if)# description connection to routerA
设置交换机的网关 switch(config)#ip default-gateway
关掉DNS解析 switch(config)# no ip domain-lookup
实现交换机的远程管理switch(config)#enable secret ciscoswitch(config)#intface valn 1switch(config-if)#ip address 00 switch(config-if)#no shutdownswitch(config)#line vty 0 4switch(config-line)#password 123switch(config-line)#loginc:\telnet 00
交换机的密码恢复1、将交换机的电源拔下2、按mode键将电源插上,当出现switch:时将手松开3、switch:flash_init //加载到flash中4、switch:dir flash: //查看flash中的文件5、rename flash:config.text flash:config.old //更改文件名6、boot //重新启动交换机7、rename flash:config.old flash:config.text //将文件名改回8、copy flash:config.text running-config9、enable password cisco //重新设置密码10、write //保存
创建vlan方法一switch#vlan databaseswitch(vlan)#vlan 10 name scswitch(vlan)#exit
创建vlan方法二switch(config)#vlan 10switch(config-vlan)#name sc
删除vlan方法一switch(vlan)#no vlan 10switch(vlan)#exit
删除vlan方法二 switch(config)#no vlan 10
删除vlan方法三 switch#delete vlan.dat
将端口加入到vlan中 switch(config-if)#switchport access vlan 10
将一组连续的端口加
文档评论(0)