设为首页 收藏本站
查看: 546|回复: 0

[经验分享] 重新配置Cisco交换机

[复制链接]

尚未签到

发表于 2018-7-14 07:42:42 | 显示全部楼层 |阅读模式
  将一台终端或装有超级终端软件的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>
  00:05:06: %SYS-5-RELOAD:>
  C2950 Boot Loader (C2950-HBOOT-M) Version 12.1(11r)EA1,>  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,>  (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>  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,>  (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

  >  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>

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-536933-1-1.html 上篇帖子: cisco 2509终端服务器的配置 下篇帖子: Cisco 4507R-E引擎更换
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表