华为H3C思科网络设备命令对照表

|--------|-------------|-------------------------------------------------------------------|-------------------------------------------------------------------|------------------------------------|
| 类别 | 命令功能 | 华为 | H3C | 思科 |
| 通用 | 取消关闭当前设置 | undo | undo | no |
| 通用 | 显示查看 | display | display | show |
| 通用 | 退回上级 | quit | quit | quit |
| 通用 | 设置设备名称 | sysname | sysname | hostname |
| 通用 | 到全局模式 | system-view | system-view | enable config terminal |
| 通用 | 删除文件 | delete | delete | delete |
| 通用 | 重启设备 | reboot | reboot | reboot |
| 通用 | 保存当前设置 | save | save | write |
| 通用 | 创建本地用户 | local-user | local-user | username |
| 通用 | 禁止关闭 | shutdown | shutdown | shutdown |
| 通用 | 查看系统版本启动时间 | display version | display version | display version |
| 通用 | 查看已保存的配置 | display saved-configuration | display saved-configuration | show startup-config |
| 通用 | 显示当前的配置 | display current-configuration | display current-configuration | show running-config |
| 通用 | 取消所有debug命令 | ctrl键+d键 | ctrl键+d键 | no debug all |
| 通用 | 删除配置 | reset saved-configuration | reset saved-configuration | erase startup-config |
| 通用 | 退到用户模式 | return | return | end |
| 通用 | 退出登录 | logout | logout | exit |
| 通用 | 指定信息中心配置信息 | info-center | info-center | logging |
| 通用 | 到用户接口模式 | user-interface | user-interface | line |
| 通用 | host名称和ip地址 | ip host | ip host | host |
| switch | 配置口令 | set authentication password simple | set authentication password simple | enable password |
| switch | 进入接口 | interface-type interface-number | interface type/number | interface type/number |
| switch | 进入vlan | interface vlan id | interface vlan id | interface vlan id |
| switch | 设置多端口组 | interface ethid to id | interface ethid to id | interface rang |
| switch | 配置特权口令 | super password | super password | enable esecret |
| switch | 配置接口状态 | duplex half/full/auto | duplex half/full/auto | duplex half/full/auto |
| switch | 配置端口速率 | speed 10/100/1000 | speed 10/100/1000 | speed 10/100/1000 |
| switch | 配置trunk | port link-type trunk | port link-type trunk | switchport mode trunk |
| switch | 添加vlan | vlan id | vlan id | vlan id |
| switch | 删除vlan | undo vlan id | undo vlan id | no vlan id |
| switch | 将端口加入vlan | port link-type access vlan id | port vlan id | switchport access vlan id |
| switch | 查看接口 | display interface | display interface | show interface |
| switch | 查看vlan | display vlan id | display vlan id | show vlan id |
| switch | 封装协议 | link-protocol | link-protocol | encapsulation |
| switch | 链路聚合 | port link-aggregation group id | port link-aggregation group id | channel-group id mode on |
| switch | 启动3层交换 | default开启 | default开启 | ip routing |
| switch | GVRP配置 | GVRP | GVRP | vtp domain |
| switch | 配置根网桥 | stp root primary | stp root primary | spanning-tree vlan id root primary |
| switch | 配置网桥优先级 | stp priority p-number | stp priority p-number | spanning-tree vlan id priority |
| switch | 查看stp配置 | display stp brief | display stp brief | show spanning-tree |
| router | 配置默认路由 | ip route-static 0.0.0.0 0.0.0.0 | ip route-static 0.0.0.0 0.0.0.0 | ip route 0.0.0.0 0.0.0.0 |
| router | 配置静态路由 | ip route-static ip mask nexthop | ip route-static ip mask nexthop | ip route ip mask nexthop |
| router | 查看路由表 | display ip routing-table | display ip routing-table | show ip route |
| router | 启用ospf | ospf enable | ospf enable | router ospf |
| router | 配置ospf区域 | ospf enable area id | ospf enable area id | network ip 反码 area id |
| router | 查看路由协议 | display ip protocol | display ip protocol | show ip protocol |
| router | 标准ACL | rule normal permit source ip | rule normal permint source ip | access-list id permint/deny ip |
| router | 配置hsrp组 | vrrp vrid number virtual-ip | vrrp vrid number virtual-ip | standby group-number ip virtual-ip |
| router | 配置hsrp优先级 | vrrp vrid number priority | vrrp vrid number priority | standy group-number priority |
| router | 配置hsrp强占权 | vrrp vrid number preempt-mode | vrrp vrid number preempt-mode | standby group-number preempt |
| router | 配置静态地址转换 | nat server global <ip> [port] inside <ip> port [protocol] | nat server global <ip> [port] inside <ip> port [protocol] | ip nat inside source static |

相关推荐
H Journey1 小时前
网络编程:Boost.Asio实现跨平台的TCP服务器
服务器·网络·tcp/ip·boost.asio
H Journey8 小时前
网络编程-创建SOCKET套接字
网络·socket
一袋米扛几楼988 小时前
【高级网络】虚拟化与云计算 (Virtualization & Cloud) 深度解析
网络·网络工程
视觉&物联智能8 小时前
【杂谈】-人工智能风险文化对组织决策的深远影响
人工智能·安全·ai·agi
cczixun10 小时前
OpenAI连发GPT-5.5系列:免费版幻觉大降,安全版能力飙升,千亿融资估值直冲8520亿美元
人工智能·gpt·安全
wdfk_prog11 小时前
正常关闭虚拟机时,不要点“关机”,而要点“关闭客户机”
linux·c语言·网络·ide·vscode
@insist12312 小时前
信息安全工程师-网络安全审计产品图谱与实战应用全解
网络·安全·软考·信息安全工程师·软件水平考试
m0_7381207213 小时前
应急响应(重点)——记一次某公司流量应急溯源分析(附带下载链接)
服务器·前端·数据库·安全·web安全·网络安全
梵豪13 小时前
太原市政府办公网络规划与设计
网络
yantaohk13 小时前
一键下载微信视频号所有页面视频,支持批量下载、加密视频解密、自动去重
网络·微信·音视频