16 交换机下令行设置

瑞星  金牌会员 | 2024-8-15 07:19:32 | 显示全部楼层 | 阅读模式
打印 上一主题 下一主题

主题 881|帖子 881|积分 2643

交换机下令行设置

一、交换机下令行基本设置

(一)设置主机名

  1. Switch>enable
  2. Switch#configure terminal
  3. Switch(config)#hostname S1
复制代码
(二)检察设置信息

  1. Switch#show running-config
  2. Building configuration...
  3. Current configuration : 977 bytes
  4. !
  5. version 12.1
  6. no service timestamps log datetime msec
  7. no service timestamps debug datetime msec
  8. no service password-encryption
  9. !
  10. hostname Switch
  11. ……
复制代码
(三)存储设置

​ 保存设置信息:
  1. # 方法1
  2. Switch#copy running-config startup-config
  3. Destination filename [startup-config]?
  4. Building configuration...
  5. [OK]
  6. # 方法2
  7. Switch#write
  8. Building configuration...
  9. [OK]
复制代码
​ 恢复出厂默认:
  1. Switch#erase startup-config
  2. Erasing the nvram filesystem will remove all configuration files! Continue? [confirm]
  3. [OK]
  4. Erase of nvram: complete
  5. %SYS-7-NV_BLOCK_INIT: Initialized the geometry of nvram
  6. # 重启查看
  7. reload
复制代码
(四)交换机下令行设置技巧

  1. # ?查询
  2. Switch>en?
  3. enable
  4. # Tab补全
  5. Switch>enable
  6. # 命令简写
  7. Switch>en
复制代码
免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!更多信息从访问主页:qidao123.com:ToB企服之家,中国第一个企服评测及商务社交产业平台。
回复

使用道具 举报

0 个回复

倒序浏览

快速回复

您需要登录后才可以回帖 登录 or 立即注册

本版积分规则

瑞星

金牌会员
这个人很懒什么都没写!

标签云

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