当前位置: 首页 > 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+通配符

相关文章:

  • 探索RDMA技术:从基础到实践
  • 机器学习 - 数据的特征表示
  • LLaMA-Factory 安装linux部署使用conda笔记
  • 10.2 Git 内部原理 - Git 对象
  • 基于ollama搭建本地deepseek大模型服务
  • Sentinel
  • 数据库报错1045-Access denied for user ‘root‘@‘localhost‘ (using password: YES)解决方式
  • 【MySQL】索引篇
  • 【ISO 14229-1:2023 UDS诊断全量测试用例清单系列:第十八节】
  • python 获取smpl身高 fbx身高
  • 【Unity Shader编程】之顶点着色器
  • 基于Docker-compose的禅道部署实践:自建MySQL与Redis集成及故障排查指南
  • 【Python深入浅出㉗】Python3正则表达式:开启高效字符串处理大门
  • pdf.js默认显示侧边栏和默认手形工具
  • Node.js 完全教程:从入门到精通
  • QT 5.15.2 开发地图ArcGIS 100.15.6(ArcGIS Runtime SDK for Qt)
  • 【Spring AI】基于SpringAI+Vue3+ElementPlus的QA系统实现(后端)
  • 为什么配置Redis时候要序列化配置呢
  • C# 鼠标点击ToolStripStatuslabel 在线修改Text属性并存储加载显示Text属性
  • 无人机雨季应急救灾技术详解
  • 巴国家安全委员会授权军方自主决定对印反击措施
  • 李云泽:将加快出台与房地产发展新模式相适配的系列融资制度
  • “两高”出台司法解释,严打破坏黑土地资源犯罪
  • 五一假期上海虹桥边检站出入境近4.7万人次,韩国入境旅客同比增118%
  • 科技赋能文化体验,“五一”假期“海昏侯”人气创新高
  • 玉渊谭天丨是自保还是自残?八个恶果透视美国征收100%电影关税