【软考网工】华为交换机命令
目录
- 1、华为交换机命令行的三种视图
- 2、修改交换机名称
- 3、关闭和开启信息中心
- 4、vlan
- 附录:
交换机型号:S5700
1、华为交换机命令行的三种视图
<Huaweu> #用户视图。特征:尖括号、用户名。
[Huawei] #系统视图。特征:方括号、用户名。
[Huawei-xxx] #业务视图。特征:方括号、用户名、短横、业务名。xxx表示具体业务
用户视图,开机默认视图,对软考中没啥用。
系统视图,修改用户名、密码、时间、查看当前配置。
业务视图,其中具体业务视图主要包括接口视图、路由协议视图、vlan视图。
三种视图间切换:
<Huawei>system-view #用户视图切换到系统视图
[Huawei]interface GigabitEthernet 0/0/1 #系统视图切换到具体的业务视图
[Huawei-GigabitEthernet0/0/1]q #具体的业务视图回退到系统视图。补全为quit
[Huawei]q #系统视图回退到用户视图。补全为quit
<Huawei>
执行quit命令,可从当前视图退出至上一层视图。执行return命令可以从任意视图返回到用户视图。
2、修改交换机名称
[Huawei]sysname Switch-01
[Switch-01]
3、关闭和开启信息中心
[HUAWEI]undo info-center enable #关闭信息中心
[HUAWEI]info-center enable #打开信息中心
4、vlan
[Huawei]display vlan #查看本交换机vlan
[Huawei]vlan 5 #创建名为5的单个vlan
[Huawei]vlan batch 21 23 29 to 40 #批量创建名为21、23、29~40的vlan
[Huawei]undo vlan 5 #删除vlan 5
[Huawei]undo vlan batch 21 23 29 to 40 #批量删除vlan 21、23、29~40
[Huawei]interface vlan 5 #将vlan 5当作一个虚拟接口,SVI技术
[Huawei-Vlanif5]ip address 192.168.1.254 24 #给这个虚拟接口配置一个管理IP地址
[Huawei-Vlanif5]interface g0/0/1 #配置g0/0/1端口
[Huawei-GigabitEthernet0/0/1]port link-type access #将g0/0/1端口的链路类型配置成接入模式
[Huawei-GigabitEthernet0/0/1]port default vlan 5 #将g0/0/1端口加入vlan 5
[Huawei-GigabitEthernet0/0/1]q #从业务视图推出至系统视图
[Huawei]telnet server enable #开启交换机的telnet功能(默认是关闭的)
附录:
键入 ? 可以查看当前视图下所有可用命令。
用户视图下可用命令:
<Huawei>?
User view commands:cd Change current directorycheck Check informationclear Clear informationclock Specify the system clockcluster Run cluster commandcluster-ftp FTP command of clustercompare Compare functionconfiguration Configuration interlockcopy Copy from one file to anotherdebugging Enable system debugging functionsdelete Delete a filedir List files on a file systemdisplay Display current system informationfixdisk Recover lost chains in storage deviceformat Format the deviceftp Establish an FTP connectionhwtacacs-user kill Release a user terminal interfacelanguage-mode Specify the language environmentlldp Link Layer Discovery Protocollocal-user Add/Delete/Set user(s)lock Lock the current user terminal interfacemkdir Create a new directorymore Display the contents of a filemove Move the filemtrace Trace route to multicast sourcentdp Run NTDP commandspatch Patch subcommandsping Send echo messagespwd Display current working directoryquit Exit from current command viewreboot Reboot systemrefresh Do soft resetrename Rename a file or directoryreset Reset operationrmdir Remove an existing directorysave Save current configurationschedule Schedule system taskscreen-length Set the number of lines displayed on a screenscreen-width Set screen widthsend Send information to other user terminal interfacesset Setstack Stack start-script Start a script on an user-interfacestartup Configure parameter for system to startupsuper Privilege current user a specified priority levelsystem-view Enter the system viewtelnet Establish a Telnet connectionterminal Set the terminal line characteristicstest-aaa Accounts testtftp Establish a TFTP connectiontrace Trace route (switch) to host on Data Link Layertracert Trace route to hostundelete Recover a deleted fileundo Cancel current configurationunzip Decompress a filezip Compress a file<Huawei>
系统视图下可用命令
[Huawei]?
System view commands:aaa AAAacl Specify ACL configuration informationalarm Enter the alarm viewanti-attack Specify anti-attack configurationsapplication-apperceive Set application-apperceive informationarp ARP modulearp-miss Specify ARP MISS configuration information arp-suppress Specify arp suppress configuration information,default is disabledauthentication Authenticationautoconfig AutoConfig configuration informationbfd Bidirectional Forwarding Detectionbgp Border Gateway Protocol(BGP)bootrom BootRombpdu BPDU messagebtv Btv view bulk-file Specify the file name of bulk statisticsbulk-stat Set bulk statisticscapture-packet Capture-packetccc Circuit cross connectioncfm Connectivity fault managementclear Cancel current configurationcluster Specify the information for cluster configurationcommand-privilege Specify the command levelconfiguration Configuration interlockconfiguration-occupied Configuration exclusive occupiedcp-car Cpu car settingcpu-defend Configure CPU defend policycpu-defend-policy Configure CPU defend policycpu-usage Set cpu usage configurationdhcp Dynamic host configure protocol dhcp-snooping DHCP snooping dhcpv6 Dynamic host configure protocol version 6 diffserv Specify diffserv parameters display Display priority informationdldp Device link detection protocol dns Specify domain name systemdomain Default domaindot1x 802.1x configuration informationdrop Discard attributedrop-profile Drop profile dsa Specify DSA module configurationse-trunk E-Trunkecmp ECMPefm EFM moduleerps Ethernet ring protection switchingerror-down The interface was shut down because of an error eventevent Enter the event viewexecute Batch commandfib FIB status and configuration informationfile Specify file system configuration informationftp Set the FTP server attributesgarp Generic Attribute Registration Protocolgtsm The generalized TTL security mechanismgvrp Generic VLAN Registration Protocolheader Define the login bannerhwtacacs hwtacacs-server icmp Specify ICMP configuration information icmp-reply Enable ICMP reply fastigmp Specify IGMP configuration informationigmp-snooping Specify parameters for IGMP-Snoopinginfo-center Specify message output configuration informationinterface Specify the interface configuration viewip Specify IP configurations for the systemipv4 Configure ip packet ipv6 Enable IPv6 functionalityisis Intermediate System to Intermediate System (ISIS)routeskeychain Keychain authenticationl2-topology Layer 2 topologyl2protocol-tunnel Layer 2 protocol tunnellacp Link aggregation control protocollldp Link Layer Discovery Protocolload-balance Specify load balance modeloopback-detect Loopback detect functionlspv Lsp verificationmac-address Mac addressmac-authen MAC authenticate configure informationmac-forced-forwarding Mac-Forced Forwardingmac-learning MAC learningmac-spoofing-defend MAC spoofing defendmatched Is Command can be matched by upper templatemip Configure a rule used to create MIPmld-snooping Specify parameters for MLD-Snoopingmonitor-link Monitor link configuration informationmpls Specify MPLS(Multiprotocol Label Switching)configuration informationmpls-qos MPLS QoSmsdp Specify MSDP(Multicast Source Discovery Protocol)configuration informationmtrace Trace route to multicast sourcemulticast Multicast informationnap NAP protocolnd Neighbor discoveryndp Neighbor discovery protocolnqa Network Quality Analysis(NQA)nqa-jitter Switch NQA jitter versionnqa-server Specify NQA echo serverntdp Network topology discovery protocolntp-service Specify NTP (Network Time Protocol) configurationinformationoam-mgr Oam-mgr viewobserve-port Configure observe port featureospf Open Shortest Path First (OSPF)ospfv3 OSPF version 3 for IPv6pim Specify PIM(Protocol Independent Multicast)configuration informationping Ping functionpolicy-based-route Specify a policy for policy based routingport-group Port-groupport-isolate Port isolateport-mirroring Mirror portportal Configure Portal local serverportswitch Switch port between router and switch modepppoe PPPOE pw-template Specify PW template configurationqos QoS configurationquit Exit from current command viewradius-server Add or delete RADIUS server templaterefresh Refresh routes to I/O boardreset Reset operationreturn Exit to user viewrip RIP (Routing Information Protocol)ripng RIPng (Routing information next generation protocol)rmon Specify RMON configurationrmon2 Specify RMON2 configurationroute Routing Moduleroute-policy Route-policyroute-policy-change Specify route policy change parameterrouter Configure router informationrrpp Rapid ring protection protocolrsa Specify RSA module configuration informationscp Set SCP serverscreen-width Set screen widthscript-string Define a modem script-stringsep Smart ethernet protectionservice Toggle service mode. By default it is offset Setsftp Set SFTP service attributesmart-link Smart link configuration informationsnmp-agent Specify SNMP (Simple Network Management Protocol)configuration informationssh Set the SSH (secure shell) configuration attributestack Stack static-lsp Static LSP configurationstelnet Set Stelnet service attributestp Specify Spanning Tree Protocol (STP) configurationinformationsuper Modify super password parameterssysname Specify the host nametcp Specify TCP(Transmission Control Protocol)configuration informationtelnet Set the status of the Telnet servicetemperature Device temperaturetest-aaa Accounts testtest-packet Set the test packettftp Establish a TFTP connectiontftp-server TFTP servertime-range Specify time-range configuration informationtrace Trace route (switch) to host on Data Link Layertracert Trace route to hosttraffic Specify traffic configuration informationtraffic-delete Delete sacl traffic-filter Filter packets based on acl traffic-limit Limit the rate of the packets based on acl traffic-mirror Mirror packets based on acl traffic-policy Apply specific traffic policytraffic-redirect Redirect packets based on acl traffic-remark Remark packets based on acl traffic-statistic Count packets based on acl trunk Trunk interfacettl Time to livetunnel-selector Tunnel-policy selectorudp-helper UDP Helper undo Cancel current configurationunknown-unicast Unknown unicastupgrade Upgrade software onlineuser-bind User bind user-group User groupuser-interface Configure the user terminal interfacevlan Virtual LANvoice-vlan Voice VLANvrrp Specify configuration information about VRRPweb-auth-server Portal authentication server
[Huawei]相关文章:
【软考网工】华为交换机命令
目录 1、华为交换机命令行的三种视图2、修改交换机名称3、关闭和开启信息中心4、vlan附录: 交换机型号:S5700 1、华为交换机命令行的三种视图 <Huaweu> #用户视图。特征:尖括号、用户名。 [Huawei] #系统视图。特…...
【行业解决方案篇十八】【DeepSeek航空航天:故障诊断专家系统 】
引言:为什么说这是“航天故障终结者”? 2025年春节刚过,航天宏图突然官宣"DeepSeek已在天权智能体上线",这个搭载在卫星和空间站上的神秘系统,号称能提前48小时预判99.97%的航天器故障。这不禁让人想起年初NASA禁用DeepSeek引发的轩然大波,更让人好奇:这套系…...
输入菜单关键字,遍历匹配到 menuIds,展开 匹配节点 的所有父节点以及 匹配节点 本身,高亮 匹配节点
菜单检索,名称、地址、权限标志 等 关键字匹配、展开、高亮(全程借助 DeepSeek ) 便捷简洁的企业官网 的后台菜单管理,图示: 改造点: (1)修改 bootstrapTreeTable 的节点class命名方式为:treeg…...
【Blender】二、建模篇--07,置换修改器
0 00:00:03,620 --> 00:00:08,620 大家好 这张课呢 我们来讲建模篇的最后一个重点修改器 置换修改器 1 00:00:08,980 --> 00:00:17,580 把它放在最后 不是因为它最难 而是因为它很常用 尤其大家以后做材质的时候 我们可以用一张贴图把一个平面做出来凹凸的感觉 2 00:00…...
玩转 Java 与 Python 交互,JEP 库来助力
文章目录 玩转 Java 与 Python 交互,JEP 库来助力一、背景介绍二、JEP 库是什么?三、如何安装 JEP 库?四、JEP 库的简单使用方法五、JEP 库的实际应用场景场景 1:数据处理场景 2:机器学习场景 3:科学计算场…...
鸿蒙学习-
鸿蒙数据传值 //* 传值 //* State /**State创建一个响应式的数据,但不是所有的更改都会引起刷新,只有被框架观察到的修改才会被刷新UI* 1. 基本数据类型如 number string boolean等值的变化修改* 2. Object类型,只会观察到第一层的数据变化或…...
list结构刨析与模拟实现
目录 1.引言 2.C模拟实现 2.1模拟实现结点 2.2模拟实现list前序 1)构造函数 2)push_back函数 2.3模拟实现迭代器 1)iterator 构造函数和析构函数: *操作符重载函数: 前置/后置/--: /!操作符重载…...
机器人部分专业课
华东理工 人工智能与机器人导论 Introduction of Artificial Intelligence and Robots 必修 考查 0.5 8 8 0 1 16477012 程序设计基础 The Fundamentals of Programming 必修 考试 3 64 32 32 1 47450012 算法与数据结构 Algorithm and Data Structure 必修 考试 3 56 40 …...
流行粗野主义几何风现代曲线标题logo设计psai无衬线英文字体安装包 Mortend – Extended Family
介绍我们名为 Mortend 的新探索,这是一个强大的扩展字体系列。Mortend 的设计具有几何形状、大胆、强烈的曲线和现代感。灵感来自当今流行的粗野主义海报和极简主义设计,让您有更多机会表达您的创造力。这个字体系列带来了强烈的感觉而优雅的外观&#x…...
前端常见面试题-2025
vue4.0 Vue.js 4.0 是在 2021 年 9 月发布。Vue.js 4.0 是 Vue.js 的一个重要版本,引入了许多新特性和改进,旨在提升开发者的体验和性能。以下是一些关键的更新和新特性: Composition API 重构:Vue 3 引入了 Composition API 作为…...
高通Camera点亮3——Camera Module
Camera点亮除了Sensor之外还需要配置module、EEPROM等,multicamera;配置好编译设置。 Module <?xml version"1.0" encoding"utf-8" ?> <cameraModuleData<!--Module group can contain either 1 module or 2 modules…...
学习路程二 LangChain基本介绍
前面简单调用了一下deepseek的方法,发现有一些疑问和繁琐的问题,需要更多的学习,然后比较流行的就是LangChain这个东西了。 目前大部分企业都是基于 LangChain 、qwen-Agent、lammaIndex框架进行大模型应用开发。LangChain 提供了 Chain、To…...
Docker-技术架构演进之路
目录 一、概述 常见概念 二、架构演进 1.单机架构 2.应用数据分离架构 3.应用服务集群架构 4.读写分离 / 主从分离架构 5.引入缓存 —— 冷热分离架构 6.垂直分库 7.业务拆分 —— 微服务 8.容器化引入——容器编排架构 三、尾声 一、概述 在进行技术学习过程中&am…...
API接口设计模式:从分层架构到CQRS的实战应用
以下将从分层架构和 CQRS(命令查询职责分离)的基本概念入手,为你阐述从分层架构到 CQRS 的实战应用相关内容: 分层架构 概念:分层架构是将系统按照功能划分为不同的层次,每个层次负责特定的职责,…...
【机器学习】【KMeans聚类分析实战】用户分群聚类详解——SSE、CH 指数、SC全解析,实战电信客户分群案例
1.引言 在实际数据分析中,聚类算法常用于客户分群、图像分割等场景。如何确定聚类数 k 是聚类分析中的关键问题之一。本文将以“用户分群”为例,展示如何通过 KMeans 聚类,利用 SSE(误差平方和,也称 Inertiaÿ…...
【C++】 时间库chrono计算程序运行时间
C 时间库chrono计算程序运行时间 本文总结了chrono库的引入方法以及计算程序片段运行时间的方法 一、chrono库的引入方法(注意事项) 首先chrono是属于std命名空间的。 所以在程序中应该这样包含头文件: #include <chrono> using n…...
PCL 边界体积层次结构(Boundary Volume Hierarchy, BVH)
文章目录 一、简介二、实现代码三、实现效果参考资料一、简介 边界体积层次结构(Boundary Volume Hierarchy, BVH) 是一种高效的空间数据结构,广泛应用于计算机图形学、计算机视觉、机器人学、物理仿真等领域。它的核心思想是通过将空间递归地划分为层次化的包围体(通常是轴…...
算法随笔_58: 队列中可以看到的人数
上一篇:算法随笔_57 : 游戏中弱角色的数量-CSDN博客 题目描述如下: 有 n 个人排成一个队列,从左到右 编号为 0 到 n - 1 。给你以一个整数数组 heights ,每个整数 互不相同,heights[i] 表示第 i 个人的高度。 一个人能 看到 他右边另一个人…...
创建React项目的三个方式
创建React项目 创建一个React项目非常简单,通常有几种方法可以进行,下面是最常见的几种方法: 1. 使用 create-react-app (已经不被推荐了) create-react-app 是一个官方的脚手架工具,用于快速创建 React 项目。它会为你配置好很…...
QT闲记-工具栏
工具栏通常用来放置常用的操作按钮,如QPushButton,QAction等。可以放置在顶部,底部,左侧,右侧,并且支持拖曳,浮动。 1、创建工具栏 通常通过QMainWindow 提供的addToolBar()来创建,它跟菜单栏一样,如果需要工具栏,一般情况下,我们设置这个类的基类为QMainWindow。 …...
测试微信模版消息推送
进入“开发接口管理”--“公众平台测试账号”,无需申请公众账号、可在测试账号中体验并测试微信公众平台所有高级接口。 获取access_token: 自定义模版消息: 关注测试号:扫二维码关注测试号。 发送模版消息: import requests da…...
练习(含atoi的模拟实现,自定义类型等练习)
一、结构体大小的计算及位段 (结构体大小计算及位段 详解请看:自定义类型:结构体进阶-CSDN博客) 1.在32位系统环境,编译选项为4字节对齐,那么sizeof(A)和sizeof(B)是多少? #pragma pack(4)st…...
Go 语言接口详解
Go 语言接口详解 核心概念 接口定义 在 Go 语言中,接口是一种抽象类型,它定义了一组方法的集合: // 定义接口 type Shape interface {Area() float64Perimeter() float64 } 接口实现 Go 接口的实现是隐式的: // 矩形结构体…...
Frozen-Flask :将 Flask 应用“冻结”为静态文件
Frozen-Flask 是一个用于将 Flask 应用“冻结”为静态文件的 Python 扩展。它的核心用途是:将一个 Flask Web 应用生成成纯静态 HTML 文件,从而可以部署到静态网站托管服务上,如 GitHub Pages、Netlify 或任何支持静态文件的网站服务器。 &am…...
MODBUS TCP转CANopen 技术赋能高效协同作业
在现代工业自动化领域,MODBUS TCP和CANopen两种通讯协议因其稳定性和高效性被广泛应用于各种设备和系统中。而随着科技的不断进步,这两种通讯协议也正在被逐步融合,形成了一种新型的通讯方式——开疆智能MODBUS TCP转CANopen网关KJ-TCPC-CANP…...
自然语言处理——循环神经网络
自然语言处理——循环神经网络 循环神经网络应用到基于机器学习的自然语言处理任务序列到类别同步的序列到序列模式异步的序列到序列模式 参数学习和长程依赖问题基于门控的循环神经网络门控循环单元(GRU)长短期记忆神经网络(LSTM)…...
Mac下Android Studio扫描根目录卡死问题记录
环境信息 操作系统: macOS 15.5 (Apple M2芯片)Android Studio版本: Meerkat Feature Drop | 2024.3.2 Patch 1 (Build #AI-243.26053.27.2432.13536105, 2025年5月22日构建) 问题现象 在项目开发过程中,提示一个依赖外部头文件的cpp源文件需要同步,点…...
浪潮交换机配置track检测实现高速公路收费网络主备切换NQA
浪潮交换机track配置 项目背景高速网络拓扑网络情况分析通信线路收费网络路由 收费汇聚交换机相应配置收费汇聚track配置 项目背景 在实施省内一条高速公路时遇到的需求,本次涉及的主要是收费汇聚交换机的配置,浪潮网络设备在高速项目很少,通…...
掌握 HTTP 请求:理解 cURL GET 语法
cURL 是一个强大的命令行工具,用于发送 HTTP 请求和与 Web 服务器交互。在 Web 开发和测试中,cURL 经常用于发送 GET 请求来获取服务器资源。本文将详细介绍 cURL GET 请求的语法和使用方法。 一、cURL 基本概念 cURL 是 "Client URL" 的缩写…...
实战三:开发网页端界面完成黑白视频转为彩色视频
一、需求描述 设计一个简单的视频上色应用,用户可以通过网页界面上传黑白视频,系统会自动将其转换为彩色视频。整个过程对用户来说非常简单直观,不需要了解技术细节。 效果图 二、实现思路 总体思路: 用户通过Gradio界面上…...
