C3560 Boot Loader (C3560-HBOOT-M) Version 12.2(25r)SEC, RELEASE SOFTWARE (fc4)
cisco WS-C3560-24PS (PowerPC405) processor (revision P0) with 122880K/8184K bytes of memory.
3560-24PS starting...
Base ethernet MAC Address: 0002.4AEE.848A
Xmodem file system is available.
Initializing Flash...
flashfs[0]: 3 files, 0 directories
flashfs[0]: 0 orphaned files, 0 orphaned directories
flashfs[0]: Total bytes: 64016384
flashfs[0]: Bytes used: 8918011
flashfs[0]: Bytes available: 55098373
flashfs[0]: flashfs fsck took 1 seconds.
...done Initializing Flash.
Boot Sector Filesystem (bs:) installed, fsid: 3
Parameter Block Filesystem (pb:) installed, fsid: 4
Loading "flash:/c3560-advipservicesk9-mz.122-37.SE1.bin"...
########################################################################## [OK]
Restricted Rights Legend
Use, duplication, or disclosure by the Government is
subject to restrictions as set forth in subparagraph
(c) of the Commercial Computer Software - Restricted
Rights clause at FAR sec. 52.227-19 and subparagraph
(c) (1) (ii) of the Rights in Technical Data and Computer
Software clause at DFARS sec. 252.227-7013.
cisco Systems, Inc.
170 West Tasman Drive
San Jose, California 95134-1706
Cisco IOS Software, C3560 Software (C3560-ADVIPSERVICESK9-M), Version 12.2(37)SE1, RELEASE SOFTWARE (fc1)
Copyright (c) 1986-2007 by Cisco Systems, Inc.
Compiled Thu 05-Jul-07 22:22 by pt_team
Image text-base: 0x00003000, data-base: 0x01500000
POST: CPU MIC register Tests : Begin
POST: CPU MIC register Tests : End, Status Passed
POST: PortASIC Memory Tests : Begin
POST: PortASIC Memory Tests : End, Status Passed
POST: CPU MIC interface Loopback Tests : Begin
POST: CPU MIC interface Loopback Tests : End, Status Passed
POST: PortASIC RingLoopback Tests : Begin
POST: PortASIC RingLoopback Tests : End, Status Passed
POST: Inline Power Controller Tests : Begin
POST: Inline Power Controller Tests : End, Status Passed
POST: PortASIC CAM Subsystem Tests : Begin
POST: PortASIC CAM Subsystem Tests : End, Status Passed
POST: PortASIC Port Loopback Tests : Begin
POST: PortASIC Port Loopback Tests : End, Status Passed
Waiting for Port download...Complete
--More--
This product contains cryptographic features and is subject to United
States and local country laws governing import, export, transfer and
use. Delivery of Cisco cryptographic products does not imply
third-party authority 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 with applicable 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 require further assistance please contact us by sending email to
cisco WS-C3560-24PS (PowerPC405) processor (revision P0) with 122880K/8184K bytes of memory.
Processor board ID CAT1037RJF7
24 FastEthernet/IEEE 802.3 interface(s)
2 Gigabit Ethernet/IEEE 802.3 interface(s)
63488K bytes of flash-simulated non-volatile configuration memory.
Base ethernet MAC Address : 0002.4AEE.848A
Motherboard assembly number : 73-9673-09
Power supply part number : 341-0029-05
Motherboard serial number : CAT103758VY
Power supply serial number : DTH1036C7UB
Model revision number : P0
Motherboard revision number : A0
Model number : WS-C3560-24PS-E
System serial number : CAT1037RJF7
Top Assembly Part Number : 800-26380-04
Top Assembly Revision Number : B0
Version ID : V06
CLEI Code Number : COM1100ARC
Hardware Board Revision Number : 0x01
Switch Ports Model SW Version SW Image
* 1 26 WS-C3560-24PS 12.2(37)SE1 C3560-ADVIPSERVICESK
Cisco IOS Software, C3560 Software (C3560-ADVIPSERVICESK9-M), Version 12.2(37)SE1, RELEASE SOFTWARE (fc1)
Copyright (c) 1986-2007 by Cisco Systems, Inc.
Compiled Thu 05-Jul-07 22:22 by pt_team
Press RETURN to get started!
%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up
%LINK-5-CHANGED: Interface FastEthernet0/2, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to up
Switch>en
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#int f0/1
Switch(config-if)#ip address 192.168.1.1 255.255.255.0
^
% Invalid input detected at '^' marker.
Switch(config-if)#exit
Switch(config)#int f0/1
Switch(config-if)#no switchport
Switch(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up
Switch(config-if)#ip address 192.168.1.100 255.255.255.0
Switch(config-if)#exit
Switch(config)#int f0/2
Switch(config-if)#no switchport
Switch(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to up
Switch(config-if)#ip address 192.168.2.100 255.255.255.0
Switch(config-if)#end
Switch#
%SYS-5-CONFIG_I: Configured from console by console
Switch#
解析
这是一台 Cisco Catalyst 3560 交换机的启动和配置日志,以下是详细解释:
1. 交换机启动过程
-
启动信息:
C3560 Boot Loader (C3560-HBOOT-M) Version 12.2(25r)SEC, RELEASE SOFTWARE (fc4)
表示交换机运行的是 Cisco Catalyst 3560 的 Boot Loader,版本为 12.2(25r)SEC。
-
硬件信息:
cisco WS-C3560-24PS (PowerPC405) processor
型号为 WS-C3560-24PS 的交换机,包含 24 个 FastEthernet 接口和 2 个 Gigabit Ethernet 接口。
-
内存和 Flash 文件系统:
flashfs[0]: Total bytes: 64016384 flashfs[0]: Bytes used: 8918011
Flash 内存总容量约为 64MB,已使用约 8.9MB。
-
加载 IOS 软件:
Loading "flash:/c3560-advipservicesk9-mz.122-37.SE1.bin"...
交换机从 Flash 中加载了
c3560-advipservicesk9-mz.122-37.SE1.bin
,这是运行的 Cisco IOS 文件。 -
POST 测试:
POST: PortASIC Memory Tests : End, Status Passed
交换机完成了一系列硬件自检(POST),包括 CPU 测试、接口环回测试和电源管理测试,均显示通过。
2. 软件信息
-
运行的 Cisco IOS:
Cisco IOS Software, C3560 Software (C3560-ADVIPSERVICESK9-M), Version 12.2(37)SE1
交换机运行的是 C3560-ADVIPSERVICESK9-M(带高级服务功能的版本),版本为 12.2(37)SE1。
-
设备序列号和硬件信息:
Processor board ID CAT1037RJF7 Model number : WS-C3560-24PS-E
- 主板序列号为
CAT1037RJF7
。 - 型号为 WS-C3560-24PS-E,支持 PoE 功能。
- 主板序列号为
3. 配置日志
配置接口 IP 地址
以下日志展示了如何配置接口 IP 地址。
遇到的错误
Switch(config-if)#ip address 192.168.1.1 255.255.255.0
^
% Invalid input detected at '^' marker.
这个错误的原因是接口默认处于二层(Layer 2)模式,而 ip address
命令只能在三层(Layer 3)模式下使用。
解决方法
通过命令 no switchport
将接口切换为三层模式:
Switch(config)#int f0/1
Switch(config-if)#no switchport
成功配置 IP
-
配置 FastEthernet0/1:
Switch(config-if)#ip address 192.168.1.100 255.255.255.0
将接口 FastEthernet0/1 配置为三层接口,IP 地址为
192.168.1.100
,子网掩码为255.255.255.0
。 -
配置 FastEthernet0/2:
Switch(config)#int f0/2 Switch(config-if)#no switchport Switch(config-if)#ip address 192.168.2.100 255.255.255.0
将接口 FastEthernet0/2 配置为三层接口,IP 地址为
192.168.2.100
,子网掩码为255.255.255.0
。
保存配置
%SYS-5-CONFIG_I: Configured from console by console
这条日志表示配置已被保存到交换机的运行配置中。
4. 其他日志解释
-
链路状态变化:
%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up
表示接口 FastEthernet0/1 和 FastEthernet0/2 的链路状态发生了变化,从
down
变为up
。 -
协议状态变化:
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up
表示接口的协议状态也从
down
变为up
。
总结
-
设备启动正常:
- 硬件和软件均通过自检。
- 加载了
c3560-advipservicesk9-mz.122-37.SE1.bin
。
-
配置三层接口:
- 默认接口为二层模式,需要使用
no switchport
切换到三层模式。 - 成功为 FastEthernet0/1 和 FastEthernet0/2 配置了 IP 地址。
- 默认接口为二层模式,需要使用
-
链路状态正常:
- 两个接口链路均已启用,状态为
up
。
- 两个接口链路均已启用,状态为
通过以上步骤,这台交换机可以作为路由器处理三层流量。若有其他需求或配置问题,可以进一步探讨!