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

[经验分享] Cisco交换机密码初始化

[复制链接]

尚未签到

发表于 2018-7-20 08:30:45 | 显示全部楼层 |阅读模式
  1.  连接交换机的console口到终端或PC仿真终端。用无Modem的直连线连接PC的串行口到交换机的console口。
  2.  拔掉交换机的电源.
  3.  按住交换机上的Mode按钮,与此同时,重新插上交换机的电源线.当交换机上SYST的LED长期亮的时候,可以松开Mode按钮。
  4.  再通过超级终端连接交换机。
  5.  交换机有如下显示:
  switch:
  :switch: flash_init
  初始化flash文件系统
  Initializing Flash...
  flashfs[0]: 83 files, 4 directories
  flashfs[0]: 0 orphaned files, 0 orphaned directories
  flashfs[0]: Total bytes: 15998976
  flashfs[0]: Bytes used: 6472704
  flashfs[0]: Bytes available: 9526272
  flashfs[0]: flashfs fsck took 8 seconds.
  ...done Initializing Flash.
  Boot Sector Filesystem (bs) installed, fsid: 3
  Setting console baud rate to 9600...
  switch: rename flash:config.text flash:config.old
  更名含有password的配置文件
  switch: boot
  启动交换机
  Loading "flash:c3750-i9-mz.121-19.EA1d/c3750-i9-mz.121-19.EA1d.bin"...@@@@@@@@@@
  。。。。。。。。
  --- System Configuration Dialog ---
  Would you like to enter the initial configuration dialog? [yes/no]: yes
  您是否进入初始化配置对话,选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 '[]'.
  。。。。。
  Would you like to enter basic management setup? [yes/no]: yes
  您是否进入基本配置安装,选Y
  Configuring global parameters:
  Enter host name [Switch]: zcomf10
  输入设备的名字
  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: zcom:com
  输入密文
  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: 12345678
  输入密码(不能和密文相同)
  The virtual terminal password is used to protect
  access to the router over a network interface.
  Enter virtual terminal password: 87654321
  输入虚拟终端的密码(以备远程登录)
  Configure SNMP Network Management? [no]:
  询问是否要设置路由器支持的各种网络协议:
  Current interface summary
  。。。。。。。
  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]: Y   (对Vlan1进IP配置)
  IP address for this interface: 192.168.10.1  (键入IP地址)
  Subnet mask for this interface [255.255.255.0] :255.255.255.0  (键入子网掩码,或按回车键使用默认值)
  Class C network is 192.168.10.0, 24 subnet bits; mask is /24
  Would you like to enable as a cluster command switch? [yes/no]: no  (n集群模式?)
  The following configuration command script was created:
  已建立以下配置信息
  hostname zcomf10
  enable secret 5 $1$6kZ/$LCWVkp11b1IMVWm8PSVuo0
  enable password 12345678
  line vty 0 15
  password 87654321
  no snmp-server
  !
  no ip routing
  !
  interface Vlan1
  no shutdown
  ip address 192.168.10.1 255.255.255.0
  !
  interface GigabitEthernet1/0/1
  !
  interface GigabitEthernet1/0/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.
  这里有一个有趣的地方,那就是你能够选择进入命令行接口模式并放弃刚才的配置(0),你也能够回头重新再设置一遍(1),也能够保存配置到NVRAM中并退出重启(2)。这里我选择的是0,我们将不保存刚才的配置并进入命令行接口模式(CLI)。接下来我们将介绍CLI。再重复一次,你可以在任何时候按下 Ctrl+C来退出安装模式。
  Enter your selection [2]: 2
  Building configuration...
  [OK]
  Use the enabled mode 'configure' command to modify this configuration.
  zcomf10>en
  进入特权模式“en”或“enable”一样
  Password:
  zcomf10#copy run
  zcomf10#copy running-config star
  zcomf10#copy running-config startup-config  (退出,并保存到startup-config文件里:)
  Destination filename [startup-config]?
  Building configuration...
  [OK]
  zcomf10#reload     (完成重启)

  Proceed with>

运维网声明 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-538954-1-1.html 上篇帖子: Cisco-Router-7206-Easy***(非模板配置)之配置终结篇 下篇帖子: CISCO_CVoice – 002 : 模拟与数字中继
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

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

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

扫描微信二维码查看详情

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


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


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


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



合作伙伴: 青云cloud

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