注:默认时交换机的以太网接口是开启的。对于交换机的以太网口可以配置其双工模式、速 用CONSOLE线连接好PC和交换机后,打开PC的开始--所有程序--附件--通讯--超级终端-- C2950 Boot Loader (C2950-HBOOT-M) Version 12.1(11r)EA1, RELEASE SOFTWARE (fc1)
Compiled Mon 22-Jul-02 18:57 by miwang
Cisco WS-C2950T-24 (RC32300) processor (revision C0) with 21039K bytes of memory.
Base ethernet MAC Address: 0090.0C1D.7B74
Xmodem file system is available.
flashfs[0]: 1 files, 0 directories
flashfs[0]: 0 orphaned files, 0 orphaned directories
flashfs[0]: Total bytes: 64016384
flashfs[0]: Bytes used: 3058048
flashfs[0]: Bytes available: 60958336
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:/c2950-i6q4l2-mz.121-22.EA4.bin"...
########################################################################## [OK]
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.
San Jose, California 95134-1706
Cisco Internetwork Operating System Software
IOS (tm) C2950 Software (C2950-I6Q4L2-M), Version 12.1(22)EA4, RELEASE SOFTWARE(fc1)
Copyright (c) 1986-2005 by cisco Systems, Inc.
Compiled Wed 18-May-05 22:31 by jharirba
Cisco WS-C2950T-24 (RC32300) processor (revision C0) with 21039K bytes of memory.
Processor board ID FHK0610Z0WC
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: 0090.0C1D.7B74
Motherboard assembly number: 73-5781-09
Power supply part number: 34-0965-01
Motherboard serial number: FOC061004SZ
Power supply serial number: DAB0609127D
Model revision number: C0
Motherboard revision number: A0
Model number: WS-C2950T-24
System serial number: FHK0610Z0WC
Cisco Internetwork Operating System Software
IOS (tm) C2950 Software (C2950-I6Q4L2-M), Version 12.1(22)EA4, RELEASE SOFTWARE(fc1)
Copyright (c) 1986-2005 by cisco Systems, Inc.
Compiled Wed 18-May-05 22:31 by jharirba
Press RETURN to get started!
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#hostname sw2950
sw2950(config)#enable secret cisco 配置进入特权模式的密码 sw2950(config)#line vty 0 15
sw2950(config-line)#password cisco 设置 VTY 密码 sw2950(config-line)#login
sw2950(config-line)#no ip domain-lookup
sw2950(config)#line console 0
sw2950(config-line)#loggin synchronous
同步 sw2950(config-line)#exec-timeout 00
设置超时 sw2950(config)#do sh ip int
sw2950(config)#do sh ip int
sw2950(config)#do sh ip inter
sw2950(config)#do sh ip interface brief
查看所有接口的情况 Interface IP-Address OK? Method Status Protocol
FastEthernet0/1 unassigned YES manual down down
FastEthernet0/2 unassigned YES manual down down
FastEthernet0/3 unassigned YES manual down down
FastEthernet0/4 unassigned YES manual down down
FastEthernet0/5 unassigned YES manual down down
FastEthernet0/6 unassigned YES manual down down
FastEthernet0/7 unassigned YES manual down down
FastEthernet0/8 unassigned YES manual down down
FastEthernet0/9 unassigned YES manual down down
FastEthernet0/10 unassigned YES manual down down
FastEthernet0/11 unassigned YES manual down down
FastEthernet0/12 unassigned YES manual down down
FastEthernet0/13 unassigned YES manual down down
FastEthernet0/14 unassigned YES manual down down
FastEthernet0/15 unassigned YES manual down down
FastEthernet0/16 unassigned YES manual down down
FastEthernet0/17 unassigned YES manual down down
FastEthernet0/18 unassigned YES manual down down
FastEthernet0/19 unassigned YES manual down down
FastEthernet0/20 unassigned YES manual down down
FastEthernet0/21 unassigned YES manual down down
FastEthernet0/22 unassigned YES manual down down
FastEthernet0/23 unassigned YES manual down down
FastEthernet0/24 unassigned YES manual down down
GigabitEthernet1/1 unassigned YES manual down down
GigabitEthernet1/2 unassigned YES manual down down
Vlan1 unassigned YES manual administratively down down
sw2950(config-if)#duplex full //duplex 用来配置接口的双工模式,full——全双工 sw2950(config-if)#speed 100 设置速度为 100M sw2950(config)#int vlan 1
sw2950(config-if)#ip address 172.16.1.1 255.255.255.0
交换机也允许被telnet,这时需要在交换机上配置一个IP 地址,这个地址是在VLAN 接 %LINK-5-CHANGED: Interface Vlan1, changed state to upsw2950sw2950(config-if)#exit
sw2950(config)#ip default-gateway 172.16.1.254
// 以上在VLAN 1 接口上配置了管理地址,接在VLAN 1 上的计算机可以直接进行telnet 该 地址。为了其他网段的计算机也可以telnet 交换机,我们在交换机上配置了缺省网关。 sw2950(config)#do copy running startup
保存配置 本文转自gauyanm 51CTO博客,原文链接:http://blog.51cto.com/gauyanm/241946,如需转载请自行联系原作者