配置示例Catalyst 2900XLWord格式.docx
- 文档编号:16208804
- 上传时间:2022-11-21
- 格式:DOCX
- 页数:25
- 大小:45.60KB
配置示例Catalyst 2900XLWord格式.docx
《配置示例Catalyst 2900XLWord格式.docx》由会员分享,可在线阅读,更多相关《配置示例Catalyst 2900XLWord格式.docx(25页珍藏版)》请在冰豆网上搜索。
∙WS-X2924-XL-V
∙WS-X2931-XL
∙WS-X2932-XL
有关当前支持中继的交换型号,请参阅下表:
交换机型号
ISL中继所要求的最低版本
IEEE802.1q中继所要求的最低版本
中继(ISL/802.1q)所要求的当前版本
WS-C2916M-XL(4-MegSwitch)
11.2(8)SA4(企业版)
11.2(8)SA5(原始版本)
11.2(8.6)SA6(原始版本)
WS-C2912-XL
12.0(5)WC
(1)或更高版本
WS-C2924-XL
WS-C2924C-XL
11.2(8)SA4(EnterpriseEdition)
11.2(8)SA5(企业版)
WS-C2924M-XL
WS-C2912MF-XL
WS-C2924M-XL-DC
12.0(5)XU
WS-C3508G-XL
WS-C3512-XL
12.0(5)WC
(1)orlater
WS-C3524-XL
WS-C3548-XL
12.0(5)XP(企业版)
12.0(5)WC
(1)或更高版本
WS-C3524-PWR-XL
WS-C2950-12
不支持ISL
12.0(5)WC
(1)
802.1Q要求12.0(5)WC
(1)或更高版本,不支持ISL
WS-C2950-24
WS-C2950C-24
802.1Q要求12.0(5)WC
(1)或更高版本,不支持ISL
WS-C2950T-24
注意:
?
/B>
在上表中,只有WS-C2916M-XL是4MBDRAM交换机。
所列的所有其他交换机均为8MBDRAM交换机。
若要确定您的交换机的DRAM4为MB还是8MB,请输入用户级showversion命令。
有关更多信息,请参阅:
使用命令行界面(CLI)升级Catalyst2900-XL/3500-XL交换机软件(CLI)一文的"
如何通过命令行界面确定交换机内存容量"
部分。
[page]
对于Catalyst4000,5000,6000交换机:
∙Catalyst4000系列(包括Catalyst2948G和Catalyst2980G)只支持802.1q中继,而不支持ISL中继。
∙Catalyst6000系列交换机上的任何以太网端口支持802.1q或ISL封装。
∙具有中继能力的Catalyst5000端口根据模块的不同只支持ISL封装或ISL和802.1q中的任意一个。
检查这一项的最佳办法是使用showportcapabilities命令;
中继容量是明确规定的,例如:
∙cat5509showportcapabilities3
∙ModelWS-X5234
∙Port3/1
∙Type10/100BaseTX
∙Speedauto,10,100
∙Duplexhalf,full
∙Trunkencaptype802.1Q,ISL
∙
∙!
--该端口支持802.1Q和ISL.
∙Trunkmodeon,off,desirable,auto,nonegotiate
∙Channel3/1-2,3/1-4
∙Broadcastsuppressionpercentage(0-100)
∙Flowcontrolreceive-(off,on),send-(off,on)
∙Securityyes
∙Membershipstatic,dynamic
∙Faststartyes
∙QOSschedulingrx-(none),tx-(1q4t)
∙CoSrewriteyes
∙ToSrewriteIP-Precedence
∙Rewriteyes
∙UDLDyes
∙AuxiliaryVlan1..1000,untagged,dot1p,none
∙SPANsource,destination
∙确保整个中继链路范围内的中继模式匹配。
若链路的一端配置为ISL中继,则链路的另一端也应配置为ISL;
同样,若链路的一端配置为802.1q,则链路的另一端也要配置为802.1q。
配置
本节说明如何配置本文描述的各种特性。
若要了解有关本文中所使用命令的更多信息,请使用CommandLookup工具。
网络图
本文使用下图所示的网络设置。
以下配置适用于这些交换机:
∙为交换机分配的名称
∙在交换机上设置的口令
∙通过快速以太网链路连接的交换机
∙只为了便于管理而向交换机分配的IP地址
∙交换机上设置的VLAN中继协议(VTP)模式
∙交换机上添加第二个VLAN(VLAN2);
在这些VLAN上添加端口
∙在连接工作站的端口上激活Spanning-treeportfast(生成树portfast),根据拓扑结构,启用Catalyst5500上端口2/2,2/3上的Spanning-treeportfast,以及Catalyst3524XL上端口FastEthernet0/2和端口FastEthernet0/3上的Spanning-treeportfast
下面屏幕内容显示了在3524XL交换机上输入的命令。
命令之间的评语以blueitalics(兰色斜体字)添加进去的,以解释特定命令和步骤:
Catalyst3524-XL
!
---设置特权模式
---和交换机的Telnet口令
switch#configureterminal
Enterconfigurationcommands,oneperline..EndwithCNTL/Z.
switch(config)#hostname3524xl
3524xl(config)#enablepasswordmysecret
3524xl(config)#linevty04
3524xl(config-line)#login
3524xl(config-line)#passwordmysecret
3524xl(config-line)#exit
3524xl(config)#nologgingconsole
3524xl(config)#^Z
---为了管理,设置Vlan1的IP地址。
3524xl#configureterminal
Enterconfigurationcommands,oneperline.EndwithCNTL/Z.
3524xl(config)#intvlan1
3524xl(config-if)#ipaddress10.10.10.2255.255.255.0
3524xl(config-if)#end
---设置VTP模式。
---本例中,我们将该模式设置为透明。
---根据您的网络来设置相应的VTP模式。
---VTP的详细信息,请参考以下文件:
---在Catalyst2900XL和3500XL交换机上配置VTP、VLANs和VLAN中继。
3524xl#vlandatabase
3524xl(vlan)#vtptransparent
SettingdevicetoVTPTRANSPARENTmode.
---正在添加Vlan2
3524xl(vlan)#vlan2
VLAN2added:
Name:
VLAN0002
3524xl(vlan)#exit
APPLYcompleted.
Exiting....
---激活快速以太网接口0/1上的中继.
3524xl(config)#intfastEthernet0/1
3524xl(config-if)#switchportmodetrunk
---输入isl或dot1q中继封装。
3524xl(config-if)#switchporttrunkencapsulationisl
3524xl(config-if)#switchporttrunkencapsulationdot1q
---在2950交换机中不能使用上述两个switchport命令。
---2950交换机只支持802.1q封装,使用switchportmodetrunk
---命令激活接口上的中继之后,该封装将被自动配置。
---在dot1q封装中,您需要确保
---本地VLAN与该链路匹配。
---对于3524XL,默认情况下其本地VLAN为1。
---根据网络需要,您可以将
---本地VLAN改成其它的VLAN,
---不过,重要的是您必须在链路的另一端
---相应地更改本地VLAN(本例中是cat5509)。
---如果需要的话,您可以通过使用以下命令来更改本地VLAN:
---3524xl(config-if)#switchporttrunknativevlan<
vlanID>
.
---支持中继线上的所有VLAN
3524xl(config-if)#switchporttrunkallowedvlanall
3524xl(config-if)#exit
---以下这套命令将把FastEthernet0/2接口0/2
---分配给vlan2,并激活接口上的快速端口。
3524xl(config)#intfastEthernet0/2
3524xl(config-if)#switchportaccessvlan2
3524xl(config-if)#spanning-treeportfast
3524xl(config)#intfastEthernet0/3
3524xl(config-if)#^Z
--在关如何激活快速端口的详细信息,
---请参考:
使用Portfast和其它命令来解决工作站启动连接延迟问题
---请记住保存配置
---(您不必在CatOS交换机上保存配置)。
3524xl#writememory
Buildingconfiguration...
3524xl#
3524xl#showrunning-config
Currentconfiguration:
version12.0
noservicepad
servicetimestampsdebuguptime
servicetimestampsloguptime
noservicepassword-encryption
hostname3524xl
nologgingconsole
enablepasswordmysecret
ipsubnet-zero
interfaceFastEthernet0/1
switchportmodetrunk
---如果配置的是802.1q,
---那么您将在FastEthernet0/1接口上
---看到以下输出:
---interfaceFastEthernet0/1
---switchporttrunkencapsulationdot1q
---switchportmodetrunk
interfaceFastEthernet0/2
switchportaccessvlan2
spanning-treeportfast
interfaceFastEthernet0/3
interfaceFastEthernet0/4
interfaceFastEthernet0/5
interfaceFastEthernet0/6
interfaceFastEthernet0/7
interfaceFastEthernet0/8
interfaceFastEthernet0/9
interfaceFastEthernet0/10
interfaceFastEthernet0/11
interfaceFastEthernet0/12
interfaceFastEthernet0/13
interfaceFastEthernet0/14
interfaceFastEthernet0/15
interfaceFastEthernet0/16
interfaceFastEthernet0/17
interfaceFastEthernet0/18
interfaceFastEthernet0/19
interfaceFastEthernet0/20
interfaceFastEthernet0/21
interfaceFastEthernet0/22
interfaceFastEthernet0/23
interfaceFastEthernet0/24
interfaceGigabitEthernet0/1
interfaceGigabitEthernet0/2
interfaceVLAN1
ipaddress10.10.10.2255.255.255.0
noipdirected-broadcast
noiproute-cache
linecon0
transportinputnone
stopbits1
linevty04
passwordmysecret
login
linevty515
end
以下屏幕内容显示了在5500交换机上输入的命令。
为了说明某些命令和步骤,在命令之间用兰色斜体字添加了评语。
Catalyst5500
---设置交换机的系统名称和口令。
Console>
(enable)setsystemnamecat5509
Systemnameset.
cat5509>
(enable)setpassword
Enteroldpassword:
Enternewpassword:
Retypenewpassword:
Passwordchanged.
(enable)setenablepass
---给交换机分配IP地址。
(enable)setintsc010.10.10.3/24
Interfacesc0IPaddressandnetmaskset.
---在本例中,
---我们将VTP模式设置为透明;
---根据您的网络,
---设置相应的VTP模式。
(enable)setvtpmodetransparent
VTPdomainmodified
---有关VTP的详细信息,请参考以下文件:
---在Catalyst4000、5000交换机上配置VLAN中继
---添加Vlan2,并给它分配端口。
(enable)setvlan23/2
Vlan2configurationsuccessful
VLAN2modified.
VLAN1modified.
VLANMod/Ports
---------------------------
23/2
---在连接到工作站的端口上激活快速端口。
(enable)setspantreeportfast3/2enable
警告:
应只在与单一主机相连的端口上激活
Spantreeportfaststart(Spantree端口快速启动)功能。
将集线器、集中器、交换机、网桥等与快速启动端口相连可引起暂时性的生成树环路,
因此要谨慎使用。
Spantreeport3/2faststartenabled.
(enable)setspantreeportfast3/3enable
只应在与单一主机相连的端口上激活Spantreeportfaststart
(Spantree端口快速启动)功能。
将集线器、集中器、交换机、
网桥等与快速启动端口相连可引起暂时性的生成树环路,因此要谨慎使用。
Spantreeport3/3faststartenabled.
---如何激活快速端口的详细信息,请参考以下文件:
---使用Portfast和其它命令来解决工作站启动连接延迟问题
---将中继封装设置为ISL或802.1q。
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 配置示例Catalyst 2900XL 配置 示例 Catalyst 2900 XL