1、3550交换机简要配置手册中文3550交换机(EMI)简明配置维护手册目录说明 3产品特性 3配置端口 4配置一组端口 4配置二层端口 6配置端口速率及双工模式 6端口描述 7配置三层口 8监控及维护端口 10监控端口和控制器的状态 10刷新、重置端口及计数器 12关闭和打开端口 13配置VLAN 14理解VLAN 14可支持的VLAN 15配置正常范围的VLAN 15生成、修改以太网VLAN 15删除VLAN 17将端口分配给一个VLAN 18配置VLAN Trunks 19使用STP实现负载均衡 22说明本手册只包括日常使用的有关命令及特性,其它未涉及的命令及特性请参考英文的详细配置手册。
2、产品特性3550EMI是支持二层、三层功能(EMI)的交换机支持VLAN 到1005个VLAN 支持VLAN ID从1到4094( IEEE 802.1Q 标准) 支持ISL及IEEE 802.1Q封装安全 支持IOS标准的密码保护 静态MAC地址映射 标准及扩展的访问列表支持,对于路由端口支持入出双向的访问列表,对于二层端口支持入的访问列表 支持基于VLAN的访问列表3层支持(需要多层交换的IOS) HSRP IP路由协议o RIPversions 1 and 2o OSPFo IGRP及EIGRPo BGPVersion 4 监视 交换机LED指示端口状态 SPAN及远端SPAN (RSP
3、AN) 可以监视任何端口或VLAN的流量 内置支持四组的RMON监控功能(历史、统计、告警及事件) Syslog功能其它功能:支持以下的GBIC模块: 1000BASE-T GBIC: 铜线最长100m 1000BASE-SX GBIC: 光纤最长1804feet (550m) 1000BASE-LX/LH GBIC: 光纤最长32,808feet (6 miles or 10km) 1000BASE-ZX GBIC: 光纤最长328,084feet (62 miles or 100km)配置端口配置一组端口命令 目的 Step1 configure terminal进入配置状态Step2 i
4、nterface range port-range 进入组配置状态Step3 可以使用平时的端口配置命令进行配置Step4 end退回Step5 show interfaces interface-id验证配置Step6 copy running-config startup-config保存当使用interface range命令时有如下的规则: 有效的组范围:o vlan从1 到4094 o fastethernet 槽位/first port - last port, 槽位为0o gigabitethernet槽位/first port - last port,槽位为0o port-ch
5、annel port-channel-number - port-channel-number, port-channel号从1到64 端口号之间需要加入空格,如:interface range fastethernet 0/15 是有效的,而interface range fastethernet 0/1-5 是无效的. interface range 命令只能配置已经存在的interface vlan 所有在同一组的端口必须是相同类别的。见以下例子:Switch# configure terminalSwitch(config)# interface range fastethernet0
6、/1 - 5 Switch(config-if-range)# no shutdown Switch(config-if-range)#*Oct 6 08:24:35: %LINK-3-UPDOWN: Interface FastEthernet0/1, changed state to up*Oct 6 08:24:35: %LINK-3-UPDOWN: Interface FastEthernet0/2, changed state to up*Oct 6 08:24:35: %LINK-3-UPDOWN: Interface FastEthernet0/3, changed state
7、to up*Oct 6 08:24:35: %LINK-3-UPDOWN: Interface FastEthernet0/4, changed state to up*Oct 6 08:24:35: %LINK-3-UPDOWN: Interface FastEthernet0/5, changed state to up*Oct 6 08:24:36: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/05, changed state to up*Oct 6 08:24:36: %LINEPROTO-5-UPDOW
8、N: Line protocol on Interface FastEthernet0/3, changed state to up*Oct 6 08:24:36: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/4, changed state to up 以下的例子显示使用句号来配置不同类型端口的组:Switch# configure terminalSwitch(config)# interface range fastethernet0/1 - 3, gigabitethernet0/1 - 2 Switch(
9、config-if-range)# no shutdown Switch(config-if-range)#*Oct 6 08:29:28: %LINK-3-UPDOWN: Interface FastEthernet0/1, changed state to up*Oct 6 08:29:28: %LINK-3-UPDOWN: Interface FastEthernet0/2, changed state to up*Oct 6 08:29:28: %LINK-3-UPDOWN: Interface FastEthernet0/3, changed state to up*Oct 6 08
10、:29:28: %LINK-3-UPDOWN: Interface GigabitEthernet0/1, changed state to up*Oct 6 08:29:28: %LINK-3-UPDOWN: Interface GigabitEthernet0/2, changed state to up*Oct 6 08:29:29: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/ 1, changed state to up*Oct 6 08:29:29: %LINEPROTO-5-UPDOWN: Li
11、ne protocol on Interface FastEthernet0/ 2, changed state to up*Oct 6 08:29:29: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/ 3, changed state to up 配置二层端口3550的所有端口缺省的端口都是二层口,如果此端口已经配置成三层端口的话,则需要用switchport来使其成为二层端口。配置端口速率及双工模式可以配置快速以太口的速率为10/100Mbps及千兆以太口的速率为10/100/1000-Mbps; 但对于GBI
12、C端口则不能配置速率及双工模式,有时可以配置nonegotiate,当需要联接不支持自适应的其它千兆端口时命令目的 Step1 configure terminal进入配置状态.Step2 interface interface-id进入端口配置状态.Step3 speed 10 | 100 | 1000 | auto | nonegotiate设置端口速率 注1000 只工作在千兆口. GBIC模块只工作在1000 Mbps下. nonegotiate 只能在这些GBIC上用 1000BASE-SX, -LX, and -ZX GBIC.Step4 duplex auto | full |
13、half设置全双工或半双工. Step5 end退出Step6 show interfaces interface-id显示有关配置情况Step7 copy running-config startup-config保存Switch# configure terminalSwitch(config)# interface fastethernet0/3Switch(config-if)# speed 10Switch(config-if)# duplex half端口描述 命令目的 Step1 configure terminal进入配置模式Step2 interface interface-
14、id进入要加入描述的端口Step3 description string加入描述 (最多240个字符).Step4 end退回.Step5 show interfaces interface-id descriptionorshow running-config验证.Step6 copy running-config startup-config保存Use the no description interface configuration command to delete the description.This example shows how to add a description
15、 on Fast Ethernet interface 0/4 and to verify the description:Switch# config terminalEnter configuration commands, one per line. End with CNTL/Z.Switch(config)# interface fastethernet0/4Switch(config-if)# description Connects to MarketingSwitch(config-if)# endSwitch# show interfaces fastethernet0/4
16、descriptionInterface Status Protocol DescriptionFa0/4 up down Connects to Marketing配置三层口Catalyst 3550支持三种类型的三层端口: SVIs: 即interface vlanNote当生成一个interface Vlan时,只有当把某一物理端口分配给它时才能被激活 三层以太网通道口(EtherChannel) .路由口:路由口是指某一物理端口在端口配置状态下用no switchport命令生成的端口 所有的三层都需要IP地址以实现路由交换配置步骤如下:命令目的Step1 configure term
17、inal进入配置状态Step2 interface fastethernet | gigabitethernet interface-id | vlan vlan-id | port-channel port-channel-number进入端口配置状态Step3 no switchport把物理端口变成三层口Step4 ip address ip_address subnet_mask 配置IP地址和掩码Step5 no shutdown激活端口Step6 end退出Step7 show interfaces interface-idshow ip interface interface-i
18、dshow running-config interface interface-id验证配置Step8 copy running-config startup-config保存配置配置举例如下:Switch# configure terminalEnter configuration commands, one per line. End with CNTL/Z.Switch(config)# interface gigabitethernet0/2Switch(config-if)# no switchportSwitch(config-if)# ip address 192.20.135
19、.21 255.255.255.0Switch(config-if)# no shutdownSwitch(config-if)# end show ip interface命令:Switch# show ip interface gigabitethernet0/2GigabitEthernet0/2 is up, line protocol is up Internet address is 192.20.135.21/24 Broadcast address is 255.255.255.255 Address determined by setup command MTU is 150
20、0 bytes Helper address is not set Directed broadcast forwarding is disabled 监控及维护端口监控端口和控制器的状态主要命令见下表:Show Commands for Interfaces Command 目的 show interfaces interface-id显示所有端口或某一端口的状态和配置.show interfaces interface-id status err-disabled显示一系列端口的状态或错误关闭的状态show interfaces interface-id switchport显示二层端口的
21、状态,可以用来决定此口是否为二层或三层口。show interfaces interface-id description显示端口描述show ip interface interface-id显示所有或某一端口的IP可用性状态show running-config interface interface-id显示当前配置中的端口配置情况show version显示软硬件等情况举例如下:Switch# show interfaces status Port Name Status Vlan Duplex Speed TypeGi0/1 connected routed a-full a-100
22、 10/100/1000BaseTXGi0/2 wce server 20.20.2 disabled routed auto auto 10/100/1000Base TXGi0/3 ip wccp web-cache notconnect routed auto auto 10/100/1000Base TXGi0/4 notconnect routed auto auto 10/100/1000Base TXGi0/5 notconnect routed auto auto 10/100/1000Base TXGi0/6 disabled routed auto auto 10/100/
23、1000Base TXGi0/7 disabled routed auto auto 10/100/1000Base TXGi0/8 disabled routed auto 100 10/100/1000Base TXGi0/9 notconnect routed auto auto 10/100/1000Base TXGi0/10 notconnect routed auto auto 10/100/1000Base TXGi0/11 disabled routed auto auto unknownGi0/12 notconnect routed auto auto unknown Sw
24、itch# show interfaces fastethernet 0/1 switchportName: Fa0/1Switchport: EnabledAdministrative Mode: static accessOperational Mode: downAdministrative Trunking Encapsulation: dot1qNegotiation of Trunking: OffAccess Mode VLAN: 1 (default)Trunking Native Mode VLAN: 1 (default)Trunking VLANs Enabled: AL
25、LPruning VLANs Enabled: 2-1001 Protected: falseUnknown unicast blocked: disabledUnknown multicast blocked: disabled Voice VLAN: dot1p (Inactive)Appliance trust: 5Switch# show running-config interface fastethernet0/2Building configuration. Current configuration : 131 bytes!interface FastEthernet0/2 s
26、witchport mode access switchport protected no ip address mls qos cos 7 mls qos cos overrideend刷新、重置端口及计数器Clear命令目的 clear counters interface-id清除端口计数器.clear interface interface-id重置某一端口的硬件逻辑clear line number | console 0 | vty number重置异步串口的硬件逻辑Noteclear counters 命令只清除用show interface所显示的计数,不影响用snmp得到的计
27、数 举例如下:Switch# clear counters fastethernet0/5 Clear show interface counters on this interface confirm y Switch#*Sep 30 08:42:55: %CLEAR-5-COUNTERS: Clear counter on interface FastEthernet0/5by vty1 (171.69.115.10) 可使用clear interface 或 clear line 命令来清除或重置某一端口或串口,在大部分情况下并不需要这样做:Switch# clear interface
28、 fastethernet0/5 关闭和打开端口命令 目的 Step1 configure terminal进入配置状态Step2 interface vlan vlan-id | fastethernet | gigabitethernet interface-id | port-channel port-channel-number选择要关闭的端口Step3 shutdown关闭Step4 end退出Step5 show running-config验证使用 no shutdown 命令重新打开端口.举例如下:Switch# configure terminalSwitch(config)
29、# interface fastethernet0/5 Switch(config-if)# shutdown Switch(config-if)#*Sep 30 08:33:47: %LINK-5-CHANGED: Interface FastEthernet0/5, changed state to a administratively down Switch# configure terminalSwitch(config)# interface fastethernet0/5 Switch(config-if)# no shutdown Switch(config-if)#*Sep 30 08:36:00: %LINK-3-UPDOWN: Interface FastEthernet0/5, changed state to up 配置VLAN理解VLAN 一个VLAN就是一个交换网,其逻辑上按功能、项目、应用来分而不必考虑用户的物理位置。任何交换口都可以属于某一VLAN, IP包、广播包及组播包均可以发送或广播给在此VLAN内的最终用户。每一个VLAN均可看成是一个逻辑网络,发往另一VLAN的数据包必须由路由器或网桥转发(如下图)。由于VLAN被看成是一个逻辑网络,其具有自己的网桥管理信息庫 (MIB) 并可支持自己的生成树 VLAN作
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1