思科、华为、H3C命令对照表
思科、华为、H3C命令对照表
| 基础命令 | |||
| 描述 | CISCO | H3C | HUAWEI |
| 取消、关闭当前设置 | no | undo | undo |
| 显示查看 | show | display | display |
| 退回上级 | exit | quit | quit |
| 设置主机名 | hostname | sysname | sysname |
| 进入全局模式 | en, 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 |
| 取消所有debug命令 | no debug all | ctrl+d | ctrl+d |
| 删除配置 | erase startup-config | reset saved-configuration | reset saved-configuration |
| 退到用户视图 | end | return | return |
| 登出 | exit | logout | logout |
| 指定信息中心配置信息 | logging | info-center | info-center |
| 进入线路配置(用户接口)模式 | line | user-interface | user-interface |
| 启动配置 | start-config | saved-configuration | saved-configuration |
| 当前配置 | running-config | current-configuration | current-configuration |
| host名字和ip地址对应 | host | ip host | ip host |
| 交换部分 | |||
| 配置明文密码 | enable password | set authentication password simple | set authentication password simple |
| 进入接口 | interface type/number | interface type/number | interface type/number |
| 进入vlan配置vlan管理地址 | interface vlan 1 | interface vlan 1 | interface vlan 1 |
| 定议多个端口的组 | interface rang | interface ethID to ID | interface ethID to ID |
| 设置特权口令 | enabl esecret | super password | super password |
| 配置接口状态 | duplex (half/full/auto) | duplex (half/full/auto) | duplex (half/full/auto) |
| 配置端口速率 | speed (10/100/1000) | speed (10/100/1000) | speed (10/100/1000) |
| 配置trunk | switchport mode trunk | port link-type trunk | port link-type trunk |
| 添加、删除vlan | vlan ID /no vlan ID | vlan batch ID /undo vlan batch ID | vlan batch ID /undo vlan batch ID |
| 将端口接入vlan | switchport access vlan | port default vlan ID | port acces vlan ID |
| 查看接口 | show interface | display interface | display interface |
| 查看vlan | show vlan ID | display vlan ID | display vlan ID |
| 封装协议 | encapsulation | link-protocol | link-protocol |
| 链路聚合 | channel-group 1 mode on | port link-aggregation group 1 | port link-aggregation group 1 |
| 开启三层交换的路由功能 | ip routing | 默认开启 | 默认开启 |
| 开启接口三层功能 | no switchport | 不支持 | 不支持 |
| 对跨以太网交换机的VLAN进行动态注册和删除 | vtp domain | GVRP | GVRP |
| stp配置根网桥 | spanning-tree vlan ID root primary | stp instance id root primary | stp instance id root primary |
| 配置网桥优先级 | spanning-tree vlan ID priority | stp primary vlaue | stp primary vlaue |
| 查看STP配置 | show spanning-tree | dis stp brief | dis stp brief |
| 路由部分 | |||
| 配置默认路由 | ip route 0.0.0.0 0.0.0.0 | ip route-static 0.0.0.0 0.0.0.0 | ip route-static 0.0.0.0 0.0.0.0 |
| 配置静态路由 | ip route 目标网段+掩码 下一跳 | ip route-static 目标网段+掩码 下一跳 | ip route-static 目标网段+掩码 下一跳 |
| 查看路由表 | show ip route | display ip routing-table | display ip routing-table |
| 启用rip、并宣告网段 | router rip /network 网段 | rip /network 网段 | rip /network 网段 |
| 启用ospf | router ospf | ospf | ospf |
| 配置OSPF区域 | network ip 反码 area | area | area |
| 配置RIP V2水平分割 | no auto-summary | rip split-horizon | rip split-horizon |
| 查看路由协议 | show ip protocol | display ip protocol | display ip protocol |
| 标准访问控制列表 | access-list 1-99 permit/deny IP | rule id permit source IP | rule id permit source IP |
| 扩展访问控制列表 | access-list 100-199 permit/deny protocol source IP+反码 destination IP+反码 operator operan | rule {normal/special}{permit/deny}{tcp/udp}source { | rule {normal/special}{permit/deny}{tcp/udp}source { |
| 配置HSRP组 | standby group-number ip virtual-ip | vrrp vrid number virtual-ip | vrrp vrid number virtual-ip |
| 配置HSRP优先级 | standby group-number priority | vrrp vrid number priority | vrrp vrid number priority |
| 配置HSRP占先权 | standby group-number preempt | vrrp vrid number preempt-mode | vrrp vrid number preempt-mode |
| 配置端口跟踪 | standby group-number track | ||
| 配置静态地址转换 | ip nat inside source static | nat server global | nat server global |