重新配置Cisco交换机

简介:

将一台终端或装有超级终端软件的PC接到交换机的 console口上。终端参数设置如下:
速率:9600bps
检较位:无
数据位:8
停止位:1
流控:无

 

Switch>en
Password:
Switch#
Switch#write erase
Erasing the nvram filesystem will remove all configuration files! Continue? [con
firm]
[OK]
Erase of nvram: complete
Switch#
00:04:43: %SYS-7-NV_BLOCK_INIT: Initalized the geometry of nvram
Switch#reload
Proceed with reload? [confirm]

00:05:06: %SYS-5-RELOAD: Reload requested

C2950 Boot Loader (C2950-HBOOT-M) Version 12.1(11r)EA1, RELEASE SOFTWARE (fc1)
Compiled Mon 22-Jul-02 17:18 by antonino
WS-C2950T-24 starting...
Base ethernet MAC Address: 00:12:43:a4:14:00
Xmodem file system is available.
Initializing Flash...
flashfs[0]: 84 files, 3 directories
flashfs[0]: 0 orphaned files, 0 orphaned directories
flashfs[0]: Total bytes: 7741440
flashfs[0]: Bytes used: 6507520
flashfs[0]: Bytes available: 1233920
flashfs[0]: flashfs fsck took 8 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.EA1.bin"...##############################
################################################################################
#############################################################################

File "flash:/c2950-i6q4l2-mz.121-22.EA1.bin" uncompressed and installed, entry p
oint: 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) C2950 Software (C2950-I6Q4L2-M), Version 12.1(22)EA1, RELEASE SOFTWARE
(fc1)
Copyright (c) 1986-2004 by cisco Systems, Inc.
Compiled Mon 12-Jul-04 08:18 by madison
Image text-base: 0x80010000, data-base: 0x8055C000


Initializing flashfs...
flashfs[1]: 84 files, 3 directories
flashfs[1]: 0 orphaned files, 0 orphaned directories
flashfs[1]: Total bytes: 7741440
flashfs[1]: Bytes used: 6507520
flashfs[1]: Bytes available: 1233920
flashfs[1]: flashfs fsck took 8 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-C2950T-24 (RC32300) processor (revision Q0) with 20873K bytes of memory
.
Processor board ID FOC0744Z0WG
Last reset from system-reset
Running Enhanced Image
24 FastEthernet/IEEE 802.3 interface(s)
2 Gigabit Ethernet/IEEE 802.3 interface(s)

32K bytes of flash-simulated non-volatile configuration memory.
Base ethernet MAC Address: 00:12:43:A4:14:00
Motherboard assembly number: 73-6114-10
Power supply part number: 34-0965-01
Motherboard serial number: FOC08412CTA
Power supply serial number: DAB0838GVD2
Model revision number: Q0
Motherboard revision number: A0
Model number: WS-C2950T-24
System serial number: FOC0744Z0WG
00:00:16: %SPANTREE-5-EXTENDED_SYSID: Extended SysId enabled for type vlan
00:00:19: %SYS-5-RESTART: System restarted --
Cisco Internetwork Operating System Software
IOS (tm) C2950 Software (C2950-I6Q4L2-M), Version 12.1(22)EA1, RELEASE SOFTWARE
(fc1)
Copyright (c) 1986-2004 by cisco Systems, Inc.
Compiled Mon 12-Jul-04 08:18 by madison
00:00:19: %SNMP-5-COLDSTART: SNMP agent on host Switch is undergoing a cold star
t
00:00:23: %LINK-3-UPDOWN: Interface FastEthernet0/2, changed state to up
00:00:23: %LINK-3-UPDOWN: Interface FastEthernet0/3, changed state to up
00:00:23: %LINK-3-UPDOWN: Interface FastEthernet0/4, changed state to up
00:00:23: %LINK-3-UPDOWN: Interface FastEthernet0/8, changed state to up
00:00:23: %LINK-3-UPDOWN: Interface FastEthernet0/15, changed state to up
00:00:23: %LINK-3-UPDOWN: Interface FastEthernet0/16, changed state to up
00:00:23: %LINK-3-UPDOWN: Interface FastEthernet0/20, changed state to up
00:00:23: %LINK-3-UPDOWN: Interface FastEthernet0/24, changed state to up
00:00:24: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, chang
ed state to up
00:00:24: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, chang
ed state to up
00:00:24: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/4, chang
ed state to up
00:00:24: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/8, chang
ed state to up
00:00:24: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/15, chan
ged state to up
00:00:24: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/16, chan
ged state to up
00:00:24: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/20, chan
ged state to up
00:00:24: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/24, chan
ged state to up
00:00:55: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state t
o up
00:00:58: AUTOINSTALL: Vlan1 is assigned 172.16.1.45
00:00:58: AUTOINSTALL: Obtain siaddr 172.16.0.1 (as config server)


         --- System Configuration Dialog ---

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


At any point you may enter a question mark '?' for help.
Use ctrl-c to abort configuration dialog at any prompt.
Default settings are in square brackets '[]'.


Basic management setup configures only enough connectivity
for management of the system, extended setup will ask you
to configure each interface on the system

Would you like to enter basic management setup? [yes/no]: y
Configuring global parameters:

  Enter host name [Switch]: sw_internet

  The enable secret is a password used to protect access to
  privileged EXEC and configuration modes. This password, after
  entered, becomes encrypted in the configuration.
  Enter enable secret: enablepasswd

  The enable password is used when you do not specify an
  enable secret password, with some older software versions, and
  some boot images.
  Enter enable password: cisco

  The virtual terminal password is used to protect
  access to the router over a network interface.
  Enter virtual terminal password: cisco
  Configure SNMP Network Management? [no]:

