2900系列交换机配置命令.docxVIP

  1. 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
  2. 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  3. 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
  4. 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
  5. 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们
  6. 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
  7. 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
2900 系列交换机配置命令 查看交换机的信息 Switch# show run 全部配置信息 Switch# show version 版本信息 Switch# show interface vlan 1 IP 地址信息 Switch# show int 端口信息 Switch# show flash 闪存目录信息 删除配置信息到出厂配置 Switch# delete flash: 先删除 VLAN配置文件 Switch# erase start 再删除全部配置 Erasing the nvram filesystem will remove all files! Continue? [confirm] [OK] Erase of nvram: complete Switch# reload 重新启动 Proceed with reload? [confirm] 保存配置 方法 1: Switch# write 方法 2: Switch# copy run start 设置主机名 Switch#conf t Switch(config)# hostname XXX 密码设置 1、 设置进入控制台(用户模式)的密码 Switch(config)#line console 0 Switch(config-line)#pass cisco Switch(config-line)#login 2、 设置远程登录 VTY 线路密码 Switch(config-line)#line vty 0 4 (或 15) Switch(config-line)#pass cisco Switch(config-line)#login 3、 设置进入 ENABLE特权模式的密码 明文密码加密密码Switch(config)#enable pass feng 明文密码 加密密码 Switch(config)#enable secret cisco 设置 IP 地址和缺省网关 Switch(config)#int vlan1 Switch(config-if)#ip address shutdown Switch(config-if)#exit Switch(config)#ip default-gateway 设置端口双工模式和速率 Switch(config)int f0/1 Switch(config-if)#duplex full|half|auto Switch(config-if)#speed 100|10|auto 启动HTTP服务 Switch(config) ip http server Switch(config) ip http port 80 查看MAC地址表信息 Switch# show mac 配置端口安全性 Switch(config) int f0/10 启动端口安全 Switch(config-if)#switchport port-security 设置端口最大可容纳的 MAC地址个数 Switch(config-if)#switchport port-security max-mac-count 1 设置地址违反时的处理方式 Switch(config-if)#switchport port-security violation shutdown|protect|restrict 设置端口上绑定的 MAC地址 Switch(config-if)#switchport port-security mac-address 查看端口安全性配置 Switch# sh port-security address 查看绑定的安全地址 Switch# sh port-security int f0/1 查看安全端口 配置信息的保存 Switch#copy run start Destination filename [startup-config]? Building configuration... Switch#copy run tftp 配置信息的恢复 Switch#copy tftp run IOS文件的保存 Switch#copy flash tftp IOS文件的恢复 Switch#copy tftp flash 设置 VLAN Switch#conf t Switch(config)#vlan 3 Switch(config-vlan)#name vlan3 VLAN 3 added: Name: vlan3 Switch(config-vlan)#exit APPLY completed. Exiting 将端口加入到 VLAN中 Switch(config)#int f0/4 Switch(config-i

文档评论(0)

kunpeng1241 + 关注
实名认证
文档贡献者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档