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

思科、华为、H3C常用命令对照表


取消/关闭

思科no
华为
undo
华三
undo

查看

思科show
华为display
华三display

退出

思科exit
华为
quit
华三
quit

设备命名

思科hostname
华为sysname
华三sysname

进入全局模式

思科enable、config terminal
华为system-view
华三system-view

删除文件

思科
delete
华为delete
华三delete

设备重启

思科reload
华为
reboot
华三
reboot

保存当前配置

思科write
华为save
华三save

创建用户

思科username
华为
local-user
华三
local-user

关闭接口

思科shutdown
华为shutdown
华三
shutdown

显示系统版本

思科show version
华为
display version
华三display version

查看已保存设备配置

思科show startup-config
华为
display saved-configuration
华三display saved-configuration

显示当前设备配置

思科show running-config
华为
display current-configuration
华三display current-configuration

删除设备配置

思科erase startup-config
华为
reset saved-configuration
华三reset saved-configuration

退到用户视图

思科end
华为
return
华三return

进入线路配置(用户接口)模式

思科line
华为
user-interface
华三user-interface

配置明文密码

思科enable password
华为
set authentication password simple
华三set authentication password simple

进入接口

思科interface type number
华为
interface type number
华三interface type number

进入vlanif接口

思科interface vlanif 1
华为
interface vlanif 1
华三interface vlanif 1

进入多个端口

思科interface rang
华为
interface range type number to type number
华三interface range type number to type number

设置特权口令

思科enable esecret
华为
super password
华三super password

配置接口状态

思科duplex (half|full|auto)
华为
duplex (half|full|auto)
华三duplex (half|full|auto)

配置端口速率

思科speed(10/100/1000/10000)
华为
speed(10/100/1000/10000)
华三speed(10/100/1000/10000)

创建vlan

思科vlan id
华为
vlan id
华三vlan id

删除vlan

思科no vlan id
华为
undo vlan id
华三undo vlan id

配置接口vlan模式

思科switchport mode (access/trunk)
华为
port link-type(access/trunk/hybrid)
华三port link-type(access/trunk/hybrid)

配置trunk

思科switchport mode (access/trunk)
华为
port link-type(access/trunk/hybrid)
华三port link-type(access/trunk/hybrid)

接口允许access vlan

思科switchport access vlan id
华为
port defult vlan id
华三port access vlan id

查看接口

思科show interface
华为
display interface
华三display interface

查看vlan

思科show vlan
华为
display vlan
华三display vlan

创建链路聚合组

思科interface port-channel 1
华为
interface eth-trunk 1
华三interface Bridge-Aggregation 1

接口加入链路聚合组

思科channel-group 1 mode on
华为
eth-trunk 1
华三port link-aggregation group 1

开启接口三层功能

思科no switchport
华为
undo portswitch
华三port link-mode route

stp配置根桥

思科spanning-tree vlan ID root primary
华为
stp instance 1 root primary
华三stp instance 1 root primary

配置stp优先级

思科spanning-tree vlan ID priority
华为
stp vlan 1 priority 4096
华三stp priority 4096

查看STP配置

思科show spanning-tree
华为
display stp brief
华三display stp brief

配置默认路由

思科ip route 0.0.0.0 0.0.0.0 192.168.1.1
华为
ip route-static 0.0.0.0 0 192.168.1.1
华三ip route-static 0.0.0.0 0 192.168.1.1

配置静态路由

思科ip route 172.16.0.0 255.255.255.0 192.168.1.1
目的网段+掩码+下一跳
华为
ip route-static 172.16.0.0 24 192.168.1.1
目的网段+掩码+下一跳
华三ip route-static 172.16.0.0 24 192.168.1.1
目的网段+掩码+下一跳

查看全局路由表

思科show ip route
华为
display ip routing-table
华三display ip routing-table

查看协议路由表

思科show protocol route
华为
display ospf routing
华三display ospf routing

配置ospf

思科route ospf
华为
ospf
华三ospf

配置OSPF区域

思科network ip 反码 area <区域id>
华为
area 0
华三area 0

标准访问控制列表

思科access-list 1-99 permit/deny IP
华为
acl 2000-2999
rule permit/deny source IP+通配符
华三acl number 2000

rule permit/deny source IP+通配符
http://www.lryc.cn/news/538593.html

相关文章:

  • 解决 `pip is configured with locations that require TLS/SSL` 错误
  • 2025-arXiv-OmniThink:通过思考扩展机器写作的知识边界
  • 【广州大学主办,发表有保障 | IEEE出版,稳定EI检索,往届见刊后快至1个月检索】第二届电气技术与自动化工程国际学术会议 (ETAE 2025)
  • 机器学习:01数学基础教程
  • 仿叮咚买菜鸿蒙原生APP
  • WordPress“更新失败,响应不是有效的JSON响应”问题的修复
  • kotlin的onFailure: () -> Unit
  • 通过网线将Keysight DSOX4154A示波器信号传输至电脑的Step
  • midjourney 一 prompt 提示词
  • 微信小程序 - 网络请求基础路径集中管理(基础路径集中管理策略、动态切换基础路径)
  • C#的委托delegate与事件event
  • apache artemis安装
  • Lightning基础训练尝试实例
  • osgearth视点坐标及鼠标交点坐标的信息显示(七)
  • 动态规划 之 背包问题
  • 【Azure 架构师学习笔记】- Azure Databricks (11) -- UC搭建
  • RTMP(Real-Time Messaging Protocol)
  • docker容器部署jar应用导入文件时候报缺少字体错误解决
  • 贪吃蛇解析
  • vue非组件的初学笔记
  • LeetCode 热题 100_单词搜索(60_79_中等_C++)(深度优先搜索(回溯))(初始化二维vector的大小)
  • js闭包,跨域
  • 算法练习(力扣-BFS)——102. 二叉树的层序遍历
  • Jetson Agx Orin平台preferred_stride调试记录--1924x720图像异常
  • nlp|微调大语言模型初探索(2),训练自己的聊天机器人
  • win11安装wsl报错:无法解析服务器的名称或地址(启用wsl2)
  • Gentleman:优雅的Go语言HTTP客户端工具包
  • 解锁豆瓣高清海报(三)从深度爬虫到URL构造,实现极速下载
  • IDEA单元测试插件 SquareTest 延长试用期权限
  • PLC的五个学习步骤