H3C 与 Cisco 交换机/路由器常用命令对比

H3C 与 Cisco 交换机/路由器常用命令对比


H3C 与 Cisco 交换机/路由器常用命令对比

基本配置命令

功能 H3C 命令 Cisco 命令
进入配置模式 system-view configure terminal
查看当前配置 display current-configuration show running-config
保存配置 save write memory 或 copy running-config startup-config
重启设备 reboot reload
撤销命令 undo no

接口与 VLAN 配置

功能 H3C 命令 Cisco 命令
进入接口 interface GigabitEthernet 1/0/1 interface GigabitEthernet 1/0/1
配置 IP ip address 192.168.1.1 255.255.255.0 ip address 192.168.1.1 255.255.255.0
关闭/开启接口 shutdown / undo shutdown shutdown / no shutdown
创建 VLAN vlan 10 vlan 10
接口加入 VLAN port access vlan 10 switchport access vlan 10
设置接口类型 port link-type access switchport mode access

链路聚合

功能 H3C 命令 Cisco 命令
配置聚合组 link-aggregation group 1 interface port-channel 1
将接口加入聚合组 port link-aggregation group 1 interface range gigabitEthernet 1/0/1-2
channel-group 1 mode active
启用 LACP lacp enable channel-group 1 mode active

路由配置

功能 H3C 命令 Cisco 命令
配置静态路由 ip route-static 0.0.0.0 0.0.0.0 192.168.1.254 ip route 0.0.0.0 0.0.0.0 192.168.1.254
启用 OSPF ospf 1 router ospf 1
配置 OSPF 区域 area 0 network 192.168.1.0 0.0.0.255 area 0
宣告网络 network 192.168.1.0 0.0.0.255 area 0 network 192.168.1.0 0.0.0.255 area 0

安全与远程管理

功能 H3C 命令 Cisco 命令
配置远程登录 user-interface vty 0 4 line vty 0 4
设置密码 set authentication password simple admin123 password admin123
启用 telnet telnet server enable transport input telnet
启用 SSH ssh server enable ip domain-name cisco.com
crypto key generate rsa
ip ssh version 2
查看登录用户 display users show users

监控与排障

功能 H3C 命令 Cisco 命令
查看接口状态 display interface GigabitEthernet 1/0/1 show interfaces gigabitEthernet 1/0/1
测试连通性 ping 192.168.1.1 ping 192.168.1.1
路由跟踪 tracert 8.8.8.8 traceroute 8.8.8.8
查看日志 display logbuffer show logging
查看 CPU 使用率 display cpu-usage show processes cpu


转载请注明出处:  https://www.cntworld.cn
智能工控 » H3C 与 Cisco 交换机/路由器常用命令对比

发表回复

提供最优质的资源集合

立即查看 了解详情
文章加载时间:2.2449 秒