switch硬件限制(Switch基本配置)

实验目的:

l配置交换机的基本命令

实验说明:

Cisco的交换机配置命令和Router的配置命令基本一致, 故这里不做详细介绍

实验拓扑图:

switch硬件限制(Switch基本配置)(1)

实验步骤:

1. 了解基本配置

Sw1#configure terminal

Sw1(config)# interface fastethernet0/10

Sw1(config-if)#speed 10

Sw1(config-if)#duplex half

Sw1(config-if)#description test

Sw1(config-if)#end

Sw1#sh int f0/10 status

Port Name Status Vlan Duplex Speed Type

Fa0/10 test notconnect 1 half 10 10/100BaseTX

C:\Documents and Settings\Joseph>ping 192.168.30.24

Pinging 192.168.30.24 with 32 bytes of data:

Request timed out.

Request timed out.

Request timed out.

Request timed out.

Ping statistics for 192.168.30.24:

Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),

4) 将PC1 连结到Sw1的Fa0/3端口,PC1 再ping PC2:

C:\Documents and Settings\Joseph>ping 192.168.30.24

Pinging 192.168.30.24 with 32 bytes of data:

Request timed out.

Reply from 192.168.30.24: bytes=32 time=1ms TTL=64

Reply from 192.168.30.24: bytes=32 time=1ms TTL=64

Reply from 192.168.30.24: bytes=32 time=1ms TTL=64

Ping statistics for 192.168.30.24:

Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),

Approximate round trip times in milli-seconds:

Minimum = 1ms, Maximum = 1ms, Average = 1ms

C:\Documents and Settings\Joseph>telnet 192.168.30.254

Trying 192.168.30.254 ... Open

User Access Verification

Password:

Sw1>en

Password:

Sw1#

Sw1#copy run start

Destination filename [startup-config]?

Building configuration...

Sw1#

Sw1#sh flash:

Directory of flash:/

2 -rwx 2664051 Mar 01 1993 00:03:19 c2960-i6q4l2-mz.122-11.EA1.bin

3 -rwx 556 Mar 01 1993 03:56:53 vlan.dat

4 -rwx 269 Jan 01 1970 00:01:16 env_vars

5 -rwx 974 Mar 01 1993 03:59:06 config.text

6 -rwx 5 Mar 01 1993 03:59:06 private-config.text

7 drwx 704 Mar 01 1993 00:03:55 html

19 -rwx 109 Mar 01 1993 00:03:56 info

20 -rwx 109 Mar 01 1993 00:03:56 info.ver

Sw1#delete flash:/vlan.dat

Delete filename [vlan.dat]?

Delete flash:/vlan.dat? [confirm]↙

Sw1#delete flash:/config.text

Delete filename [config.text]?

Delete flash:/config.text? [confirm]↙

Sw1#sh flash:

Directory of flash:/

2 -rwx 2664051 Mar 01 1993 00:03:19 c2960-i6q4l2-mz.121-11.EA1.bin

4 -rwx 269 Jan 01 1970 00:01:16 env_vars

6 -rwx 5 Mar 01 1993 03:59:06 private-config.text

7 drwx 704 Mar 01 1993 00:03:55 html

19 -rwx 109 Mar 01 1993 00:03:56 info

20 -rwx 109 Mar 01 1993 00:03:56 info.ver

7741440 bytes total (3781120 bytes free)

Sw1#reload

Proceed with reload? [confirm]↙

04:06:33: %SYS-5-RELOAD: Reload requested

C2960 Boot Loader (C2960-HBOOT-M) Version 12.2(11r)EA1, RELEASE SOFTWARE (fc1)

Compiled Mon 22-Jul-02 17:18 by antonino

WS-C2960-24 starting...

Base ethernet MAC Address: 00:0d:29:60:8b:c0

Xmodem file system is available.

Initializing Flash...

flashfs[0]: 16 files, 2 directories

flashfs[0]: 0 orphaned files, 0 orphaned directories

flashfs[0]: Total bytes: 7741440

flashfs[0]: Bytes used: 3960320

flashfs[0]: Bytes available: 3781120

flashfs[0]: flashfs fsck took 6 seconds.

...done initializing flash.

Boot Sector Filesystem (bs:) installed, fsid: 3

Parameter Block Filesystem (pb:) installed, fsid: 4

Loading "flash:/c2960-i6q4l2-mz.122-11.EA1.bin"...#########################################################################################################################################################################################################################################################################################

File "flash:/c2960-i6q4l2-mz.121-11.EA1.bin" uncompressed and installed, entry point: 0x80010000

executing...

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 Internetwork Operating System Software

IOS (tm) C2960 Software (C2960-I6Q4L2-M), Version 12.2(11)EA1, RELEASE SOFTWARE (fc1)

Copyright (c) 1986-2007 by cisco Systems, Inc.

Compiled Wed 28-Aug-02 10:25 by antonino

Image text-base: 0x80010000, data-base: 0x80528000

Initializing flashfs...

flashfs[1]: 16 files, 2 directories

flashfs[1]: 0 orphaned files, 0 orphaned directories

flashfs[1]: Total bytes: 7741440

flashfs[1]: Bytes used: 3960320

flashfs[1]: Bytes available: 3781120

flashfs[1]: flashfs fsck took 7 seconds.

flashfs[1]: Initialization complete.

Done initializing flashfs.

POST: System Board Test : Passed

POST: Ethernet Controller Test : Passed

ASIC Initialization Passed

POST: FRONT-END LOOPBACK TEST : Passed

cisco WS-C2960-24 (RC32300) processor (revision J0) with 20402K bytes of memory.

Processor board ID FOC0725Y05M

Last reset from system-reset

Running Standard Image

12 FastEthernet/IEEE 802.3 interface(s)

32K bytes of flash-simulated non-volatile configuration memory.

Base ethernet MAC Address: 00:0D:29:60:8B:C0

Motherboard assembly number: 73-5782-11

Power supply part number: 34-0965-01

Motherboard serial number: FOC07250XZ2

Power supply serial number: DAB07226HJ0

Model revision number: J0

Motherboard revision number: A0

Model number: WS-C2960-24

System serial number: FOC0725Y05M

--- System Configuration Dialog ---

Would you like to enter the initial configuration dialog? [yes/no]: no↙

Press RETURN to get started!

Switch>

3. 实验完成

,

免责声明:本文仅代表文章作者的个人观点,与本站无关。其原创性、真实性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容文字的真实性、完整性和原创性本站不作任何保证或承诺,请读者仅作参考,并自行核实相关内容。文章投诉邮箱:anhduc.ph@yahoo.com

    分享
    投诉
    首页