Basic command:
Exchange command:
Routing command:
Table of contents
-
1. Basic commands
-
1. Cancel and close the current setting
-
2. Display view
-
3. Return to superior
-
4. Set the hostname
-
5. Enter global mode
-
6. Delete files
-
7. Restart
-
8. Save the current configuration
-
9. Create user
-
10. Prohibit and close the port
-
11. Display the current system version
-
12. View the saved configuration
-
13. Display the current configuration
-
14. Cancel all debug commands
-
15. Delete configuration
-
16. Back to user view
-
17. Log out
-
18. Specify information center configuration information
-
19. Enter line configuration (user interface) mode
-
20. Start configuration
-
21. Current configuration
-
22. Host name corresponds to ip address
-
-
2. Exchange commands
-
1. Configure plaintext password
-
2. Enter the interface
-
3. Enter vlan to configure vlan management address
-
4. Define groups of multiple ports
-
5. Set a privileged password
-
6. Configure interface status
-
7. Configure port speed
-
8. configure trunk
-
9. Add and delete vlan
-
10. Connect the port to vlan
-
11. View interface
-
12. View vlan
-
13. Encapsulation protocol
-
14. Link Aggregation
-
15. Enable the routing function of Layer 3 switching
-
16. Enable the Layer 3 function of the interface
-
17. Dynamic registration and deletion of VLANs across Ethernet switches
-
18.stp configuration root bridge
-
19. Configure bridge priority
-
20. View STP configuration
-
-
3. Routing command
-
1. Configure the default route
-
2. Configure static routing
-
3. Check the routing table
-
4. Enable rip and declare the network segment
-
5. Enable ospf
-
6. Configure OSPF area
-
7. Configure RIPV2 split horizon
-
8. Check the routing protocol
-
9. Standard Access Control List
-
10. Extended Access Control List
-
11. Configure HSRP group
-
12. Configure HSRP priority
-
13. Configure HSRP Preemption
-
14. Configure port tracking
-
15. Configure static address translation
-
1. Basic commands
1. Cancel and close the current setting
cisco
no
Huawei
undo
H3C
undo
2. Display view
cisco
show
Huawei
display
H3C
display
3. Return to superior
cisco
exit
Huawei
quit
H3C
quit
4. Set the hostname
cisco
hostname
Huawei
sysname
H3C
sysname
5. Enter global mode
cisco
en, config terminal
Huawei
system-view
H3C
system-view
6. Delete files
cisco
delete
Huawei
delete
H3C
delete
7. Restart
cisco
reload
Huawei
reboot
H3C
reboot
8. Save the current configuration
cisco
write
Huawei
save
H3C
save
9. Create user
cisco
username
Huawei
local-user
H3C
local-user
10. Prohibit and close the port
cisco
shutdown
Huawei
shutdown
H3C
shutdown
11. Display the current system version
cisco
show version
Huawei
display version
H3C
display version
12. View the saved configuration
cisco
show startup-config
Huawei
display saved-configuration
H3C
display saved-configuration
13. Display the current configuration
cisco
show running-config
Huawei
display current-configuration
H3C
display current-configuration
14. Cancel all debug commands
cisco
no debug all
Huawei
ctrl+d
H3C
ctrl+d
15. Delete configuration
cisco
erase startup-config
Huawei
reset saved-configuration
H3C
reset saved-configuration
16. Back to user view
cisco
end
Huawei
return
H3C
return
17. Log out
cisco
exit
Huawei
logout
H3C
logout
18. Specify information center configuration information
cisco
logging
Huawei
info-center
H3C
info-center
19. Enter line configuration (user interface) mode
cisco
line
Huawei
user-interface
H3C
user-interface
20. Start configuration
cisco
start-config
Huawei
saved-configuration
H3C
saved-configuration
21. Current configuration
cisco
running-config
Huawei
current-configuration
H3C
current-configuration
22. Host name corresponds to ip address
cisco
host
Huawei
ip host
H3C
ip host
2. Exchange commands
1. Configure plaintext password
cisco
enable password
Huawei
set authentication password simple
H3C
set authentication password simple
2. Enter the interface
cisco
interface type/number
Huawei
interface type/number
H3C
interface type/number
3. Enter vlan to configure vlan management address
cisco
interface vlan 1
Huawei
interface vlan 1
H3C
interface vlan 1
4. Define groups of multiple ports
cisco
interface rang
Huawei
interface ethID to ID
H3C
interface ethID to ID
5. Set a privileged password
cisco
enabl esecret
Huawei
super password
H3C
super password
6. Configure interface status
cisco
duplex (half|full|auto)
Huawei
duplex (half|full|auto)
H3C
duplex (half|full|auto)
7. Configure port speed
cisco
speed (10/100/1000)
Huawei
speed (10/100/1000)
H3C
speed (10/100/1000)
8. configure trunk
cisco
switchport mode trunk
Huawei
port link-type trunk
H3C
port link-type trunk
9. Add and delete vlan
cisco
vlan ID /no vlan ID
Huawei
vlan batch ID /undo vlan batch ID
H3C
vlan batch ID /undo vlan batch ID
10. Connect the port to vlan
cisco
switchport access vlan
Huawei
port default vlan ID
H3C
port acces vlan ID
11. View interface
cisco
show interface
Huawei
display interface
H3C
display interface
12. View vlan
cisco
show vlan ID
Huawei
display vlan ID
H3C
display vlan ID
13. Encapsulation protocol
cisco
encapsulation
Huawei
link-protocol
H3C
link-protocol
14. Link Aggregation
cisco
channel-group 1 mode on
Huawei
port link-aggregation group 1
H3C
port link-aggregation group 1
15. Enable the routing function of Layer 3 switching
cisco
ip routing
Huawei
默认开启
H3C
默认开启
16. Enable the Layer 3 function of the interface
cisco
no switchport
Huawei
不支持
H3C
不支持
17. Dynamic registration and deletion of VLANs across Ethernet switches
cisco
vtp domain
Huawei
GVRP
H3C
GVRP
18.stp configuration root bridge
cisco
spanning-tree vlan ID root primary
Huawei
stp instance id root primary
H3C
stp instance id root primary
19. Configure bridge priority
cisco
spanning-tree vlan ID priority
Huawei
stp primary vlaue
H3C
stp primary vlaue
20. View STP configuration
cisco
show spanning-tree
Huawei
dis stp brief
H3C
dis stp brief
3. Routing command
1. Configure the default route
cisco
ip route 0.0.0.0 0.0.0.0
Huawei
ip route-static 0.0.0.0 0.0.0.0
H3C
ip route-static 0.0.0.0 0.0.0.0
2. Configure static routing
cisco
ip route 目标网段 + 掩码 下一跳
Huawei
ip route-static 目标网段 + 掩码 下一跳
H3C
ip route-static 目标网段 + 掩码 下一跳
3. Check the routing table
cisco
show ip route
Huawei
display ip routing-table
H3C
display ip routing-table
4. Enable rip and declare the network segment
cisco
router rip /network 网段
Huawei
rip /network 网段
H3C
rip /network 网段
5. Enable ospf
cisco
router ospf
Huawei
ospf
H3C
ospf
6. Configure OSPF area
cisco
network ip 反码 area <area-id>
Huawei
area <area-id>
H3C
area <area-id>
7. Configure RIPV2 split horizon
cisco
no auto-summary
Huawei
rip split-horizon
H3C
rip split-horizon
8. Check the routing protocol
cisco
show ip protocol
Huawei
display ip protocol
H3C
display ip protocol
9. Standard Access Control List
cisco
access-list 1-99 permit/deny IP
Huawei
rule id permit source IP
H3C
rule id permit source IP
10. Extended Access Control List
cisco
access-list 100-199 permit/deny protocol source IP + 反码 destination IP + 反码 operator operan
Huawei
rule {normal|special}{permit|deny}{tcp| udp}source {<ip wild>|any}destination <ip wild>|any}[operate]
H3C
rule {normal|special}{permit|deny}{tcp| udp}source {<ip wild>|any}destination <ip wild>|any}[operate]
11. Configure HSRP group
cisco
standby group-number ip virtual-ip
Huawei
vrrp vrid number virtual-ip
H3C
vrrp vrid number virtual-ip
12. Configure HSRP priority
cisco
standby group-number priority
Huawei
vrrp vrid number priority
H3C
vrrp vrid number priority
13. Configure HSRP Preemption
cisco
standby group-number preempt
Huawei
vrrp vrid number preempt-mode
H3C
vrrp vrid number preempt-mode
14. Configure port tracking
cisco
standby group-number track
Huawei
无
H3C
无
15. Configure static address translation
cisco
ip nat inside source static
Huawei
nat server global <ip> [port] inside <ip> port [protocol]
H3C
nat server global <ip> [port] inside <ip> port [protocol]