cisco交换机配置培训

上传人:xia****ai 文档编号:243155650 上传时间:2024-09-17 格式:PPT 页数:18 大小:270.50KB
返回 下载 相关 举报
cisco交换机配置培训_第1页
第1页 / 共18页
cisco交换机配置培训_第2页
第2页 / 共18页
cisco交换机配置培训_第3页
第3页 / 共18页
点击查看更多>>
资源描述
,*,单击此处编辑母版标题样式,单击此处编辑母版文本样式,第二级,第三级,第四级,第五级,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) 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 switch(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 enable|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(config-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,8.,在基于,IOS,的交换机上配置静态,VLAN:,switch# vlan database,switch(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-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 allocation 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 /,定义封装类型为,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 GigabitEthernet0/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,password 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 by Cisco Systems, Inc.,Compiled Fri 28-Jul-06 07:19 by yenanh,Image text-base: 0x00003000, data-base: 0x00EB0F14,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 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 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 number : 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 : COMMG00ARB,Hardware Board Revision Number : 0x01,Switch Ports Model SW Version SW Image,- - - - -,* 1 26 WS-C3560-24TS 12.2(25)SEE2 C3560-IPBASE-M,Configuration register is 0xF,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 interface module/number,注意查看任何大于,0,的错误计数,速度与双工匹配,Switch#show int g0/1,GigabitEthernet0/1 is down, line protocol is down,(,err-disabled,),Hardware is Gigabit Ethernet, address is 0019.e7a0.8381 (bia 0019.e7a0.8381),MTU 1500 bytes, BW 10000 Kbit, DLY 1000 usec,reliability 255/255, txload 1/255, rxload 1/255,Encapsulation ARPA, loopback not set,Keepalive not set,Auto-duplex, Auto-speed, link type is auto,media type is unknown,input flow-control is off, output flow-control is unsupported,ARP type: ARPA, ARP Timeout 04:00:00,Last input never, output never, output hang never,Last clearing of show interface counters never,Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0,Queueing strategy: fifo,Output queue: 0/40 (size/max),5 minute input rate 0 bits/sec, 0 packets/sec,5 minute output rate 0 bits/sec, 0 packets/sec,0 packets input, 0 bytes, 0 no buffer,Received 0 broadcasts (0 multicast),0 runts, 0 giants, 0 throttles,0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored,0 watchdog, 0 multicast,0 pause input,0 input packets with dribble condition detected,0 packets output, 0 bytes, 0 underruns,0 output errors, 0 collisions, 15 interface resets,0 babbles, 0 late collision, 0 deferred,0 lost carrier, 0 no carrier, 0 PAUSE output,0 output buffer failures, 0 output buffers swapped out,Show vlan id vlan-id,center_1#show vlan,VLAN Name Status Ports,- - - -,1 default active Gi0/1, Gi0/2, Gi0/3, Gi0/4,Gi0/5, Gi0/6, Gi0/7, Gi0/8,Gi0/9, Gi0/10, Gi0/11, Gi0/12,Gi0/13, Gi0/14, Gi0/15, Gi0/16,Gi0/17, Gi0/18, Gi0/19, Gi0/20,Gi0/21, Gi0/22, Gi0/23, Gi0/24,Gi0/25, Gi0/26, Gi0/27, Gi0/28,1002 fddi-default act/unsup,1003 token-ring-default act/unsup,1004 fddinet-default act/unsup,1005 trnet-default act/unsup,补充命令:,Show ip interface brief,no ip domain-lookup,no logging console,
展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > 图纸专区 > 小学资料


copyright@ 2023-2025  zhuangpeitu.com 装配图网版权所有   联系电话:18123376007

备案号:ICP2024067431-1 川公网安备51140202000466号


本站为文档C2C交易模式,即用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。装配图网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知装配图网,我们立即给予删除!