首页 > 其他分享 >华为基础命令

华为基础命令

时间:2023-03-05 17:01:58浏览次数:32  
标签:console0 Ethernet0 基础 authentication 命令 华为 ui sw1 password

命令1:重命名

<Huawei>system-view  //进入系统视图

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

[Huawei]sysname sw1 //设备重新命名

[sw1]

命令2:显示设备配置信息

[sw1]display current-configuration //显示设备配置信息

sysname sw1

cluster enable ntdp enable ndp enable

drop illegal-mac alarm

diffserv domain default

drop-profile default

aaa authentication-scheme default authorization-scheme default accounting-scheme default domain default domain default_admin local-user admin password simple admin local-user admin service-type http

interface Vlanif1

interface MEth0/0/1

interface Ethernet0/0/1

interface Ethernet0/0/2

interface Ethernet0/0/3

interface Ethernet0/0/4

interface Ethernet0/0/5

interface Ethernet0/0/6

interface Ethernet0/0/7

interface Ethernet0/0/8

interface Ethernet0/0/9

interface Ethernet0/0/10

interface Ethernet0/0/11

interface Ethernet0/0/12

interface Ethernet0/0/13

interface Ethernet0/0/14

interface Ethernet0/0/15

interface Ethernet0/0/16

interface Ethernet0/0/17

interface Ethernet0/0/18

interface Ethernet0/0/19

interface Ethernet0/0/20

interface Ethernet0/0/21

interface Ethernet0/0/22

interface GigabitEthernet0/0/1

interface GigabitEthernet0/0/2

interface NULL0

user-interface con 0 user-interface vty 0 4

return

命令3:console明文密钥

[sw1]user-interface console 0 //进入console视图

[sw1-ui-console0]authentication  

[sw1-ui-console0]authentication-mode pass  

[sw1-ui-console0]authentication-mode password  //登录console口选用password方式

Mar  5 2023 16:26:15-08:00 sw1 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25

.191.3.1 configurations have been changed. The current change number is 6, the c

hange loop count is 0, and the maximum number of records is 4095.u  

[sw1-ui-console0]set authentication password simple huawei //设置明文password

[sw1-ui-console0]

命令4:console密文密钥

[sw1]user-interface conso  

[sw1]user-interface console 0

[sw1-ui-console0]au  

[sw1-ui-console0]authenti  

[sw1-ui-console0]authentication-mode pass  

[sw1-ui-console0]authentication-mode password  

[sw1-ui-console0]se  

[sw1-ui-console0]set aut  

[sw1-ui-console0]set authentication pass  

[sw1-ui-console0]set authentication password c  

[sw1-ui-console0]set authentication password cipher huawei

注意:当明文与密文同时配置时,后配置的生效,先配置的丢失

命令5:查看mac地址表

华为基础命令_显示设备

[sw1]display mac-address

MAC address table of slot 0:

-------------------------------------------------------------------------------

MAC Address    VLAN/       PEVLAN CEVLAN Port            Type      LSP/LSR-ID  

              VSI/SI                                              MAC-Tunnel  

-------------------------------------------------------------------------------

5489-9804-79dd 1           -      -      Eth0/0/1        dynamic   0/-          

5489-98e8-73e9 1           -      -      Eth0/0/2        dynamic   0/-          

-------------------------------------------------------------------------------

Total matching items on slot 0 displayed = 2  

命令6:查看历史命令

[sw1]display history-command  

 system-view

 user-interface console 0

 authentication-mode password

 set authentication password cipher ******

 q

 display current-configuration

 display mac-address

[sw1]


标签:console0,Ethernet0,基础,authentication,命令,华为,ui,sw1,password
From: https://blog.51cto.com/u_13560030/6101559

相关文章

  • Android常用命令集锦
    1.android:对你只要输入android就会出来,SDKandAVDmanager我们可以更新SDK,增删修改AVD.2.androidlistavds:这条命令将会列出所有我们创建的android模拟器.3.andr......
  • 三天吃透Java基础八股文
    本文已经收录到Github仓库,该仓库包含计算机基础、Java基础、多线程、JVM、数据库、Redis、Spring、Mybatis、SpringMVC、SpringBoot、分布式、微服务、设计模式、架构、校......
  • Python基础
    1.机器语言、汇编语言、编译型、解释型语言子在执行效率、开发效率、跨平台性方面的高低对比。答:执行效率:机器语言>汇编语言>编译型语言>解释性语言;开发效率:机器语言<汇编......
  • 对现代软件工程基础的部分了解
    1、软件工程的目标有哪些?就当今社会而言,软件工程仍处于一个上升阶段,为获得更快速的发展,我们需要为它定制目标。软件工程要达到的基本目标包括:达到要求的软件功能、取得较好......
  • 华为交换机开机配置(一)
    默认情况下,通过Console口登录无密码,任何人都可以直接连接到设备,进行配置。为了避免由此带来的风险,可以将Console接口登录方式配置为密码认证方式,密码为明文形式的“hua......
  • 斯坦福课程 UE4 C++ ARPG游戏实例教程 01.基础AI与行树
    斯坦福课程UE4C++ARPG游戏实例教程0.绪论前言&摘要本篇文章是基于斯坦福UE4C++课程的学习记录。因为B站用户surkea由于学业原因,暂停了课程笔记的更新,这里狗尾续貂,将......
  • docker常用命令
    基础命令dockerinfo守护进程的系统资源设置dockersearch   Docker仓库的查询dockerpullDocker仓库的下载dockerimages Docker......
  • MySQL基本命令操作
    目录创建数据库删除数据库数据表的创建与管理删除数据表修改字段数据类型添加字段字段更名删除字段表数据管理插入数据查询数据模糊匹配排序与分组HAVING子句查询聚合函数......
  • 数据挖掘(1)--基础知识学习
    前言自20世纪90年代以来,随着数据库技术应用的普及,数据挖掘( Data Mining )技术已经引起了学术界、产业界的极大关注,其主要原因是当前各个单位已经存储了超大规模,即海量规模......
  • C语言学习笔记之 第四讲:C语言Windows命令行编程
    1、stdlib头文件即standardlibrary标准库头文件。stdlib头文件里包含了C、C++语言的最常用的​​系统函数​​该文件包含了C语言标准​​库函数​​的定义2、system()......