1、.思科4500系列交换机简明配置维护手册 1、 配置机器名、telnet、密码 在全局模式下,用conf t,进入配置模式,进行以下配置: #conf t #clock timezone GMT 8 ;配置时区 #clock set 13:30:21 31 JAN 2004 ;配置交换机时间 #clock calendar-valid ;使能硬件时钟同步 #service timestamps debug datetime localtime ;配置系统debug记录时间格式 #service timestamps log datetime localtime ;配置系统日志记录时间格式 #s
2、ervice password-encryption ;配置使用加密服务,主要针对口令加密 #hostname xxxx ;配置交换机名称 #enable secret 0 xxxxx ;配置enable口令 #copy run start ;将配置信息保存到NVRAM中,重启动不会丢失 #line vty 0 4 ;配置telnet #exec-timeout 30 0 #password 0 xxxx #login 2、配置snmp #conf t #snmp-server community cisco ro(只读) ;配置只读通信字符串 #snmp-server community s
3、ecret rw(读写) ;配置读写通信字符串 #snmp-server enable traps ;配置网关SNMP TRAP #snmp-server host 10.254.190.1 rw ;配置网关工作站地址 3、 启动三层功能 #ip routing ;启动路由功能 4、 端口设置 4.1. 端口基本设置 Cisco 65xx系列交换机的端口缺省都是路由模式,一般都会配置为交换端口使用,进入端口配置模式: 对于单一端口,在配置模式下输入:interface Ethernet,Fast Ethernet,Gigabit Ethernet x/y, x为槽位号,y为端口号。 对于一组端
4、口,可以使用以下的命令进入,例如: Switch(config)# interface range fastethernet 5/1 - 5 或: Switch(config-if)# interface range gigabitethernet 2/1 - 2, gigabitethernet 3/1 - 2 进行端口配置模式后,可以shutdown,或no shutdown端口,并可以对端口进行配置,快速以太端口有全双工、半双工和自动协商模式,如果知道对端连接的设备是采用何种方式,最好采用手工设置方式固定端口的模式和速率。缺省是自动协商模式。 快速以太端口的速率可以设置为100M,也可以
5、设置为10M和自动协商。缺省是自动协商方式。如: Switch(config-if)#speed 10 | 100 | auto(速度) Switch(config-if)# duplex auto | full | half(双工) 或添加注释,如: Switch(config-if)# description Channel-group to Marketing 4.2. 配置二层交换接口 (以fastethernet为例,gigabitethernet一样) Switch(config)# interface fastethernet x/y Switch(config-if)# shu
6、tdown Switch(config-if)# switchport ;6500上缺省端口为路由端口,需要写switchport将端口设置为交换端口 Switch(config-if)# switchport mode access Switch(config-if)# switchport access vlan x Switch(config-if)# no shutdown Switch(config-if)# end 清除二层接口配置 (以fastethernet为例,gigabitethernet一样) Switch(config)# interface fastethernet
7、x/y Switch(config-if)# no switchport Switch(config-if)# end 注:使用default interface ethernet | fastethernet | gigabitethernet slot/port,使端口回到原来的缺省配置。 4.3. 配置三层路由端口 6500的端口缺省就是具有三层交换的端口,用来跟其他设备的连接,当将一个端口配置成三层端口之后,就可以在此端口上分配IP地址了。 Switch(config)# interface fastethernet x/y Switch(config)# ip add x.x.x.x
8、 x.x.x.x Switch(config)# no shutdown 4.4. 配置端口Trunk 将一个二层端口配置为Trunk模式: Switch(config)# interface fastethernet x/y (以fastethernet为例,gigabitethernet一样) Switch(config-if)# shutdown Switch(config-if)# switchport Switch(config-if)# switchport trunk encapsulation dot1q Switch(config-if)# switchport mode t
9、runk Switch(config-if)# no shutdown Switch(config-if)# end Switch# exit 4.5. Ethernaet Channel Switch(config)# interface range gigabitethernet1/1 - 2 Switch(config-if)#no ip address Switch(config-if)#switchport Switch(config-if)#switchport trunk encapsulation dot1q Switch(config-if)#switchport mode
10、trunk Switch(config-if)#switchport trunk native vlan 1 Switch(config-if)#channel-group 1 mode on 产生配置结果如下: interface Port-channel1 ;自动产生,并且一定要如下所示,否则可能会有问题。 switchport switchport trunk encapsulation dot1q switchport mode trunk ! interface GigabitEthernet1/1 no ip address switchport switchport trunk
11、encapsulation dot1q switchport trunk native vlan 1 channel-group 1 mode on ! interface GigabitEthernet1/2 no ip address switchport switchport trunk encapsulation dot1q switchport trunk native vlan 1 channel-group 1 mode on 如果有问题,使用命令#no int port-channel 1 ,#int g2/1 -2 ,#no switchport 4.6. 查看端口配置 Sw
12、itch# show running-config interface fastethernet 5/8 Switch# show interfaces fastethernet 5/8 switchport Switch# show running-config interface port-channel 1 Switch# show spanning-tree interface fastethernet 4/45、配置VLAN 5.1. 配置VTP VTP是一个2层信息协议,包括版本1和2。一个网络设备只能属于一个VTP domain。缺省, Catalyst 6500交换机配置为VT
13、P server mode,在没有管理域的状态。直到在一个trunk链路上收到其他域的宣告或手工配置管理域。VTP并不是一定要配置,但是配置可以简化配置复杂度和易于管理。 VTP pruning(VTP裁.2018年12月六级真题试卷答案(完整版)来源:文都教育PartI Writing【平衡工作和娱乐参考范文】There is a hot discussionabout how to balance work and leisure. Against a backdrop of an era characterized by opportunity and challenges, more
14、and more people put focus on their job and ignore the importance of entertainment. To make our work more efficient and live a healthier life, as far as I am concerned, they are relative and should be balanced well.矚慫润厲钐瘗睞枥庑赖賃軔。The skill to balance study and work contributes directly to enhancing our
15、 work performance, if one wants to achieve his target or intends to fulfill his ambition, he will have to possess the scientific attitude toward the balance of work and leisure, otherwise he will not achieve any success. Additionally, when we spend much of our time on working, both of our physical a
16、nd mental condition would be in a depressing state, which means we need proper leisure to refresh our spirit.聞創沟燴鐺險爱氇谴净祸測。Taking an objective and rational attitude toward the balance of work and leisure is very important. On the one hand, we could arrange our work in advance and complete it efficien
17、tly in time; on the other hand, we could take advantage of our spare time to develop a hobby or just relax ourselves. Only in this way could we better our living quality further.残骛楼諍锩瀨濟溆塹籟婭骒。【六级听力参考答案】A)It can benefit professionals and non-professionals alike.酽锕极額閉镇桧猪訣锥顧荭。2. B) Stories about some fe
18、male physicists.3. C) By including lots of fascinating knowledge.4. D) It provides experiments they can do themselves.彈贸摄尔霁毙攬砖卤庑诒尔。5. D)He has not idea how to proceed with his dissertation.謀荞抟箧飆鐸怼类蒋薔點鉍。6. A) It is too broad. 7. B) Nature.8. C) List the parameters first.9. A) The unprecedented high t
19、emperature in Greenland.厦礴恳蹒骈時盡继價骚卺癩。10.C) It typically appears about once every ten years.茕桢广鳓鯡选块网羈泪镀齐。11. B) Iceless summers in the Arctic.12. c) A strong determination.13. D) It is most important to have confidence in ones willpower.鹅娅尽損鹌惨歷茏鴛賴縈诘。14. A) They could keep on working longer.15. B) The
20、y are subject to change.16. A) About half of current jobs might be automated.籟丛妈羥为贍偾蛏练淨槠挞。17. D) They could grade high-school essays just like human teachers.預頌圣鉉儐歲龈讶骅籴買闥。18. c) It has to rely on huge amounts of previous data.渗釤呛俨匀谔鱉调硯錦鋇絨。19. D) The theoretical aspects of sustainable energy.铙誅卧泻噦圣骋贶頂廡缝勵。20. A) Drive trains with solar energy.21. B) Find a new material for storing energy.22. D) The poor relation betwee