【软考网工】华为交换机命令
目录
- 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。 …...
CVPR 2025 MIMO: 支持视觉指代和像素grounding 的医学视觉语言模型
CVPR 2025 | MIMO:支持视觉指代和像素对齐的医学视觉语言模型 论文信息 标题:MIMO: A medical vision language model with visual referring multimodal input and pixel grounding multimodal output作者:Yanyuan Chen, Dexuan Xu, Yu Hu…...
【机器视觉】单目测距——运动结构恢复
ps:图是随便找的,为了凑个封面 前言 在前面对光流法进行进一步改进,希望将2D光流推广至3D场景流时,发现2D转3D过程中存在尺度歧义问题,需要补全摄像头拍摄图像中缺失的深度信息,否则解空间不收敛…...
最新SpringBoot+SpringCloud+Nacos微服务框架分享
文章目录 前言一、服务规划二、架构核心1.cloud的pom2.gateway的异常handler3.gateway的filter4、admin的pom5、admin的登录核心 三、code-helper分享总结 前言 最近有个活蛮赶的,根据Excel列的需求预估的工时直接打骨折,不要问我为什么,主要…...
【2025年】解决Burpsuite抓不到https包的问题
环境:windows11 burpsuite:2025.5 在抓取https网站时,burpsuite抓取不到https数据包,只显示: 解决该问题只需如下三个步骤: 1、浏览器中访问 http://burp 2、下载 CA certificate 证书 3、在设置--隐私与安全--…...
3403. 从盒子中找出字典序最大的字符串 I
3403. 从盒子中找出字典序最大的字符串 I 题目链接:3403. 从盒子中找出字典序最大的字符串 I 代码如下: class Solution { public:string answerString(string word, int numFriends) {if (numFriends 1) {return word;}string res;for (int i 0;i &…...
绕过 Xcode?使用 Appuploader和主流工具实现 iOS 上架自动化
iOS 应用的发布流程一直是开发链路中最“苹果味”的环节:强依赖 Xcode、必须使用 macOS、各种证书和描述文件配置……对很多跨平台开发者来说,这一套流程并不友好。 特别是当你的项目主要在 Windows 或 Linux 下开发(例如 Flutter、React Na…...
PH热榜 | 2025-06-08
1. Thiings 标语:一套超过1900个免费AI生成的3D图标集合 介绍:Thiings是一个不断扩展的免费AI生成3D图标库,目前已有超过1900个图标。你可以按照主题浏览,生成自己的图标,或者下载整个图标集。所有图标都可以在个人或…...
数据分析六部曲?
引言 上一章我们说到了数据分析六部曲,何谓六部曲呢? 其实啊,数据分析没那么难,只要掌握了下面这六个步骤,也就是数据分析六部曲,就算你是个啥都不懂的小白,也能慢慢上手做数据分析啦。 第一…...
【技巧】dify前端源代码修改第一弹-增加tab页
回到目录 【技巧】dify前端源代码修改第一弹-增加tab页 尝试修改dify的前端源代码,在知识库增加一个tab页"HELLO WORLD",完成后的效果如下 [gif01] 1. 前端代码进入调试模式 参考 【部署】win10的wsl环境下启动dify的web前端服务 启动调试…...
智警杯备赛--excel模块
数据透视与图表制作 创建步骤 创建 1.在Excel的插入或者数据标签页下找到数据透视表的按钮 2.将数据放进“请选择单元格区域“中,点击确定 这是最终结果,但是由于环境启不了,这里用的是自己的excel,真实的环境中的excel根据实训…...
