cisco交换机配置培训材料.ppt

上传人:caoka****i345 文档编号:153707401 上传时间:2020-12-01 格式:PPT 页数:18 大小:268.50KB
返回 下载 相关 举报
cisco交换机配置培训材料.ppt_第1页
第1页 / 共18页
cisco交换机配置培训材料.ppt_第2页
第2页 / 共18页
cisco交换机配置培训材料.ppt_第3页
第3页 / 共18页
cisco交换机配置培训材料.ppt_第4页
第4页 / 共18页
cisco交换机配置培训材料.ppt_第5页
第5页 / 共18页
亲,该文档总共18页,到这儿已超出免费预览范围,如果喜欢就下载吧!
资源描述

《cisco交换机配置培训材料.ppt》由会员分享,可在线阅读,更多相关《cisco交换机配置培训材料.ppt(18页珍藏版)》请在金锄头文库上搜索。

1、CISCO catalyst系列 交换机产品常用维护命令,郑州嘉通公司制作,2007年11月,1.在基于IOS的交换机上设置主机名/系统名: switch(config)# hostname hostname 在基于CLI的交换机上设置主机名/系统名: switch(enable) set system name name-string 2.在基于IOS的交换机上设置登录口令: switch(config)# enable password level 1 password 在基于CLI的交换机上设置登录口令: switch(enable) set password switch(enable

2、) set enalbepass 3.在基于IOS的交换机上设置远程访问: 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 vlan swit

3、ch(enable) set ip route default gateway,常用配置命令,4.在基于IOS的交换机上启用和浏览CDP信息: switch(config-if)# cdp enable switch(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 en

4、able|disable module/port 为了查看Cisco邻接设备的CDP通告信息: switch(enable) show cdp neighborsmodule/port vlan|duplex|capabilities|detail 5.基于IOS的交换机的端口描述: switch(config-if)# description description-string 基于CLI的交换机的端口描述: switch(enable)set port name module/number description-string,6.在基于IOS的交换机上设置端口速度: switch(co

5、nfig-if)# speed10|100|auto 在基于CLI的交换机上设置端口速度: switch(enable) set port speed moudle/number 10|100|auto switch(enable) set port speed moudle/number 4|16|auto 7.在基于IOS的交换机上设置以太网的链路模式: switch(config-if)# duplex auto|full|half 在基于CLI的交换机上设置以太网的链路模式: switch(enable) set port duplex module/number full|half

6、8.在基于IOS的交换机上配置静态VLAN: switch# vlan databaseswitch(vlan)# vlan vlan-num name vlan,配置案例,Catalyst 3560G-24ts-e 配置 center_1#show run Building configuration. Current configuration : 1789 bytes ! version 12.2 no service pad service timestamps debug uptime service timestamps log uptime no service password

7、-encryption ! hostname center_1 /交换机命名为center_1 ! no logging console enable password cisco /enable 密码 :cisco ! no aaa new-model ip subnet-zero !,no file verify auto ! spanning-tree mode pvst /起用生成树 spanning-tree extend system-id spanning-tree vlan 1 priority 0 /根桥优先级设置成 0 * 越小越好 ! vlan internal allo

8、cation policy ascending ! ! interface Port-channel1 /建立以太网通道 switchport trunk encapsulation dot1q /定义封装类型为dot1q switchport mode trunk /定义为干道 ! interface GigabitEthernet0/1 interface GigabitEthernet0/2 ! interface GigabitEthernet0/3 ! interface GigabitEthernet0/4,switchport trunk encapsulation dot1q

9、/定义封装类型为dot1q switchport mode trunk channel-group 1 mode on /放入以太网通道组1 模式为无条件捆绑 ! interface GigabitEthernet0/24 switchport trunk encapsulation dot1q /定义封装类型为dot1q channel-group 1 mode on /放入以太网通道组1 模式为无条件捆绑 ! interface GigabitEthernet0/25 spanning-tree portfast /起用portfast ! interface GigabitEtherne

10、t0/26 spanning-tree portfast ! interface GigabitEthernet0/27,interface GigabitEthernet0/28 spanning-tree portfast ! interface Vlan1 ip address 192.168.42.1 255.255.255.0 /vlan 1 管理IP ! ip classless ip http server ! control-plane ! line con 0 password cisco /enable 密码:cisco login line vty 0 4 passwor

11、d cisco /vty密码:cisco login line vty 5 15 no login ! End,常用show命令,1.show version -显示当前交换机上运行的IOS版本,连同关于可以使用的硬件、RAM和闪存、交换机正常运行时间、当前运行的IOS映像文件、最后一次再次加载的原因以及配置注册的内容的 许多细节。,show ver Cisco IOS Software, C3560 Software (C3560-IPBASE-M), Version 12.2(25)SEE2, RELEASE SOFTWARE (fc1) Copyright (c) 1986-2006 b

12、y Cisco Systems, Inc. Compiled Fri 28-Jul-06 07:19 by yenanh Image text-base: 0 x00003000, data-base: 0 x00EB0F14 ROM: Bootstrap program is C3560 boot loader BOOTLDR: C3560 Boot Loader (C3560-HBOOT-M) Version 12.2(25r)SEC, RELEASE SOFTWARE (fc4) Switch uptime is 1 hour, 14 minutes System returned to

13、 ROM by power-on System image file is flash:c3560-ipbase-mz.122-25.SEE2/c3560-ipbase-mz.122-25.SEE2.bin,cisco WS-C3560-24TS (PowerPC405) processor (revision D0) with 118784K/12280K bytes of memory. Processor board ID CAT1042ZJU0 Last reset from power-on 2 Virtual Ethernet interfaces 24 FastEthernet

14、interfaces 2 Gigabit Ethernet interfaces The password-recovery mechanism is enabled. 512K bytes of flash-simulated non-volatile configuration memory. Base ethernet MAC Address : 00:19:E7:A0:83:80 Motherboard assembly number : 73-9897-06 Power supply part number : 341-0097-02 Motherboard serial numbe

15、r : CAT10415V3H Power supply serial number : DCA103881LV Model revision number : D0 Motherboard revision number : A0,Model number : WS-C3560-24TS-S System serial number : CAT1042ZJU0 Top Assembly Part Number : 800-26160-02 Top Assembly Revision Number : C0 Version ID : V02 CLEI Code Number : COMMG00

16、ARB Hardware Board Revision Number : 0 x01 Switch Ports Model SW Version SW Image - - - - - * 1 26 WS-C3560-24TS 12.2(25)SEE2 C3560-IPBASE-M Configuration register is 0 xF,Show running-config interface type mod/num|vlan vlan-id|module mod 显示running-config配置文件 的 内容。可以跳到接口、vlan或者交换机的 模块的相关配置,Show startup-config 显示startup-config配置文件的 内容 Show tech-support 为Cisco TAC支持人员提供信息 Show interfac

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

当前位置:首页 > 商业/管理/HR > 企业文档

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