思科、华为、H3C命令对照,差异有多大?

中午好,我的网工朋友。

前段时间,给你们做了初阶命令行的汇总,你们又有新需求了。

说想看思科、华为、华三命令差异,连夜安排上了哈。

公众号之前曾整理过的思科、华为、华三命令行合集,给你先放这里了:

华为设备命令最全大合集

思科设备命令最全大合集

华三H3C设备命令最全大合集

如果觉得有用的话,可以多多转发到你的网工群,分享给更多的网工同行们,一起用用

这一期,就一起看看思科、华为、华三命令对照起来,差异有多大!

今日文章阅读福利:《华为设备命令最全大合集》

扫描二维码关注公众号,回复: 15762538 查看本文章

今天给你整理了一份华为设备命令合集,系列设备的配置命令、巡检命令、命名规则、排错命令等等,全都有哈。

私信我,发送暗号“华为命令”,即可领取该文档资源。

01 基础设置

01 取消/关闭 当前设置

思科:no

华为:undo

h3c:undo

02 查看、显示

思科:show
华为:display
h3c:display

03 退回上级

思科:exit
华为:quit
h3c:quit

04 设置主机名

思科:hostname
华为:sysname
h3c:sysname

05 进入全局模式

思科:en, config terminal
华为:system-view
h3c:system-view

06 删除文件

思科:delete
华为:delete
h3c:delete

07 重启

思科:reload
华为:reboot
h3c:reboot

08 保存当前配置

思科:write
华为:save
h3c:save

09 创建用户

思科:username
华为:local-user
h3c:local-user

10 禁止、关闭

思科:shutdown
华为:shutdown
h3c:shutdown

11 显示当前系统版本

思科:show version
华为:display version
h3c:display version

12 查看已保存过的配置

思科:show startup-config
华为:display saved-configuration
h3c:display saved-configuration

13 显示当前配置

思科:show running-config
华为:display current-configuration
h3c:display current-configuration

14 取消所有debug命令

思科:no debug all
华为:ctrl+d
h3c:华为:ctrl+d

15 删除配置

思科:erase startup-config
华为:reset saved-configuration
h3c:reset saved-configuration

16 退到用户视图

思科:end
华为:return
h3c:return

17 登出

思科:exit
华为:logout
h3c:logout

18 指定信息中心配置信息

思科:logging
华为:info-center
h3c:info-center

19 进入线路配置(用户接口)模式

思科:line
华为:user-interface
h3c:user-interface

20 启动配置

思科:start-config
华为:saved-configuration
h3c:saved-configuration

21 当前配置

思科:running-config
华为:current-configuration
h3c:current-configuration

22 host名字和ip地址对应

思科:host
华为:ip host
h3c:ip host

02 交换部分

01 配置明文密码

思科:enable password
华为:set authentication password simple
h3c:set authentication password simple

02 进入接口

思科:interface type/number
华为:port type/number
h3c:port type/number

03 进入vlan配置vlan管理地址

思科:interface vlan 1
华为:interface vlan 1
h3c:interface vlan 1

04 定议多个端口的组

思科:interface rang
华为:interface ethID to ID
h3c:interface ethID to ID

05 设置特权口令

思科:enabl esecret
华为:super password
h3c:super password

06 配置接口状态

思科:duplex (half|full|auto)
华为:duplex (half|full|auto)
h3c:duplex (half|full|auto)

07 配置端口速率

思科:speed (10/100/1000)
华为:speed (10/100/1000)
h3c:speed (10/100/1000)

08 配置trunk

思科:switchport mode trunk
华为:port link-type trunk
h3c:port link-type trunk

09 添加、删除vlan

思科:vlan ID /no vlan ID
华为:vlan ID /no vlan ID
h3c:vlan ID /no vlan ID

10 将端口接入vlan

思科:switchport access vlan ID
华为:port vlan ID
h3c:port vlan ID

11 查看接口

思科:show interface
华为:display interface
h3c:display interface

12 查看vlan

思科:show vlan ID
华为:display vlan ID
h3c:display vlan ID

13 封装协议

思科:encapsulation
华为:link-protocol
h3c:link-protocol

14 链路聚合

思科:channel-group 1 mode on
华为:port link-aggregation group 1
h3c:port link-aggregation group 1

15 开启三层交换的路由功能

思科:ip routing
华为:默认开启
h3c:默认开启

16 开启接口三层功能

思科:no switchport
华为:不支持
h3c:不支持

17 对跨以太网交换机的VLAN进行动态注册和删除

思科:vtp domain
华为:GVRP
h3c:GVRP

18 stp配置根网桥

思科:spanning-tree vlan ID root primary
华为:stp root primary
h3c:stp root primary

19 配置网桥优先级

思科:spanning-tree vlan ID priority
华为: stp priority priorityNumber
h3c:stp priority priorityNumber

20 查看STP配置

思科:show spanning-tree
华为:display stp brief
h3c:display stp brief

03 路由部分

01 配置默认路由

思科: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

02 配置静态路由

思科:ip route 目标网段+掩码 下一跳
华为:ip route-static 目标网段+掩码 下一跳
h3c:ip route-static 目标网段+掩码 下一跳

03 查看路由表

思科:show ip route
华为:display ip routing-table
h3c:display ip routing-table

04 启用rip、并宣告网段

思科:router rip /network 网段
华为:rip /network 网段
h3c:rip /network 网段

05 启用ospf

思科:router ospf
华为:ospf enable
h3c:ospf enable

06 配置OSPF区域

思科:network ip 反码 area <area-id>
华为:ospf enable area <area-id>
h3c:ospf enable area <area-id>

07 配置RIP V2水平分割

思科:no auto-summary
华为:rip split-horizon
h3c:rip split-horizon

08 查看路由协议

思科:show ip protocol
华为:display ip protocol
h3c:display ip protocol

09 标准访问控制列表

思科:access-list 1-99 permit/deny IP
华为:rule normal permit source IP
h3c:rule normal permit source IP

10 扩展访问控制列表

思科: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

11 配置HSRP组

思科:standby group-number ip virtual-ip
华为:vrrp vrid number virtual-ip
h3c:vrrp vrid number virtual-ip

12 配置HSRP优先级

思科:standby group-number priority
华为:vrrp vrid number priority
h3c:vrrp vrid number priority

13 配置HSRP占先权

思科:standby group-number preempt
华为:vrrp vrid number preempt-mode
h3c:vrrp vrid number preempt-mode

14 配置端口跟踪

思科:standby group-number track
华为:
h3c:

15 配置静态地址转换

思科:ip nat inside source static
华为:nat server global <ip> [port] inside <ip> port [protocol]
h3c:nat server global <ip> [port] inside <ip> port [protocol]

整理:老杨丨10年资深网络工程师,更多网工提升干货,请关注公众号:网络工程师俱乐部

猜你喜欢

转载自blog.csdn.net/SPOTO2021/article/details/131763420