Cisco 3750/Cisco 4506交换机vlan划分
1.找到cisco交换机的调试线,在微机上通过串口与交换机的Console连接,设置SecureCRT:波特率 9600,数据位 8,奇偶校验 无,停止位 1,数据流控制 无。
2.关闭交换机电源,打开SecureCRT,连接到相应的串口上。连接成功后标签页上会有绿色的小勾勾。
3.打开交换机电源,过大约20s后SecureCRT开始有交换机的启动信息显示,我的显示可参见附件,最好跟着顺序看一遍。(PS:系统运行时不需要重启交换机,调试线插入到console口中应该就会有输出的)
4.启动完成后会有一句话:
Press RETURN to getstarted!
这时候按下回车会出现switch>的命令提示符,如果这时候按下Enter,Break,Ctrl-C都没有出现命令提示符,那么恭喜你,你的调试线弄错了,去搞一根cisco原厂的调试线来,别拿IBM、华为或者东软的调试线来凑合。
5.接下来就是命令了,先看懂这些命令为先,否则交换机一有不一样就惨了。
switch> ena //进入特权模式,命令全程是enable switch# show vlan //查看交换机vlan和端口信息,东莞3750如附图1,4506如附图2 switch#conf t //进入config模式,该命令是configure terminal的缩写 switch(config)# vlan 2 //创建并进入vlan 2 swtich(config-vlan)# name BackupLAN //给vlan 2命名为BackupLAN switch(config-vlan)# end //退出config模式 switch# show vlan //瞧瞧是不是有名为BackupLAN的vlan swtich# conf t //你懂的 swtich(config)# int Gi1/0/13 //进入到第13口上,这里尤为注意,口的名称在show vlan界面中能够看到,不同交换机不一样 switch(conf-if)#switchport access vlan 2 //赋予vlan2的访问权限 switch(conf-if)# int Gi1/0/14 //进入到第14口上,下面你都懂的 switch(conf-if)#switchport access vlan 2 …… switch(conf-if)# int Gi1/0/24 switch(conf-if)#switchport access vlan 2 switch(conf-if)# end switch# wr //保存当前配置 |
需要注意的是黑体部分代码,交换机各个口的名称不一样,这是在刚开始的show vlan或者show run命令可以看见。
6.基本的vlan就划分完毕了,测试交换机各个口之间互ping怎么样,原则上需要vlan内测一下,vlan间也要测一下。
7.大功告成!!!
附图1 Cisco3750-X24T-S交换机配置结果
附图2 Cisco4506-E交换机配置结果
附录1 Cisco3750-X24T-S 配置记录
Using driver version1 for media type 2
Base ethernet MACAddress: 6c:20:56:a1:7d:00
Xmodem file systemis available.
Thepassword-recovery mechanism is enabled.
InitializingFlash...
mifs[2]: 3 files, 1directories
mifs[2]: Totalbytes : 2097152
mifs[2]: Bytesused : 275456
mifs[2]: Bytesavailable : 1821696
mifs[2]: mifs fscktook 2 seconds.
mifs[3]: 0 files, 1directories
mifs[3]: Totalbytes : 4194304
mifs[3]: Bytesused : 1024
mifs[3]: Bytesavailable : 4193280
mifs[3]: mifs fscktook 3 seconds.
mifs[4]: 5 files, 1directories
mifs[4]: Totalbytes : 524288
mifs[4]: Bytesused : 9216
mifs[4]: Bytesavailable : 515072
mifs[4]: mifs fscktook 0 seconds.
mifs[5]: 5 files, 1directories
mifs[5]: Totalbytes : 524288
mifs[5]: Bytesused : 9216
mifs[5]: Bytesavailable : 515072
mifs[5]: mifs fscktook 1 seconds.
mifs[6]: 462 files,8 directories
mifs[6]: Totalbytes : 57671680
mifs[6]: Bytesused : 42912768
mifs[6]: Bytesavailable : 14758912
mifs[6]: mifs fscktook 44 seconds.
...done InitializingFlash.
done.
Loading"flash:/c3750e-universalk9npe-mz.150-1.SE3/c3750e-universalk9npe-mz.150-1.SE3.bin"...@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@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@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
File"flash:/c3750e-universalk9npe-mz.150-1.SE3/c3750e-universalk9npe-mz.150-1.SE3.bin"uncompressed and installed, entry point: 0x3000
executing...
Restricted Rights Legend
Use, duplication, ordisclosure by the Government is
subject torestrictions as set forth in subparagraph
(c) of theCommercial Computer Software - Restricted
Rights clause at FARsec. 52.227-19 and subparagraph
(c) (1) (ii) of theRights in Technical Data and Computer
Software clause atDFARS sec. 252.227-7013.
cisco Systems, Inc.
170 West Tasman Drive
San Jose, California 95134-1706
Cisco IOS Software,C3750E Software (C3750E-UNIVERSALK9NPE-M), Version 15.0(1)SE3, RELEASE SOFTWARE(fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c)1986-2012 by Cisco Systems, Inc.
Compiled Wed30-May-12 13:41 by prod_rel_team
Initializingflashfs...
Using driver version3 for media type 2
mifs[3]: 3 files, 1directories
mifs[3]: Totalbytes : 2097152
mifs[3]: Bytesused : 275456
mifs[3]: Bytesavailable : 1821696
mifs[3]: mifs fscktook 0 seconds.
mifs[3]:Initialization complete.
mifs[4]: 0 files, 1directories
mifs[4]: Totalbytes : 4194304
mifs[4]: Bytesused : 1024
mifs[4]: Bytesavailable : 4193280
mifs[4]: mifs fscktook 0 seconds.
mifs[4]:Initialization complete.
mifs[5]: 5 files, 1directories
mifs[5]: Totalbytes : 524288
mifs[5]: Bytesused : 9216
mifs[5]: Bytesavailable : 515072
mifs[5]: mifs fscktook 0 seconds.
mifs[5]:Initialization complete.
mifs[6]: 5 files, 1directories
mifs[6]: Totalbytes : 524288
mifs[6]: Bytesused : 9216
mifs[6]: Bytesavailable : 515072
mifs[6]: mifs fscktook 1 seconds.
mifs[6]:Initialization complete.
mifs[7]: 462 files,8 directories
mifs[7]: Totalbytes : 57671680
mifs[7]: Bytesused : 42912768
mifs[7]: Bytesavailable : 14758912
mifs[7]: mifs fscktook 0 seconds.
mifs[7]:Initialization complete.
...done Initializingflashfs.
Checking forBootloader upgrade.. not needed
FIPS: Flash KeyCheck : Begin
FIPS: Flash KeyCheck : End, Not Found, FIPS Stacking Not Enabled
POST: CPU MICregister Tests : Begin
POST: CPU MICregister Tests : End, Status Passed
POST: MA BIST :Begin
POST: MA BIST : End,Status Passed
POST: TCAM BIST :Begin
POST: TCAM BIST :End, Status Passed
POST: SF ASIC BIST :Begin
POST: SF ASIC BIST :End, Status Passed
POST: Switch FabricMemory Tests : Begin
POST: Switch FabricMemory Tests : End, Status Passed
POST: CPU MICinterface Loopback Tests : Begin
POST: CPU MICinterface Loopback Tests : End, Status Passed
POST: PortASICRingLoopback Tests : Begin
POST: PortASICRingLoopback Tests : End, Status Passed
extractingfront_end/front_end_ucode_info (309 bytes)
Waiting for StackMaster Election...
POST: Thermal, FanTests : Begin
POST: Thermal, FanTests : End, Status Passed
POST: PortASIC PortLoopback Tests : Begin
POST: PortASIC PortLoopback Tests : End, Status Passed
POST: PortASICMacsec Loopback Tests : Begin
POST: PortASICMacsec Loopback Tests : End, Status Passed
POST: EMAC LoopbackTests : Begin
POST: EMAC LoopbackTests : End, Status Passed
Election Complete
Switch 1 booting asMaster
Waiting for Portdownload...Complete
This productcontains cryptographic features and is subject to United
States and localcountry laws governing import, export, transfer and
use. Delivery ofCisco cryptographic products does not imply
third-partyauthority to import, export, distribute or use encryption.
Importers,exporters, distributors and users are responsible for
compliance with U.S.and local country laws. By using this product you
agree to comply withapplicable laws and regulations. If you are unable
to comply with U.S.and local laws, return this product immediately.
A summary of U.S.laws governing Cisco cryptographic products may be found at:
http://www.cisco.com/wwl/export/crypto/tool/stqrg.html
If you requirefurther assistance please contact us by sending email to
export@cisco.com.
cisco WS-C3750X-24(PowerPC405) processor (revision A0) with 262144K bytes of memory.
Processor board IDFDO1637Y0QZ
Last reset frompower-on
1 Virtual Ethernetinterface
1 FastEthernetinterface
28 Gigabit Ethernetinterfaces
2 Ten GigabitEthernet interfaces
Thepassword-recovery mechanism is enabled.
512K bytes offlash-simulated non-volatile configuration memory.
Base ethernet MACAddress : 6C:20:56:A1:7D:00
Motherboard assemblynumber : 73-12530-06
Motherboard serialnumber : FDO163708W9
Model revisionnumber : A0
Motherboard revisionnumber : A0
Model number : WS-C3750X-24T-S
Daughterboardassembly number : 800-32727-03
Daughterboard serialnumber : FDO163706SM
System serialnumber : FDO1637Y0QZ
Top Assembly PartNumber : 800-31327-03
Top AssemblyRevision Number : B0
Version ID : V03
CLEI CodeNumber : COMJV00ARC
Hardware BoardRevision Number : 0x04
Switch PortsModel SW Version SW Image
------ ---------- ---------- ----------
* 1 30 WS-C3750X-24 15.0(1)SE3 C3750E-UNIVERSALK9NPE-M
Press RETURN to getstarted!
附录2 Cisco 4506-E配置记录
Starting SystemServices
diagsk10-postversion 4.1.7.4
prod: WS-X45-SUP7-Epart: 73-14393-02 serial: CAT1633L0A0
Power-on-self-testfor Module 1: WS-X45-SUP7-E
Test Status: (. = Pass, F = Fail, U =Untested)
CPU Subsystem Tests...
seeprom: Pass
Traffic: L3Looopback ...
Test Results: Pass
Traffic: L2 Loopback...
Test Results: Pass
post done
Exiting to ios...
Starting IOSServices
Restricted Rights Legend
Use, duplication, ordisclosure by the Government is
subject torestrictions as set forth in subparagraph
(c) of theCommercial Computer Software - Restricted
Rights clause at FARsec. 52.227-19 and subparagraph
(c) (1) (ii) of theRights in Technical Data and Computer
Software clause atDFARS sec. 252.227-7013.
cisco Systems, Inc.
170 West Tasman Drive
San Jose, California 95134-1706
Cisco IOS Software,IOS-XE Software, Catalyst 4500 L3 Switch Software (cat4500e-UNIVERSALK9-M),Version 03.02.00.SG RELEASE SOFTWARE (fc4)
Technical Support: http://www.cisco.com/techsupport
Copyright (c)1986-2011 by Cisco Systems, Inc.
Compiled Tue26-Apr-11 18:55 by prod_rel_team
Cisco IOS-XEsoftware, Copyright (c) 2005-2010 by cisco Systems, Inc.
All rightsreserved. Certain components of CiscoIOS-XE software are
licensed under theGNU General Public License ("GPL") Version 2.0. The
software codelicensed under GPL Version 2.0 is free software that comes
with ABSOLUTELY NOWARRANTY. You can redistribute and/ormodify such
GPL code under theterms of GPL Version 2.0. For moredetails, see the
documentation or"License Notice" file accompanying the IOS-XE software,
or the applicableURL provided on the flyer accompanying the IOS-XE
software.
Image text-base:0x100A09B4, data-base: 0x13EFC728
This productcontains cryptographic features and is subject to United
States and localcountry laws governing import, export, transfer and
use. Delivery ofCisco cryptographic products does not imply
third-partyauthority to import, export, distribute or use encryption.
Importers,exporters, distributors and users are responsible for
compliance with U.S.and local country laws. By using this product you
agree to comply withapplicable laws and regulations. If you are unable
to comply with U.S.and local laws, return this product immediately.
A summary of U.S.laws governing Cisco cryptographic products may be found at:
http://www.cisco.com/wwl/export/crypto/tool/stqrg.html
If you requirefurther assistance please contact us by sending email to
export@cisco.com.
cisco WS-C4506-E(MPC8572) processor (revision 10) with 2097152K/20480K bytes of memory.
Processor board IDFXS1631Q0AG
MPC8572 CPU at1.5GHz, Supervisor 7
Last reset fromPowerUp
1 Virtual Ethernetinterface
48 Gigabit Ethernetinterfaces
4 Ten GigabitEthernet interfaces
511K bytes ofnon-volatile configuration memory.
Press RETURN to getstarted!