ykwll 发表于 2018-7-12 06:21:36

思科Cisco交换机、路由器设置命令(附详解)

设置口令:  router>enable                                        ;进入特权模式
  router#config terminal                               ;进入全局配置模式
  router(config)#hostname <hostname>                   ;设置交换机的主机名
  router(config)#enable secret xxx                     ;设置特权加密口令为 xxx
  router(config)#enable password xxx                   ;设置特权非密口令为 xxx
  router(config)#line console 0                        ;进控制台口(Rs232)初始化
  router(config-line)#line vty 0 4                     ;进入虚拟终端virtual tty
  router(config-line)#login                            ;允许登录
  router(config-line)#password xx                      ;设置登录口令xx
  router(config)# (Ctrl+z)                           ; 返回特权模式
  router#exit                                          ;返回命令
页: [1]
查看完整版本: 思科Cisco交换机、路由器设置命令(附详解)