思科交换机配置口令

上传人:ni****g 文档编号:507804767 上传时间:2023-04-14 格式:DOCX 页数:11 大小:24.12KB
返回 下载 相关 举报
思科交换机配置口令_第1页
第1页 / 共11页
思科交换机配置口令_第2页
第2页 / 共11页
思科交换机配置口令_第3页
第3页 / 共11页
思科交换机配置口令_第4页
第4页 / 共11页
思科交换机配置口令_第5页
第5页 / 共11页
点击查看更多>>
资源描述

《思科交换机配置口令》由会员分享,可在线阅读,更多相关《思科交换机配置口令(11页珍藏版)》请在金锄头文库上搜索。

1、CISCO 交换机配置命令大全swi tch用户模式1:进入特权模式enableswitch enableswitch#2:进入全局配置模式configure t erminalswitch enableswitchconfigure terminal switch(conf)#3:交换机命名 hostname aptech2950以 aptech2950 为例switch enableswitchconfigure terminal switch(conf)#hostname aptch-2950aptech2950(conf)#4:配置使能口令enable password cisco 以

2、 cisco 为例switch enableswitchconfigure terminal switch(conf)#hostname aptch2950aptech2950(conf)# enable password cisco5:配置使能密码enable secret ciscolab 以 cicsolab 为例switch enableswitchconfigure terminal switch(conf)#hostname aptch2950aptech2950(conf)# enable secret ciscolab6:设置虚拟局域网vlan 1interface vlan

3、1switch enable switchconfigure terminal switch(conf)#hostname aptch2950 aptech2950(conf)# interface vlan 1 aptech2950(conf-if)#ip address 192.168.1.1 255.255.255.0 配置交换机端口 ip 和子网掩码aptech2950(conf-if)#no shut是配置处于运行中aptech2950(conf-if)#exitaptech2950(conf)#ip default-gateway 192.168.254 设置网关地址7:进入交换机

4、某一端口 in terface fas tehernet 0/17 以17端口为例 switch enable switchconfigure terminal switch(conf)#hostname aptch2950aptech2950(conf)# interface fastehernet 0/17 aptech2950(conf-if)#8:查看命令showswitch enable switch# show version 察看系统中的所有版本信息 show interface vlan 1 查看交换机有关 ip 协议的配置信息 show running-configure 查

5、看交换机当前起作用的配置信息 show interface fastethernet 0/1 察看交换机 1 接口具体配置和统计信息 show mac-address-table查看 mac 地址表show mac-address-table aging-time 查看 mac 地址表自动老化时间 9:交换机恢复出厂默认恢复命令 switch enable switch# erase startup-configure switch# reload10:双工模式设置switch enable switchconfigure terminal switch2950(conf)#hostname

6、aptch-2950 aptech2950(conf)# interface fastehernet 0/17 以 17 端口为例 aptech2950(conf-if)#duplex full/half/auto 有 full , half, auto 三个可选项11: cdp相关命令 switch enableswitch# show cdp show cdp interface show cdp traffic show cdp nerghbors查看设备的cdp全局配置信息fastethernet 0/17 查看 17 端口的 cdp 配置信息 查看有关 cdp 包的统计信息列出与设备

7、相连的cisco设备12: csico2950的密码恢复 拔下交换机电源线。用手按着交换机的 MODE 键,插上电源线在 switch: 后执行 flash_ini 命令:switch: flash_ini 查看 flash 中的文件: switch: dir flash:把 “config, text文件改名为“config.old: switch: rename flash: config.text flash: config.old执行 boot:switch: boot交换机进入是否进入配置的对话,执行 no : 进入特权模式察看 flash 里的文件: show flash : 把

8、“config.old” 文 件 改 名 为 “config.text” : switch: rename flash: config.old flash: config.text把 “config .text 拷入系统的“ running -configure: copy flash: config .text system : running-configure把配置模式重新设置密码存盘,密码恢复成功。13:交换机telnet远程登录设置: switchenswitchconfigure terminal switch(conf)#hostname aptech-2950aptech295

9、0(conf)#enable password cisco 以 cisco 为特权模式密码 aptech2950(conf)#interface fastethernet 0/1以 17 端口为 telnet 远程登录端口aptech2950(conf-if)#ip address 192.168.1.1 255.255.255.0 aptech2950(conf-if)#no shutaptech2950(conf-if)#exit aptech2950(conf)line vty 0 4 设置 0-4 个用户可以 telnet 远程登陆 aptech2950(conf-line)#logi

10、naptech2950(conf-line)#password edge 以 edge 为远程登录的用户密码 主机设置:ip 192.168.1.2主机的ip必须和交换机端口的地址在同一网络段netmask255.255.255.0gate-way192.168.1.1网关地址是交换机端口地址运行:telnet 192.168.1.1进入telnet远程登录界面 password : edge aptech2950enpassword: cisco aptech#14:交换机配置的重新载入和保存 设置完成交换机的配置后: aptech2950(conf)#reload是否保存(y/n)y:保存

11、设置信息n:不保存设置信息1. 在基于IOS的交换机上设置主机名/系统名: switch(config)# hostname hostname 在基于 CLI 的交换机上设置主机名/系统名: switch(enable) set system name name-string2. 在基于IOS的交换机上设置登录口令:switch(config)# enable password level 1 password 在基于CLI的交换机上设置登录口令:switch(enable) set password switch(enable) set enalbepass3. 在基于IOS的交换机上设置远

12、程访问: switch(config)# interface vlan 1 switch(config-if)# ip address ip-address netmask switch(config-if)# ip default-gateway ip-address 在基于 CLI 的交换机上设置远程访问:switch(enable) set interface sc0 ip-address netmask broadcast-address switch(enable) set interface sc0 vlanswitch(enable) set ip route default g

13、ateway4. 在基于IOS的交换机上启用和浏览CDP信息: switch(config-if)# cdp enableswitch(config-if)# no cdp enable 为了查看 Cisco 邻接设备的 CDP 通告信息: switch# show cdp interface type modle/port switch# show cdp neighbors type module/port detail 在基于CLI的交换机上启用和浏览CDP信息:switch(enable) set cdp enable|disable module/port 为了查看 Cisco 邻接

14、设备的 CDP 通告信息:switch(enable) show cdp neighborsmodule/port vlan|duplex|capabilities|detail5. 基于IOS的交换机的端口描述: switch(config-if)# description description-string 基于CLI的交换机的端口描述:switch(enable)set port name module/number description-string6. 在基于IOS的交换机上设置端口速度: switch(config-if)# speed10|100|auto 在基于CLI的交换

15、机上设置端口速度:switch(enable) set port speed moudle/number 10|100|auto switch(enable) set port speed moudle/number 4|16|auto7. 在基于IOS的交换机上设置以太网的链路模式: switch(config-if)# duplex auto|full|half 在基于 CLI 的交换机上设置以太网的链路模式: switch(enable) set port duplex module/number full|half8. 在基于IOS的交换机上配置静态VLAN: switch# vlan database switch(vlan)# vlan vlan-num name vla switch(vlan)# exitswitch# configure teriminal switch(config)# interface interface module/numberswitch(config-if)# switchport mode access switch(config-if)# switchport access vlan vlan-num switch(config-if)# end在基于CLI的交换机上配置静态VLA

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 学术论文 > 其它学术论文

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号