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