Current interface summary

Interface                  IP-Address      OK? Method Status                Prot
ocol
Vlan1                      172.16.1.45     YES other  up                    up

FastEthernet0/1            unassigned      YES unset  down                  down

FastEthernet0/2            unassigned      YES unset  up                    up

FastEthernet0/3            unassigned      YES unset  up                    up

FastEthernet0/4            unassigned      YES unset  up                    up

FastEthernet0/5            unassigned      YES unset  down                  down

FastEthernet0/6            unassigned      YES unset  down                  down

FastEthernet0/7            unassigned      YES unset  down                  down

FastEthernet0/8            unassigned      YES unset  up                    up

FastEthernet0/9            unassigned      YES unset  down                  down

FastEthernet0/10           unassigned      YES unset  down                  down

FastEthernet0/11           unassigned      YES unset  down                  down

FastEthernet0/12           unassigned      YES unset  down                  down

FastEthernet0/13           unassigned      YES unset  down                  down

FastEthernet0/14           unassigned      YES unset  down                  down

FastEthernet0/15           unassigned      YES unset  up                    up

FastEthernet0/16           unassigned      YES unset  up                    up

FastEthernet0/17           unassigned      YES unset  down                  down

FastEthernet0/18           unassigned      YES unset  down                  down

FastEthernet0/19           unassigned      YES unset  down                  down

FastEthernet0/20           unassigned      YES unset  up                    up

FastEthernet0/21           unassigned      YES unset  down                  down

FastEthernet0/22           unassigned      YES unset  down                  down

FastEthernet0/23           unassigned      YES unset  down                  down

FastEthernet0/24           unassigned      YES unset  up                    up

GigabitEthernet0/1         unassigned      YES unset  down                  down

GigabitEthernet0/2         unassigned      YES unset  down                  down


Enter interface name used to connect to the
management network from the above interface summary: vlan1

Configuring interface Vlan1:
  Configure IP on this interface? [yes]:
    IP address for this interface [172.16.1.45]: 172.16.0.3
    Subnet mask for this interface [255.255.0.0] : 255.255.252.0
    Class B network is 172.16.0.0, 22 subnet bits; mask is /22
Would you like to enable as a cluster command switch? [yes/no]: n

The following configuration command script was created:

hostname sw_internet
enable secret 5 $1$Z5Ol$bCjpU9zVIY0H.LJzFeYe8/
enable password cisco
line vty 0 15
password cisco
no snmp-server
!
!
interface Vlan1
no shutdown
ip address 172.16.0.3 255.255.252.0
!
interface FastEthernet0/1
!
interface FastEthernet0/2
!
interface FastEthernet0/3
!
interface FastEthernet0/4
!
 --More--
!
interface FastEthernet0/6
!
interface FastEthernet0/7
!
interface FastEthernet0/8
!
interface FastEthernet0/9
!
interface FastEthernet0/10
!
interface FastEthernet0/11
!
interface FastEthernet0/12
!
interface FastEthernet0/13
!
interface FastEthernet0/14
!
interface FastEthernet0/15
!
interface FastEthernet0/16
!
interface FastEthernet0/17
!
interface FastEthernet0/18
!
interface FastEthernet0/19
!
interface FastEthernet0/20
!
interface FastEthernet0/21
!
interface FastEthernet0/22
!
interface FastEthernet0/23
!
interface FastEthernet0/24
!
interface GigabitEthernet0/1
!
interface GigabitEthernet0/2
!
end


[0] Go to the IOS command prompt without saving this config.
[1] Return back to the setup without saving this config.
[2] Save this configuration to nvram and exit.

Enter your selection [2]:
Building configuration...
[OK]
Use the enabled mode 'configure' command to modify this configuration.




Press RETURN to get started!


sw_internet>










本文转自 h2appy  51CTO博客,原文链接:http://blog.51cto.com/h2appy/287487,如需转载请自行联系原作者
目录
相关文章
|
1月前
|
网络协议 安全 网络虚拟化
思科交换机配置命令归纳
【11月更文挑战第8天】本文总结了思科交换机的常见配置命令,包括模式转换、基本配置、查看命令、VLAN 配置、Trunk 配置、以太网通道配置、VTP 配置、三层交换机配置、生成树配置以及其他常用命令,适用于网络管理和维护。
107 2
|
2月前
|
安全 网络安全 网络虚拟化
Cisco-交换机划分Vlan
Cisco-交换机划分Vlan
|
2月前
|
安全 网络安全 网络虚拟化
Cisco-三层交换机实现VLAN间路由
Cisco-三层交换机实现VLAN间路由
|
2月前
|
安全 网络安全 数据安全/隐私保护
Cisco-交换机配置聚合端口
Cisco-交换机配置聚合端口
|
5月前
|
网络安全 数据安全/隐私保护 网络虚拟化
|
4月前
|
数据中心
配置案例 | CE交换机如何配置堆叠?
配置案例 | CE交换机如何配置堆叠?
|
4月前
盒式交换机又是如何配置堆叠的呢?
盒式交换机又是如何配置堆叠的呢?
|
4月前
|
前端开发 数据中心
数据中心框式交换机如何配置堆叠?
数据中心框式交换机如何配置堆叠?
|
4月前
|
Shell 网络安全 Python
网络工程师如何在ensp模拟器上玩python自动化配置交换机。
网络工程师如何在ensp模拟器上玩python自动化配置交换机。
241 0
|
4月前
|
网络虚拟化 数据安全/隐私保护
手把手教网络工程师2种方法如何恢复交换机配置
手把手教网络工程师2种方法如何恢复交换机配置