Huawei Cisco Xref Switch CLI PDF
Huawei Cisco Xref Switch CLI PDF
Huawei Cisco Xref Switch CLI PDF
contrast with
CISCO
www.huawei.com
Huawei Enterprise USA, Inc. proprietary. Provided for use by authorized partners or by NDA.
Objectives
Page1
Huawei Enterprise USA, Inc. proprietary. Provided for use by authorized partners or by NDA.
Agenda
1
Abstract
Page2
Huawei Enterprise USA, Inc. proprietary. Provided for use by authorized partners or by NDA.
Abstract
Page3
Huawei Enterprise USA, Inc. proprietary. Provided for use by authorized partners or by NDA.
Agenda
1
Abstract
Page4
Huawei Enterprise USA, Inc. proprietary. Provided for use by authorized partners or by NDA.
Huawei configuration views and Cisco configuration modes are quite similar
Cisco:
Huawei:
You can see that Huawei never have the single configuration mode like Cisco
the system view of Huawei is equivalent to privileged mode plus configuration
mode of Cisco.
Page5
Huawei Enterprise USA, Inc. proprietary. Provided for use by authorized partners or by NDA.
Cisco>show running-configuration
prompt
command
space
Keyword, parameter
Huawei>display current-configuration
Page6
Huawei Enterprise USA, Inc. proprietary. Provided for use by authorized partners or by NDA.
The same to use up cursor key and down cursor key to show the
history commands
The same to use Backspace key to Deletes a character before the cursor
Huawei supports to defining hotkeys, and you can use the command display
hotkey to show the hotkeys in use
Page7
Huawei Enterprise USA, Inc. proprietary. Provided for use by authorized partners or by NDA.
Agenda
1
Abstract
Page8
Huawei Enterprise USA, Inc. proprietary. Provided for use by authorized partners or by NDA.
Most part of Huawei command keywords has the fixed contrast to Cisco, know
about these will help you to learn Huawei command quickly if you have a good
skill on Cisco.
Common command keywords contrast:
Page9
Huawei Enterprise USA, Inc. proprietary. Provided for use by authorized partners or by NDA.
Huawei command display this is a convenient command to show the configuration in the
current view
Page10
Cisco command
<Quidway>
Cisco> enable
Cisco#
Page11
Huawei Enterprise USA, Inc. proprietary. Provided for use by authorized partners or by NDA.
Agenda
1
Abstract
Basic Configuration
Ethernet Configuration
Reliability
QoS
Security
Device Management
Network Management
Page12
Huawei Enterprise USA, Inc. proprietary. Provided for use by authorized partners or by NDA.
Cisco command
<Quidway> system-view
[Quidway] aaa
Page13
Login by console
When login through console port ,please use the following parameter
Parameter
Value
9600
Data bits
Parity check
None
Stop bits
Flow control
None
Page14
Huawei Enterprise USA, Inc. proprietary. Provided for use by authorized partners or by NDA.
Login by Telnet
Huawei command
Cisco command
<Quidway> system-view
Page15
Huawei Enterprise USA, Inc. proprietary. Provided for use by authorized partners or by NDA.
Login by SSH
IP Network
SSH Client
SSH Server
Pre-conditions:
SSH client login the SSH server with the password mode
IP routing is normal between SSH client and SSH Server
Huawei command
Cisco command
<Quidway> system-view
[Quidway] aaa
[Quidway-aaa] local-user Huawei password simple 123456
Page16
Huawei Enterprise USA, Inc. proprietary. Provided for use by authorized partners or by NDA.
Login by SSH
Generate a local key pair on the server
Page17
Huawei Enterprise USA, Inc. proprietary. Provided for use by authorized partners or by NDA.
Cisco command
Login the FTP Server and get the new system software
from the FTP Server
Password: 8031
Cisco# reload
Page18
Huawei Enterprise USA, Inc. proprietary. Provided for use by authorized partners or by NDA.
Cisco command
Page19
Huawei Enterprise USA, Inc. proprietary. Provided for use by authorized partners or by NDA.
NTP Function
NTP Server
NTP Client
172.16.1.1/16
NTP
Switch A
Switch B
Pre-conditions:
Page20
Huawei Enterprise USA, Inc. proprietary. Provided for use by authorized partners or by NDA.
NTP Function
Switch A (Server):
Huawei command
Cisco command
<Quidway_A> system-view
[Quidway_A] ntp-service refclock-master 2
Switch B (Client):
Specify the IP address of the remote NTP server
<Quidway_B> system-view
[Quidway_B] ntp-service unicast-server 172.16.1.1
Page21
Huawei Enterprise USA, Inc. proprietary. Provided for use by authorized partners or by NDA.
Agenda
1
Abstract
Basic Configuration
Ethernet Configuration
Reliability
QoS
Security
Device Management
Network Management
Page22
Huawei Enterprise USA, Inc. proprietary. Provided for use by authorized partners or by NDA.
Auto-negotiation of the
Interfaces
Huawei command
Cisco command
<Quidway> system-view
Page23
Huawei Enterprise USA, Inc. proprietary. Provided for use by authorized partners or by NDA.
Cisco command
<Quidway> system-view
Page24
Huawei Enterprise USA, Inc. proprietary. Provided for use by authorized partners or by NDA.
Cisco command
<Quidway> system-view
Page25
Huawei Enterprise USA, Inc. proprietary. Provided for use by authorized partners or by NDA.
Cisco command
<Quidway> system-view
[Quidway] interface Ethernet0/0/1
[Quidway-Ethernet0/0/1] poe enable
Page26
Huawei Enterprise USA, Inc. proprietary. Provided for use by authorized partners or by NDA.
Switch A
GE1/0/8
Switch B
Huawei command
Cisco command
<Quidway> system-view
Page27
Huawei Enterprise USA, Inc. proprietary. Provided for use by authorized partners or by NDA.
Page28
Cisco command
[Quidway] vlan 2
[Quidway] vlan bacth 2 to 10
Cisco(config)# vlan 2
Cisco(config)# vlan 2-10
[Quidway] vlan 2
[Quidway-vlan2] port GigabitEthernet1/0/1 to GigabitEthernet1/0/2
OR
Page29
Huawei Enterprise USA, Inc. proprietary. Provided for use by authorized partners or by NDA.
DHCP Server
FTP Server
Call Agent
WAN
VLAN-ID =8 LLDP data
Switch
AR
Page30
Huawei Enterprise USA, Inc. proprietary. Provided for use by authorized partners or by NDA.
Cisco command
<Quidway> system-view
[Quidway] vlan 8
[Quidway-vlan-8] quit
Page31
Huawei Enterprise USA, Inc. proprietary. Provided for use by authorized partners or by NDA.
Page32
Huawei Enterprise USA, Inc. proprietary. Provided for use by authorized partners or by NDA.
Root
GE1/0/2
GE1/0/1
Switch B
STP/PVST (Cisco)
Switch D
GE1/0/1
GE1/0/2
Switch C
All switches:
Huawei command
Cisco command
<Quidway> system-view
[Quidway] stp mode stp
[Quidway] stp enable
Page33
Huawei Enterprise USA, Inc. proprietary. Provided for use by authorized partners or by NDA.
Switch A (root):
Configure Switch A as the root of the ring
OR
OR
Page34
Huawei Enterprise USA, Inc. proprietary. Provided for use by authorized partners or by NDA.
Switch B
GE1/0/2
RSTP/Rapid-PVST
Switch D
(Cisco)
GE1/0/2
GE1/0/1
Switch C
All switches:
Huawei command
Cisco command
<Quidway> system-view
[Quidway] stp mode rstp
[Quidway] stp enable
Page35
Huawei Enterprise USA, Inc. proprietary. Provided for use by authorized partners or by NDA.
Switch A (root):
Configure Switch A as the root of the ring
OR
OR
Page36
Huawei Enterprise USA, Inc. proprietary. Provided for use by authorized partners or by NDA.
GE1/0/1
MSTP
Switch B
Switch D
GE1/0/1
GE1/0/2
Switch C
MSTI1 (root switch: Switch A) VLAN 1-10 --> MSTI1
MSTI2 (root switch: Switch C) VLAN 11-20 --> MSTI2
Page37
Huawei Enterprise USA, Inc. proprietary. Provided for use by authorized partners or by NDA.
Cisco command
<Quidway> system-view
[Quidway] stp mode mstp
[Quidway] stp enable
Page38
Huawei Enterprise USA, Inc. proprietary. Provided for use by authorized partners or by NDA.
OR
OR
OR
OR
Page39
Huawei Enterprise USA, Inc. proprietary. Provided for use by authorized partners or by NDA.
BPDU Guard
Huawei command
Cisco command
<Quidway> system-view
OR
Cisco# configure terminal
Cisco(config)# interface GigabitEthernet1/0/1
Cisco(config-if)# spanning-tree bpduguard enable
Page40
Huawei Enterprise USA, Inc. proprietary. Provided for use by authorized partners or by NDA.
Agenda
1
Abstract
Basic Configuration
Ethernet Configuration
Reliability
QoS
Security
Device Management
Network Management
Page41
Huawei Enterprise USA, Inc. proprietary. Provided for use by authorized partners or by NDA.
DLDP/UDLD function
Huawei command
Cisco command
<Quidway> system-view
Page42
Huawei Enterprise USA, Inc. proprietary. Provided for use by authorized partners or by NDA.
Switch A
Area 1
VLANIF 10
192.168.0.1/2
4
VLANIF 10
192.168.0.2/2
4
VLANIF 20
192.168.1.1/2
4
VLANIF 20
192.168.1.2/2
4
Switch B
VLANIF 30
192.168.2.1/2
4
Area 2
VLANIF 30
192.168.2.2/2
4
Switch C
Switch D
Pre-conditions:
OSPF runs on the all Switches, including 3 areas in the AS
Switch A and Switch B as the ABR
Page43
Huawei Enterprise USA, Inc. proprietary. Provided for use by authorized partners or by NDA.
Cisco command
<Quidway_A>system-view
[Quidway_A] interface vlanif 10
[Quidway_A-Vlanif10] ip address 192.168.0.1 255.255.255.0
[Quidway_A-Vlanif10] quit
[Quidway_A] interface vlanif 20
[Quidway_A-Vlanif20] ip address 192.168.1.1 255.255.255.0
[Quidway_A-Vlanif20] quit
Page44
Huawei Enterprise USA, Inc. proprietary. Provided for use by authorized partners or by NDA.
Switch B
Maste
r
Standby
VLANIF 10
209.0.0.2/24
Master
VRRP
VLANIF 10
209.0.0.3/2
4
Page45
Huawei Enterprise USA, Inc. proprietary. Provided for use by authorized partners or by NDA.
Cisco command
<Quidway_A>system-view
[Quidway_A] interface Vlanif 10
[Quidway_A-Vlanif10] ip address 209.0.0.2 255.255.255.0
Page46
Huawei Enterprise USA, Inc. proprietary. Provided for use by authorized partners or by NDA.
<Quidway_B> system-view
[Quidway_B] interface Vlanif 10
[Quidway_B-Vlanif10] ip address 209.0.0.3 255.255.255.0
Page47
Huawei Enterprise USA, Inc. proprietary. Provided for use by authorized partners or by NDA.
VLANIF 10
10.0.0.2/24
Switch B
Switch A
VLANIF 10
10.0.0.1/2
4
RP
VLANIF 20
20.0.0.1/24
VLANIF 20
20.0.0.2/24
PIM-SM
VLANIF 30
30.0.0.1/24
VLANIF 40
40.0.0.1/24
VLANIF 30
30.0.0.2/24
Switch C
VLANIF 40
40.0.0.2/24
IGMP
Switch E
Switch D
Pre-conditions:
Page48
Huawei Enterprise USA, Inc. proprietary. Provided for use by authorized partners or by NDA.
Multicast-PIM SM
Switch A to C:
Huawei command
Cisco command
<Quidway_B> system-view
[Quidway_B] multicast routing-enable
Page49
Huawei Enterprise USA, Inc. proprietary. Provided for use by authorized partners or by NDA.
Multicast-PIM SM
Switch A (RP):
Globally Switch A as RP
[Quidway_A] interface loopback 1
[Quidway_A-loopback1] ip addresss 5.5.5.5 255.255.255.255
[Quidway_A-loopback1] pim sm
[Quidway_A-loopback1] quit
[Quidway_A] pim
[Quidway_A-pim] c-rp loopback1
[Quidway_A-pim] c-bsr loopback1
Globally Switch A as RP
Cisco_A(config)# interface loopback 1
Cisco_A(config-if)# ip address 5.5.5.5 255.255.255.255
Cisco_A(config-if)# ip pim sparse-mode
Cisco_A(config-if)# exit
Cisco_A(config)# ip pim rp-candidate loopback 1
Cisco_A(config)# ip pim bsr-candidate loopback 1
Switch B to C:
Enable IGMP on the on the virtual layer 3 interface
connected to the layer 2 multicast device (e.g. with
Switch B)
[Quidway_B] interface vlanif 40
[Quidway_B-vlanif-40] igmp enable
Page50
Huawei Enterprise USA, Inc. proprietary. Provided for use by authorized partners or by NDA.
Multicast-IGMP Snooping
Switch D to E:
Enter the system view
<Quidway> system-view
[Quidway] vlan 40
[Quidway-vlan40] igmp-snooping enable
Page51
Huawei Enterprise USA, Inc. proprietary. Provided for use by authorized partners or by NDA.
Agenda
1
Abstract
Basic Configuration
Ethernet Configuration
Reliability
QoS
Security
Device Management
Network Management
Page52
Name
Source IP
DSCP
Name
Source IP
DSCP
Stream
10.0.0.1
0~63
Stream
10.0.0.1
60
IP Network
Switch
Page53
Huawei Enterprise USA, Inc. proprietary. Provided for use by authorized partners or by NDA.
Cisco command
<Quidway>system-view
[Quidway] acl 2000
[Quidway -acl-basic-2000] rule permit source 10.0.0.1 0.0.0.0
[Quidway -acl-basic-2000] quit
Page54
Huawei Enterprise USA, Inc. proprietary. Provided for use by authorized partners or by NDA.
Page55
PQ+DRR Scheduling
10M
Internet
10M (COS=5)
Switch
250M(COS=3)
70M
IP Network
Soft Switch
200M(COS=0)
20M
IPTV
VOIP FLOW
Scheduling
Name
queue
Weight
Huawei
Cisco
IPTV FLOW
HSI FLOW
VOIP_FLOW
PQ
PQ
------
IPTV_FLOW
DRR
WFQ
70
GE
HSI_FLOW
DRR
WFQ
20
FE
Page56
Huawei Enterprise USA, Inc. proprietary. Provided for use by authorized partners or by NDA.
PQ+DRR Scheduling
Huawei command
Cisco command
<Quidway> system-view
Page57
Huawei Enterprise USA, Inc. proprietary. Provided for use by authorized partners or by NDA.
PQ+DRR Scheduling
Configure the queue 3 of the fast Ethernet interface as
DRR scheduling, and set the weights of queue 3 to 70
Page58
Huawei Enterprise USA, Inc. proprietary. Provided for use by authorized partners or by NDA.
PQ+DRR Scheduling
Cisco command
Bind traffic behaviors to the traffic classifiers match
the COS value 3 and 0, and transmit the match flow by
WFQ Scheduling
Cisco(config-pmap)# class cisco-queue-3
Cisco(config-pmap-c)# bandwidth percent 70
Cisco(config-pmap-c)# exit
Cisco(config-pmap)# class cisco-queue-0
Cisco(config-pmap-c)# bandwidth percent 20
Cisco(config-pmap-c)# end
Page59
Huawei Enterprise USA, Inc. proprietary. Provided for use by authorized partners or by NDA.
Agenda
1
Abstract
Basic Configuration
Ethernet Configuration
Reliability
QoS
Security
Device Management
Network Management
Page60
Huawei Enterprise USA, Inc. proprietary. Provided for use by authorized partners or by NDA.
Cisco command
<Quidway> system-view
Page61
802.1x authentication
function
Huawei Enterprise USA, Inc. proprietary. Provided for use by authorized partners or by NDA.
Invalid Username
Invalid Password
Stop
802.1x
Intranet
Radius
Server
Valid Username
Valid Password
Permit
Pre-conditions:
IP routing between Switch and Radius Server is normal
The Radius authentication function running on Switch is normal
Page62
802.1x authentication
function
Huawei Enterprise USA, Inc. proprietary. Provided for use by authorized partners or by NDA.
Huawei command
Cisco command
<Quidway>system-view
[Quidway] dot1x
Page63
Huawei Enterprise USA, Inc. proprietary. Provided for use by authorized partners or by NDA.
Cisco command
<Quidway>system-view
[Quidway] acl {access-list-number | name}
[Quidway-acl-number] rule rule-number {deny | permit} accesscondition
[Quidway-acl-number] quit
Page64
Huawei Enterprise USA, Inc. proprietary. Provided for use by authorized partners or by NDA.
Page65
Huawei Enterprise USA, Inc. proprietary. Provided for use by authorized partners or by NDA.
Agenda
1
Abstract
Basic Configuration
Ethernet Configuration
Reliability
QoS
Security
Device Management
Network Management
Page66
Huawei Enterprise USA, Inc. proprietary. Provided for use by authorized partners or by NDA.
Cisco command
Page67
Remote port-mirroring
function
Huawei Enterprise USA, Inc. proprietary. Provided for use by authorized partners or by NDA.
Source
switch
RSPAN
VLAN
GE1/0/2
Intermediate
switch
GE1/0/1
Destination
switch
GE1/0/2
GE1/0/1
RSPAN
VLAN
GE1/0/1
RSPAN
source port
GE1/0/2
RSPAN
destination port
Source switch:
Huawei command
Cisco command
<Quidway> system-view
[Quidway] vlan 900
Page68
Remote port-mirroring
function
Huawei Enterprise USA, Inc. proprietary. Provided for use by authorized partners or by NDA.
Source switch:
Configure the RSPAN VLAN on the Up-link Port
Page69
Remote port-mirroring
function
Huawei Enterprise USA, Inc. proprietary. Provided for use by authorized partners or by NDA.
Intermediate switch:
Create RSPAN VLAN on the system view
<Quidway> system-view
[Quidway] vlan 900
[Quidway-vlan900] quit
Page70
Remote port-mirroring
function
Huawei Enterprise USA, Inc. proprietary. Provided for use by authorized partners or by NDA.
Destination switch :
Create RSPAN VLAN on the system view
<Quidway> system-view
[Quidway] vlan 900
Page71
Huawei Enterprise USA, Inc. proprietary. Provided for use by authorized partners or by NDA.
Agenda
1
Abstract
Basic Configuration
Ethernet Configuration
Reliability
QoS
Security
Device Management
Network Management
Page72
Huawei Enterprise USA, Inc. proprietary. Provided for use by authorized partners or by NDA.
Radius function
Huawei command
Cisco command
<Quidway>system-view
Page73
Huawei Enterprise USA, Inc. proprietary. Provided for use by authorized partners or by NDA.
Radius function
Configure authentication and accounting schemes,
then Identify authentication and accounting mode as
radius to the schemes
[Quidway-aaa] authentication-scheme Huawei
[Quidway-aaa-authen-Huawei] authentication-mode radius
[Quidway-aaa-authen-Huawei] quit
[Quidway-aaa] accounting-scheme Huawei
[Quidway-aaa-accounting-Huawei] accounting-mode radius
[Quidway-aaa-accounting-Huawei] quit
Page74
Huawei Enterprise USA, Inc. proprietary. Provided for use by authorized partners or by NDA.
HWTACACS function
Huawei command
Cisco command
<Quidway>system-view
Page75
Huawei Enterprise USA, Inc. proprietary. Provided for use by authorized partners or by NDA.
HWTACACS function
Configure authentication, authorization and accounting
schemes, then Identify authentication, authorization
and accounting mode as HWTACAS to the schemes
[Quidway-aaa] authentication-scheme Huawei
[Quidway-aaa-authen-Huawei] authentication-mode hwtacacs
[Quidway-aaa-authen-Huawei] quit
[Quidway-aaa] authorization-scheme Huawei
[Quidway-aaa-author-Huawei] authorization-mode hwtacacs
[Quidway-aaa-author-Huawei] quit
[Quidway-aaa] accounting-scheme Huawei
[Quidway-aaa-accounting-Huawei] accounting-mode hwtacacs
[Quidway-aaa-accounting-Huawei] quit
Page76
Huawei Enterprise USA, Inc. proprietary. Provided for use by authorized partners or by NDA.
Web management
Intranet
Web
Server
Pre-conditions:
IP routing between Switch and Web management Server is normal
Page77
Huawei Enterprise USA, Inc. proprietary. Provided for use by authorized partners or by NDA.
Web management
Huawei command
Cisco command
<Quidway>system-view
[Quidway] http server enable
<Quidway> system-view
[Quidway] aaa
[Quidway-aaa] local-user Huawei password simple 123456
Page78
Huawei Enterprise USA, Inc. proprietary. Provided for use by authorized partners or by NDA.
Cisco command
<Quidway>system-view
[Quidway] snmp-agent
Page79
Huawei Enterprise USA, Inc. proprietary. Provided for use by authorized partners or by NDA.
SNMP v3 function
Huawei command
Cisco command
<Quidway>system-view
[Quidway] snmp-agent
Page80
Huawei Enterprise USA, Inc. proprietary. Provided for use by authorized partners or by NDA.
SNMP Trap
Huawei command
Cisco command
<Quidway>system-view
Page81
Thank you
www.huawei.com