一、基础设置
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
二、交换部分
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 设置特权口令
思科:enable 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 /undo vlan ID
H3C:vlan ID /undo 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
三、路由部分
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
华为:ospf enable area
h3c:ospf enable area
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 [port] inside port [protocol]
h3c:nat server global [port] inside port [protocol
思科、华为、H3C配置命令对比
于 2024-06-12 14:07:50 首次发布