交换机之配置系统基本信息(Basic Information of the Configuration System for Switches)

交换机之配置系统基本信息

本文章中的信息都是基于一些特定实验环境写的。文章中使用的所有设备最初均采用缺省配置启动。如果不按初始配置,有可能会导致本文中的部分或全部步骤失败。如果您使用的是真实网络设备,请确保您已经了解所有使用过的命令影响。

本文章是以S5700系列交换机(华为ENSP模拟器)作为例子介绍配置系统基本信息的操作。不同款型不同版本的交换机有可能有不同的操作,具体请大家参考特定的产品相关文档。

1.修改设备名称:

<Huawei>system-view

Enter system view, return user view with Ctrl+Z.

Huaweisysname liuhui //修改当前设备名称

liuhuiundo sysname //恢复设备名称到初始状态

Huawei

2.修改设备时间:

<Huawei>clock datetime 08:00:00 2024-10-15

3.修改设备时区:

<Huawei>clock timezone Beijing add 08:00:00

4.配置设备SSH:

<Huawei>system-view

Enter system view, return user view with Ctrl+Z.

Huaweiuser-interface vty 0 4

Huawei-ui-vty0-4authentication-mode aaa

Huawei-ui-vty0-4protocol inbound ssh

Huawei-ui-vty0-4aaa

Huawei-aaalocal-user ylwj password cipher admin@123456

Info: Add a new user.

Huawei-aaalocal-user ylwj service-type ssh terminal

Huawei-aaalocal-user ylwj privilege level 15

Huaweissh user ylwj

Huaweissh user ylwj authentication-type password

Huaweissh user ylwj service-type stelnet

Huaweistelnet server enable

Info: Succeeded in starting the Stelnet server.

查询系统信息的命令

可以使用如下命令查询系统信息:

display current-configuration,查看当前设备系统配置。

display interface brief,查看接口简要信息。

display clock,查看系统当前日期和时钟。

display ip interface brief,查看接口上IP地址的简要信息。

display ip routing-table,查看路由表信息。

display user-interface,查看用户界面。

display local-user,查看本地用户列表清单。

display ssh user-information,在SSH Server 查看SSH用户信息。

display ssh server status,查看SSH Server的配置信息。

display ssh server session,查看与SSH客户端连接的会话信息。

相关推荐
这个DBA有点耶16 小时前
NULL不是空——数据库里最反直觉的设计,90%新人踩过的坑
数据库·mysql·代码规范
花千烬1 天前
crictl info 连不上 containerd 怎么办?endpoint、socket 与权限一次查清
云计算
orion571 天前
Missing Semester Class1:course overview and introduction of shell
linux
用户120487221612 天前
Linux驱动编译与加载
linux·嵌入式
这个DBA有点耶2 天前
SQL改写进阶:标量子查询的“隐形代价”与消除实战
数据库·mysql·架构
smallyoung2 天前
数据库乐观锁深度解析:MySQL、PostgreSQL 实战 + Spring Boot 集成指南
数据库·mysql·postgresql
用户805533698032 天前
Input 子系统架构:Core、Handler、Driver 三层是怎么协作的
linux·嵌入式
用户805533698032 天前
RK-Forge外设系列开篇 - 把板子从「能启动」变成「能用」:Ethernet/SPI/MMC 三个纯接线外设
linux·github·嵌入式
数据技术说2 天前
MySQL 迁移实战——如何实现真正的"零改造"平滑切换
mysql
七歌杜金房3 天前
我终于又有了自己的 Linux 电脑
linux·debian·mac