当前位置: 首页 > news >正文

15 交换机命令行配置

交换机命令行配置

一、交换机命令行基本配置

(一)配置主机名

Switch>enable
Switch#configure terminal
Switch(config)#hostname S1

(二)查看配置信息

Switch#show running-config
Building configuration...Current configuration : 977 bytes
!
version 12.1
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Switch
……

(三)存储配置

​ 保存配置信息:

# 方法1
Switch#copy running-config startup-config
Destination filename [startup-config]? 
Building configuration...
[OK]# 方法2
Switch#write
Building configuration...
[OK]

​ 恢复出厂默认:

Switch#erase startup-config
Erasing the nvram filesystem will remove all configuration files! Continue? [confirm]
[OK]
Erase of nvram: complete
%SYS-7-NV_BLOCK_INIT: Initialized the geometry of nvram# 重启查看
reload

(四)交换机命令行配置技巧

# ?查询
Switch>en?
enable# Tab补全
Switch>enable# 命令简写
Switch>en
http://www.lryc.cn/news/420249.html

相关文章:

  • 工作流之Flowable与SpringBoot结合
  • python实战:数据分析基础知识
  • Grafana深入讲解
  • 002 git
  • MySQL --- 用户管理
  • Linux 错误码
  • 《向量数据库指南》——开源社区与商业化的平衡
  • 记录一次echarts图表大数据量轮询刷新页面卡死问题的优化
  • 补录:day023-回溯法
  • 【物联网】(防水篇)电子产品如何做到IPX7级别的防水?
  • JDK版本切换 - Windows
  • STM32-IIC协议详解
  • Spring事件处理
  • 软设之安全防范体系
  • 【Python】PyWebIO 初体验:用 Python 写网页
  • OrangePi AIpro学习3 —— vscode开发昇腾DVPP程序
  • redis的数据结构与对象
  • ARM 汇编语言基础
  • c语言小知识点小计
  • 《C#面向语言版本编程》C# 13 中的新增功能
  • 0成本通过Hugo和GitHub Pages搭建博客
  • Ollama 可以玩 GLM4和CodeGeeX4了
  • 浅析C++指针与引用的关系
  • Python面试宝典第31题:字符串反转
  • 【深入理解SpringCloud微服务】深入理解微服务中的远程调用,并手写一个微服务RPC框架
  • 数据结构----二叉树
  • 通过python管理mysql
  • Run the OnlyOffice Java Spring demo project in local
  • 11. Rancher2.X部署多案例镜像
  • 探索Linux世界之Linux环境开发工具的使用