cisco_交换机2960配置.docVIP

  • 34
  • 0
  • 约5.19千字
  • 约 5页
  • 2015-10-01 发布于河南
  • 举报
cisco_交换机2960配置.doc

cisco 交换机2960配置 转载???分享该日志 ? 评论 ? 举报 2天前??|??分类:转载???阅读:(6)???评论:(1) 配置密码: 2960en ;第一次密码为空 2960h#conf t ;进入全局配置模式 2960(config)#hostname swa ;设置交换机名 2960(config)#enable secret aaa ;设置特权加密口令为 aaa 2960(config)#enable password aax ;设置特权非密口令为 aax 2960(config)#line console 0 ;进入控制台口(Rs232) 2960(config-line)#password aa ;设置登录口令aa 2960(config-line)#login ;登录要求口令验证 2960(config-line)#line vty 0 4 ;进入虚拟终端virtual tty 2960(config-line)#password a ;设置登录口令a 2960(config-line)#login ;登录要求口令验证 2960(config-line)#exit ;返回上一层 2960(config)#exit ;返回上一层 2960#sh run ;看配置信息 2960#exit ;返回命令 配置Vlan 新建一个Vlan的命令 Switchenable???? 进入特权模式 Switch#configure terminal??????进入全局配置模式 Switch (config)# vlan vlan-id???? 创建一个Vlan或者进入Vlan配置模式 Switch (config-vlan)# name vlan-name 给Vlan命名(取消设置:no name) Switch (config-vlan)# mtu mtu-size 设置最大通讯量(取消设置:no mtu) Switch (config-vlan)#remote-span????开启远程流量监控(关闭:no remote-span) Switch (config-vlan)# end 回到特权模式 Switch#show vlan {name vlan-name | id vlan-id}????????查看当前配置 Switch#copy running-config startup config 保存配置 删除Vlan的命令 Switchenable???? 进入特权模式 Switch#configure terminal??????进入全局配置模式 Switch (config)# no vlan vlan-id?????? 删除Vlan Switch (config)# end 回到特权模式 Switch#show vlan brief????查看删除情况 Switch#copy running-config startup config 保存配置 端口加入特定Vlan的命令 Switchenable???? 进入特权模式 Switch#configure terminal??????进入全局配置模式 Switch (config)# interface interface-id????进入端口配置 Switch (config-if)# switchport mode access???? 将接口的模式设为访问模式 Switch (config-if)# switchport access vlan vlan-id 将端口加入指定的Vlan(恢复端口默认配置:default interface interface-id) Switch (config-if)# end?????? 回到特权模式 Switch#show running-config interface interface-id???? 查看端口模式 Switch#show interfaces interface-id switchport 查看端口详细配置 Switch#copy running-config startup-config 保存配置 批量端口加入特定Vlan的命令 int range fa0/1 - 10 switchport?? access?? VLan?? V2 将特定端口设为trunk 2960-01(config)#default interface fastEthernet 0/1????端口恢复默认值???? 2960-01(config)#interface fastethernet0/1?????????

文档评论(0)

1亿VIP精品文档

相关文档