欢迎来到天天文库
浏览记录
ID:39577310
大小:70.00 KB
页数:10页
时间:2019-07-06
《思科路由器命令大全(完整版)》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、思科交换机路由器命令大全交换机命令:switch> 用户模式1:进入特权模式 enableswitch>enableswitch#2:进入全局配置模式 configureterminalswitch>enableswitch#configureterminalswitch(conf)#3:交换机命名hostnameaptech2950 以aptech2950为例switch>enableswitch#configureterminalswitch(conf)#hostnameaptch-2950aptech29
2、50(conf)#4:配置使能口令 enablepasswordcisco 以cisco为例switch>enableswitch#configureterminalswitch(conf)#hostnameaptch2950aptech2950(conf)#enablepasswordcisco5:配置使能密码 enablesecretciscolab 以cicsolab为例--设置禁用IP地址解析特性,设置启用消息同步特性switch>enableswitch#configureterminalswitch(conf)
3、#hostnameaptch2950aptech2950(conf)#enablesecretciscolabaptech2950(conf)#noipdomain-lookup -----设置禁用IP地址解析特性aptech2950(conf)#loggingsynchronous -----设置启用消息同步特性aptech2950(conf)#interfacerangefastethernet0/1-20aptech2950(conf-if-range)#sp
4、anning-treeportfast -----设置快速端口aptech2950(conf)#interfacerangefastethernet0/23-24aptech2950(conf-if-range)#swichportmodetrunk -----设置主干道端口aptech2950(conf)#spanning-treeuplingkfast ---设置阻塞启用迅速(只可以在访问层启用)6:设置虚拟局域网vlan1 interfac
5、evlan1switch>enableswitch#configureterminalswitch(conf)#hostnameaptch2950aptech2950(conf)#interfacevlan1aptech2950(conf-if)#ipaddress192.168.1.1255.255.255.0 配置交换机端口ip和子网掩码aptech2950(conf-if)#noshut 是配置处于运行中aptech2950(conf-if)#exitaptech2
6、950(conf)#ipdefault-gateway192.168.254 设置网关地址7:进入交换机某一端口interfacefastehernet0/17 以17端口为例switch>enableswitch#configureterminalswitch(conf)#hostnameaptch2950aptech2950(conf)#interfacefastehernet0/17aptech2950(conf-if)#8:查看命令 showswitch>enableswitch#sh
7、owversion 察看系统中的所有版本信息showinterfacevlan1 查看交换机有关ip协议的配置信息showrunning-configure查看交换机当前起作用的配置信息showinterfacefastethernet0/1 察看交换机1接口具体配置和统计信息showmac-address-table 查看mac地址表showmac-address-tableaging-time 查看mac地址表自动老化时间9:交换机恢复出厂默认恢复命令switch>enableswitch#erasestartu
8、p-configureswitch#reload10:双工模式设置switch>enableswitch#configureterminalswitch2950(conf)#hostnamea
此文档下载收益归作者所有