当前位置:文档之家› dlyAAA思科3750交换机中文配置手册

dlyAAA思科3750交换机中文配置手册

先把这个学会吧,再去搞哪个,会容易入手,是一样的结构。

思科的命令和这不同,我这有路由模拟器要的话告诉我你的邮箱我发给你。

SWITCH笔记1. Switch command2. Switch setup3. Vlan setup4. VLAN TRUNK5. Switch interface setup6. SHOW command7. Cisco catalyst 2950交换机的密码恢复8. VTP9. STP10. 三层交换11. 12.13. 14. 15.Switch commandSwitch > en 进入特权模式Switch # conf t 进入全局配置模式Switch(config)# interface interface-num 进入接口Switch(config)# hostname name 给交换机命名Switch(config)# enable password password 设置明文密码Switch(config)# enable secret password 设置加密的启用秘密口令。

如果设置则取代明文口令Switch # copy running-config startup-configSwitch # write 保存设置保存设置Switch # erase startup-config 恢复交换机出厂值置顶Switch setupswitch(config)# interface vlan 1switch(config-if)# ip address ip-address netmaskswitch(config-if)# no shutswitch(config-if)# exitswitch(config)# ip default-gateway ip-addressswitch(config)# ip domain-name domain-nameswitch(config)# ip name-server IP-address 交换机上设置远程访问,用于交换机管理配置IP地址开起端口退出设置缺省网关域名服务(自身用)域名服务地址(自身用)文档顶端Vlan setupSwitch # vlan databaseswitch(vlan)# vlan vlan-id name vlan-nameswitch(vlan)# exitswitch # config teriminal创建VLAN(全局配置模式下)创建vlan推出启用switch # config tswitch(config)# vlan vlan-idswitch(config-vlan)# name vlan-nameswitch(config-vlan)# exit 创建VLAN(VLAN数据库中)命名推出生效Switch # config teriminalswitch(config)# interface interface-numswitch(config-if)# switchport mode accessswitch(config-if)# switchport access vlan vlan-idswitch(config-if)# endswitch # show running-config interface inter-idswitch # show interface inter-id switch port 给VLAN添加端口进入要分配的端口定义二层端口把端口分配给某一VLAN退出验证端口的VLAN号验证端口的管理模式和VLAN情况switch#config teriminalswitch(config)#interface range f0/1 - 10switch(config-if)#switchport access vlan vlan-idswitch(config-if)#endswitch#show vlan briefswitch#show vlan vlan-id 添加多个端口到一个VLAN选择多个端口加入VLAN查看验证VLAN查看指定VLANSwitch # config tswitch(config)# no vlan vlan-idswitch(config)# end 删除VLANswitch(config)# ip http sever 启用HTTP访问文档顶端VLAN TRUNKswitch(config)# interface interface mod/portswitch(config-if)# switchport mode trunkswitch(config-if)# switchport trunk encapsulation {isl|dotlq|} 配置VLAN中继线switch(config)# interface interface-idswitch(config-if)# switchport mode dynamic desirable/auto 进入端口设置设置接口为中继动态协商模式,desirable或autoswitch(config-if)#switchport trunk allowed vlan none 阻止所有VLAN通过switch(config-if)#switchport trunk allowed vlan remove vlan-list switch(config-if)# switchport trunk allowed vlan add vlan-list 从TRUNK 中删除VLAN,阻止通过在TRUNK中添加VLAN,允许通过文档顶端Switch interface setupSwitch # config tSwitch(config)# interface inter-idswitch(config-if)# duplex {auto|full|half}switch(config-if)# speed{10|100|auto} 交换机上设置端口速度switch(config-if)# description description-string 交换机的端口描述文档顶端SHOW commandSwitch # show versionSwitch # show running-config 列出当前运行配置信息Switch # show startup-configSwitch # show interface interface-num 产看借口信息Switch # show cdp neighborswitch # show cdp neighbor detailswitch # show cdp trafficswitch # show cdp interface interface-numswitch # show cdp entry 显示直连的相邻设备及其详细信息显示IP地址和IOS版本和类型,并且包括show cdp neighbor命令显示的所有信息显示设备发送和接收的CDP分组数以及任何出错信息显示接口的CDP配置信息显示所有入口项的细节Switch # show interface vlan 1 查看交换机有关IP协议的配置信息Switch # show mac-address-table aging-time 查看MAC地址表超时时间Switch # show mac-address-table 查看整个MAC地址表Switch # show interface f0/0 switchport 查看端口模式Switch # show vlan brief 查看VLAN信息Switch # show vtp status 查看VTP状态信息Switch # show spanning-treee 查看生成树信息Switch # show spanning-treee vlan vlan-id detail 查看某个VLAN的生成书详细信息Switch # show ip cef 产看FIB表Switch # show adjacency detail 产看邻接关系表文档顶端Cisco catalyst 2950交换机的密码恢复1. 拔下交换机的电源线。

2. 用手按住交换机的MODE键,插上电源线。

3. 出现“SWITCH:”后,松开MODE SWITCH:4. 在SWITCH:后执行“flash_init”命令,初始化 SWITCH:flash_init5. 查看FLASH中的文件。

Switch:dir flash6. 把“config.text”文件改名为“config.old”文件。

switch:rename flash:config.text flash:config.old7. 执行“boot”命令,启动交换机8. 进入特权模式查看FLASH的文件 switch#show flash9. 把文件config.old改为config.text。

switch:rename flash:config.old flash:config.text10. 把config.text考入系统的running-config。

switch#copy flash config.text system:running-config11. 加入配置模式重新设置密码并存盘。

文档顶端VTPSwitch(config)# vtp domain domain-name 设置VTP域名Switch(config)# vtp mode server|client|transparent 设置VTP模式Switch(config)# vtp password password 设置VTP密码Switch(config)# vtp pruning 配置VTP修剪Switch(config)# vtp version 2 配置VTP运行版本为2文档顶端STPSwitch(config)# spanning-tree vlan vlan-list 启用生成树Switch(config)# spanning-tree vlan vlan-list root primary|secondary 配置交换机为根网桥Switch(config)# spanning-tree vlan vlan-list priority Bridge-priority 修改交换机的优先级Switch(config)#spanning-tree vlan vlan-list vlan-list cost cost 修改端口路径成本Switch(config)# spanning-tree vlan vlan-list vlan-list port-priority priority 修改端口优先级Switch(config)# spanning-tree uplinkfast 配置上行速链路Switch(config)# spanning-tree portfast 配置速端口文档顶端三层交换switch(config)#switch(config)# interface vlan vlan-idswitch(config-if)# ip address ip-address subnek-maskswitch(config-if)# no shutdown 配置VLAN IP地址switch(config-if)# no switchport 配置接口为三层模式switch(config)# interface interface-idSwitch(config-if)no switchportSwitch(config-if)ip address address subnek配置路由接口配置接口IPswitch(config-)# interface vlan vlan-idswitch(config-if)# ip helper-address dhcpserver-address配置DHCP中继转发(每个VLAN都要配)Switch(config)# ip router 0.0.0.0 0.0.0.0 next-hop 在三层交换机上配置静态路由。

相关主题