




全文预览已结束
下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
思科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 ;配置系统日志记录时间格式 #service 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 secret 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为端口号。 对于一组端口,可以使用以下的命令进入,例如: 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,也可以设置为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)# shutdown 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 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 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 trunk 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 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 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. 查看端口配置 Switch# 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交换机配置为VTP server mode,在没有管理域的状态。直到在一个trunk链路上收到其他域的宣告或手工配置管理域。VTP并不是一定要配置,但是配置可以简化配置复杂度和易于管理。 VTP pruning(VTP裁剪)增强了网络带宽利用率。结合VTP,使得没有必要接收某个vlan的广播信息的交换机被裁剪,免于接收包括broadcast, multicast, unknown, and flooded unicast的包。 Switch(config)# vtp domain domain_name Switch(config)# vtp mode client | server | transparent Switch(config)# vtp version 1 | 2 Switch(config)# vtp password password_string Switch(config)# vtp pruning Switch# show vtp status 5.2. 配置VLAN端口 5.3. 创建VLAN 缺省状态下,所有的二层端口均属于vlan1,vlan的配置方法如下: 命令 目的 Step 1 Switch# vlan database 进入vlan配置方式. Step 2 Switch(vlan)# vlan vlan_ID 加入一个VLAN. Step 3 Switch(vlan)# vtp domain name 设置vtp域名 Step 3 Switch(vlan)# exit 更新VLAN数据库,并在管理域内广播,退到全局模式 Step 4 Switch# show vlan name vlan_name 验证VLAN配置 删除配置好的vlan Switch# vlan database Switch(vlan)# no vlan x Deleting VLAN 3. Switch(vlan)# exit 5.4. 给vlan分配端口 Switch(config)# interface fastethernet x/y Switch(config-if)# shutdown Switch(config-if)# switchport Switch(config-if)# switchport mode access Switch(config-if)# switchport access vlan x Switch(config-if)# no shutdown Switch(config-if)# end Switch# exit 5.5. 配置vlan地址 Switch(config)# interface vlan x Switch(config)# ip add x.x.x.x x.x.x.x6、配置镜像端口 在交换机上配置镜像端口(Mirroring Port)用于建立内部网络的监控端口,以便收集相关被监测端口的数据流量,进行数据流监控及
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 煤炭资源开发与区域经济发展合作协议
- 跨国公司员工培训与派遣协议
- 离婚协议中关于股权分割及子女抚养权明确协议书模板
- 离婚协议有声小说改编及财产分割执行合同
- 工业厂房租赁合同范本:含租赁用途及环保要求
- 城郊私人土地买卖合同中的土地权属争议解决协议
- 诺信安全培训公司课件
- 离婚后子女抚养权变更及父母共同监护协议
- 高速铁路运营企业关键岗位保密协议与竞业限制
- 绿色建筑劳务合作协议
- 新闻采编基础知识课件
- 2025年乡村医生考试题库:基础医学知识及公共卫生试题卷
- 规划自然资源局土地储备中心事业单位招聘工作人员遴选招录129人完整版及完整答案(历年真题)
- 部队用电安全
- 《机械基础(第二版)》中职全套教学课件
- (完整版)人教版小学英语单词表(带音标)
- 女生青春期生理健康教育课件
- 2024年全球高级持续性威胁(APT)研究报告
- 休学创业申请书
- 人工智能导论-第2版-全套课件
- 颈椎病课件完整版
评论
0/150
提交评论