




版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、、更改远程TELNNET密码Switch#configure terminalSwitch(config#line vty 0 4Switch(config-line#password qycx123Switch(config-line#loginSwitch(config-line#exitb、更改进入全局配置模式时的密码Switch#configure terminalSwitch(config#enable secret qycx123思科交换机常用命令创建并划分VLANa、创建VLANSwitch#vlan databaseSwitch(vlan#vlan 99 name office
2、 (创建vlan 99 并命名为officeb、将端口划分至vlanSwitch(config#interface fastEthernet 0/8Switch(config-if#switchport mode accessSwitch(config-if#switchport access vlan 99 (将8号快速以太口划分至vlan 99思科交换机常用命令调试命令a、显示所有配置命令:Switch#show runb、显示所有接口状态:Switch#show ip int briefc、显示所有VLAN的信息:Switch#show vlan briefcisco交换机还是比较常用的
3、,于是我研究了一下Cisco交换机命令的大总结,在这里拿出来和大家分享一下,希望对大家有用。我所针对的都是Cisco的设备而言的,华为的可以跟据手册来查,配置都是差不多的,这里华子就不多写华为的设备了,了解的也不是很多。Cisco交换机命令之使用Telnet远程式管理switch(config#interface vlan 1 进入vlan 1switch(config-if#ip address 设置IP地址switch(config-if#ip default-gateway 设置默认网关switch(config#line vty 0 4 进入虚拟终端switch(config-line
4、#login 允许登录switch(config-line#password xx 设置登录口令switch#exit 返回命令Cisco交换机命令之控制台口令switch(config#line console 0 进入控制台口switch(config-line#login 允许登录switch(config-line#password xx 设置登录口令switch#exit 返回命令Cisco交换机命令之基本接口配置switch(config#interface f0/1 进入f0/1接口switch(config-if#duplex full 配置全双工模式switch(config
5、-if#speed 100 配置速率switch(config-if#description to * 接口描述switch(config#ip domain-name *.com 设置或名服务器switch(config#mac-address-table aging-time 设置mac表超时时间switch#write 保存配置信息switch#copy running-config startup-config 保存当前配置nvramswitch#erase startup-config 清除配置文件Cisco交换机命令之交换机VLAN设置:switch#vlan database 进
6、入VLAN设置switch(vlan#vlan 2 建VLAN 2switch(vlan#name 名字建VLAN 2的名称switch(vlan#no vlan 2 删vlan 2注:删除vlan时原属于此vlan的端口处于非激活状态,直到重新分配为止。switch(config#int f0/1 进入端口1switch(config-if#switchport mode access 当前端口工作莫试switch(config-if#switchport access vlan 2 当前端口加入vlan 2switch(config-if#switchport mode trunk 设置为
7、干线switch(config-if#switchport trunk encapsulation dot1q 设置vlan 中继协议switch(config-if#no switchport mode 或( switchport mode access 禁用干线switch(config-if#switchport trunk allowed vlan add 1,2 ; 从Trunk中添加vlansswitch(config-if#switchport trunk allowed vlan remove 1,2 ;从Trunk中删除vlansswitch(config-if#switch
8、port trunk pruning vlan remove 1,2 ;从Trunk中关闭局部修剪Cisco交换机命令之以太网通道配置switch(config#interface range fasternet0/1 - 2 将fasternet0/1和0/2 口捆绑switch(config-if#channel-group 1 mode on 配置以太通道模式switch(config-if#port-channel load-balance dst-mac | src-mac在链路间实现负载均衡switch#show etherchannel 1 summary 查看通道信息switc
9、h#show etherchannel load-balance 查看通道信息Cisco交换机命令之vtp配置switch(config#vtp domain 设置vtp域名switch(config#vtp password 设置vtp密码switch(config#vtp mode server 设置vtp服务器模式switch(config#vtp mode client 设置vtp客户机模式switch(config#vtp mode transparent 设置vtp 透明模式switch(config#vtp version 设置vtp版本switch(config#vtp pru
10、ning 启用vtp修解switch(config#no vtp pruning 关闭vtp修解注:要想从vtp中减少一台交换机只需将该交换机vtp 名更改Cisco交换机命令之生成树stp:switch(config#spanning-tree vlan 启用stp生成树(基于vlanswitch(config#spanning-tree vlan root primary 指定根交换机(基于vlanswitch(config#spanning-tree vlan root secondary 指定备用根交换机(基于vlanswitch(config#spanning-tree vlan p
11、riority 指定交换机优先级(基于vlanswitch(config#no spanning-tree vlan priority 将交换机的优先级恢复默认值(基于vlanswitch(config-if#spanning-tree vlan cost 指定端口成本(起用trunk的端口模式下switch(config-if#spanning-tree vlan port-prioty 指定交换机端口优先级(基于vlanswitch(config-if#spanning-tree portfast 配置速端口(连接终端设备的端口状态如pc机switch(config#spanning-tr
12、ee uplinkfast 配置上行速端口switch(config#spanning-tree vlan hello-time 配置交换机hello时间(基于vlanswitch(config#spanning-tree vlan forward-time 修改转发延迟计时器(基于vlanswitch(config#spanning-tree vlan max-time 修改最大老化时间(基于vlanswitch#show spanning-tree summery 检测vlan生成树配置switch#show spanning-tree vlan detail 浏览详细生成树配置信息swi
13、tch#show spanning-tree interface detail 浏览详细生成树端口配置信息Cisco交换机命令之交换机显示命令:switch#show vtp status 查看vtp配置信息switch#show running-config 查看当前配置信息switch#show vlan 查看vlan配置信息switch#show interface 查看端口信息 switch#show int f0/0 查看指定端口信息 switch#dir flash: 查看闪存 switch#show version 查看当前版本信息 switch#show mac-address-table aging-time 查看 mac 超时时间 switch#show cdp cisco
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025年度品牌形象设计委托合同协议书范本
- 2025广告公司视觉设计委托合同范本
- 2025年上海工程技术大学岗位聘任合同制管理岗位
- 2025年购房:深入理解合同条款保障您的购房权益
- 福建省莆田市2024-2025学年高二下册第一次(3月)月考数学试卷附解析
- 安徽省马鞍山市2024-2025学年高二下册4月期中数学试卷附解析
- 2025届黑龙江齐齐哈尔市龙江县中考二模数学试卷
- 2024年攀枝花市东区定向选聘社会招考社区工作者真题
- 2024年河池市产品质量检验所招聘考试真题
- 石大学前儿童保育学课件4-2手足口病
- 2025年九年级语文中考最后一练口语交际(全国版)(含解析)
- 延迟退休政策驱动中国第二次人口红利的多维度解析与展望
- 国际压力性损伤-溃疡预防和治疗临床指南(2025年版)解读课件
- 皮肤管理顾客档案表
- 机关妇委会换届选举工作基本程序
- 零件加工检验标准
- 数据安全与运维安全审计系统项目方案
- 水稻测产验收报告格式
- 怀化职业技术学院就业工作管理制度汇编 (一)
- 电力的安全系统工器具预防性试验报告材料的
- 人民网删除稿件(帖文)申请登记表【模板】
评论
0/150
提交评论