思科、华为、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+通配符
相关推荐
互联网散修几秒前
鸿蒙实战:快递地址图片识别与自动填充
华为·harmonyos·快递地址智能识别
带土15 分钟前
7. WireShark分析IP数据包格式
网络·tcp/ip·wireshark
盒子69101 小时前
图生图大模型对于各种复杂的图片如何做负载均衡呢?
运维·负载均衡
weixin_427771611 小时前
http 请求body加密
网络·网络协议·http
小杨勇敢飞2 小时前
记录一次 VMware 虚拟机固定 IP 后,FinalShell 连接不上的排查过程
网络·网络协议·tcp/ip
鹏大师运维8 小时前
为什么信创电脑装软件总提示“软件包架构不匹配”?
linux·运维·架构·国产化·麒麟·deb·统信uos
007张三丰9 小时前
软件测试专栏(11/20):测试框架开发:pytest深度解析与插件体系
运维·服务器·自动化测试·pytest·测试框架
特立独行的猫a10 小时前
Tauri 应用移植到 OpenHarmony/鸿蒙PC完整指南
华为·rust·harmonyos·tauri·移植·鸿蒙pc
weixin_6042366710 小时前
华三 路由器 极简核心配置
运维·服务器·网络·h3c·h3c路由器
互联网散修10 小时前
鸿蒙实战:文字放大镜精确跟随手指放大
华为·harmonyos