You are on page 1of 39

Cisco vs Huawei Commands

Cisco Huawei
EXEC mode user view

traceroute tracert

terminal length 0 screen-length 0 temporary

show display

show version display version

show history-command display history-command

show interfaces display interface

show ip interface display ip interface

show ip route display ip routing-table

show ip bgp display bgp routing-table

show clock display clock

show flash dir flash:

show logging display logbuffer

show snmp display snmp-agent statistics

show users display users

show tech-support display diagnostic-information

write terminal, 
display current-configuration
show running-config

more nvram:startup-config, 
display saved-configuration
show startup-config

write erase reset saved-configuration

write memory, 
save
copy running-config startup-config

clear reset

clear counters reset counters interface

clear interface reset counters interface

clear access-list counters reset acl counter all


no undo

debug / no debug debugging / undo debugging

reload reboot

enable super

disable super 0

erase delete

exit quit

configure terminal system-view

configuration mode system view

end return

snmp-server snmp-agent

hostname sysname

router bgp bgp

router ospf ospf

router rip rip

shutdown / no shutdown shutdown / undo shutdown

Contents
Cisco Vs Huawei CLI Commands
Cisco Vs Huawei CLI 1 – (Basic Commands) First Page
Cisco Vs Huawei CLI 2 – (Show and Display Commands)
Cisco Vs Huawei CLI 3 – (Configuring Passwords)
Cisco Vs Huawei CLI 4 – (Configuring an IP Address)
Cisco Vs Huawei CLI 5 – (Configuring a Serial Interface)
Cisco Vs Huawei CLI 6 – (Take Backup/Restore IOS/VRP-OS)
Cisco Vs Huawei CLI 7 – (Configuring a Static Route)
Cisco Vs Huawei CLI 8 – (Configuring RIP)
Cisco Vs Huawei CLI 9 – (Configuring OSPF)
Cisco Vs Huawei CLI 10–1 (Configuring ACL)
Cisco Vs Huawei CLI 11 – (Configuring Static NAT)
Cisco Vs Huawei CLI 12 – (Configuring NAT Overloading & PAT)
Cisco Vs Huawei CLI 13 – (Configuring VLANs)
Cisco Vs Huawei CLI 14-1 (Configuring Access Ports)
Cisco Vs Huawei CLI 14-2 (Configuring Trunk Ports)
Cisco Vs Huawei CLI 15 – (Configuring Inter-VLAN Routing)
Cisco Vs Huawei CLI 16 – (Configuring IPv6)
Cisco Vs Huawei CLI 17 – (Configuring IPv6 Static Routing)
Cisco Vs Huawei CLI 18 – (Configuring RIP Next Generation)
Cisco Vs Huawei CLI 19 – (Configuring OSPFv3)
Cisco Vs Huawei CLI 20-1 (Configuring Frame-Relay – Dynamic Mapping)
Cisco Vs Huawei CLI 20-2 (Configuring Frame-Relay – Static Mapping)
CISCO
User Mode
Enable Mode
Global Configuration Mode
Interface Mode
Show
Exit
End
Ctrl + Z
Ctrl + A
Ctrl + E
Ctrl + U
Ctrl + P
Ctrl + N
No

Hostname
Traceroute
Ping
Encapsulation
Clock Rate
NetworksHeaven# copy running-config startup-config
OR   write memory
NetworksHeaven# write erase
NetworksHeaven# reload
NetworksHeaven# clock set 10:15:20 01 Oct 2014
NetworksHeaven# configure terminal
NetworksHeaven(config)#
NetworksHeaven(config)# banner motd $THIS IS BANNER$

Contents
HUAWEI
User View
System View
Interface View

Display
Quit
Return
Ctrl + Z
Ctrl + A
Ctrl + E
Ctrl + U
Ctrl + P
Ctrl + N
Undo

Sysname
Tracert
Ping
Link-protocol
Baudrate

<NetworksHeaven> save

<NetworksHeaven> reset saved-configuration


<NetworksHeaven> reboot
<NetworksHeaven> clock datetime 10:15:20 2014-10-01
<NetworksHeaven>  system-view
[NetworksHeaven]
[NetworksHeaven] header  shell  information $THIS IS BANNER$
CISCO
NetworksHeaven# show ip interface brief
NetworksHeaven# show interface serial 1/0/0
NetworksHeaven# show version
NetworksHeaven# show history
NetworksHeaven# show running-config
NetworksHeaven# show startup-config
NetworksHeaven# show flash
NetworksHeaven# show users
NetworksHeaven# show line
NetworksHeaven# show clock

CISCO
NetworksHeaven# Show interface FastEthernet 0/0
NetworksHeaven# Show ip interface FastEthernet 0/0
NetworksHeaven# show running-config interface FastEthernet 0/0
NetworksHeaven# show ip route
NetworksHeaven# show ip route   rip
NetworksHeaven# show ip  protocols
NetworksHeaven# show ip ospf interface serial 1/0
NetworksHeaven# show ip ospf neighbor

CISCO
NetworksHeaven# Show access-list
NetworksHeaven# Show access-list 10
NetworksHeaven# show ip nat  translations
NetworksHeaven# show  mac  address-table
NetworksHeaven# show   vlan
NetworksHeaven# show   vlan  id  1
NetworksHeaven# show   interface   status
NetworksHeaven# show  spanning-tree

CISCO
NetworksHeaven# Show  ipv6 interface brief
NetworksHeaven# Show   ipv6  route
NetworksHeaven# show   frame-relay   map
NetworksHeaven# show  ip   bgp   neighbor
NetworksHeaven# show bgp   ipv4 unicast summary
NetworksHeaven# show bgp   ipv6  unicast summary
NetworksHeaven# show bgp  vpnv4 unicast all  summary
NetworksHeaven# show bgp  vpnv6 unicast all summary

Contents
HUAWEI
<NetworksHeaven> display ip interface brief
<NetworksHeaven> display interface serial 1/0/0
<NetworksHeaven> display version
<NetworksHeaven> display history-command
<NetworksHeaven> display  current-configuration
<NetworksHeaven> display saved-configuration
<NetworksHeaven> dir
<NetworksHeaven> display users
<NetworksHeaven> display  user-interface
<NetworksHeaven> display  clock

HUAWEI
<NetworksHeaven> Display interface FastEthernet 0/0
<NetworksHeaven> Display ip interface FastEthernet 0/0
<NetworksHeaven> display current-configuration interface FastEthernet0/0
<NetworksHeaven> display ip routing-table
<NetworksHeaven> display ip routing-table  protocol rip
<NetworksHeaven> display   rip
<NetworksHeaven> display  ospf interface serial 1/0
<NetworksHeaven> display  ospf  peer

HUAWEI
<NetworksHeaven> Display acl all
<NetworksHeaven> Display acl  2001
<NetworksHeaven> display  nat  session all
<NetworksHeaven> display  mac-address
<NetworksHeaven> display   vlan
<NetworksHeaven> display   vlan   1
<NetworksHeaven> display    port   vlan
<NetworksHeaven> display    stp

HUAWEI
<NetworksHeaven> Display ipv6  interface  brief
<NetworksHeaven> Display  ipv6 routing-table
<NetworksHeaven> display  fr  map-info
<NetworksHeaven> display  bgp   peer
<NetworksHeaven> display   bgp   routing-table
<NetworksHeaven> display bgp ipv6 routing-table
<NetworksHeaven> display bgp  vpnv4 all  routing-table
<NetworksHeaven> display bgp  vpnv6 all  routing-table
Cisco Vs Huawei CLI 3 – (Configuring Passwords)
October 15, 2014NetworksHeavenNo CommentsCisco Vs Huawei CLI

When a user logs in to the router by using the console port, Telnet, or SSH, the system manages the session between the user and the router o
In this article, our aim is to configure Console User Interface so that user is required to enter the password before accessing the router via Co
CISCO
line console 0
password CISCO
login

line vty 0 4
password CISCO
login

privilege level 15
HUAWEI
user-interface con 0
set authentication password simple HUAWEI
authentication-mode password

user-interface vty 0 4
set authentication password simple HUAWEI
authentication-mode password

user privilege level 15


NOTE: The Router provides three authentication modes: AAA, password, and non-authentication.
For Console user-interface : By default, the password is not required to access a Router via Console because the authentication mode is se
For Console vty-interface : The password is required to access a Router via Telnet because the  authentication mode is set to “password”

Contents
Cisco Vs Huawei CLI 4 – (Configuring an IP Address)
October 15, 2014NetworksHeavenNo CommentsCisco Vs Huawei CLI

NOTE: By default, all interfaces of a Router are in down state. For a link to work properly, its Physical and Protocol status should be in up a
CISCO
NetworksHeaven# configure terminal
NetworksHeaven(config)# interface FastEthernet 0/0
NetworksHeaven(config-if)# ip address 192.168.1.1 255.255.255.0
NetworksHeaven(config-if)# no shutdown

NetworksHeaven(config-if)# exit
HUAWEI
<NetworksHeaven> system-view
[NetworksHeaven] interface  FastEthernet 0/0
[NetworksHeaven-FastEthernet0/0] ip address  192.168.1.1   24
[NetworksHeaven-FastEthernet0/0] undo shutdown

[NetworksHeaven-FastEthernet0/0] quit

Contents
Cisco Vs Huawei CLI 5 – (Configuring a Serial Interface)
October 15, 2014NetworksHeavenNo CommentsCisco Vs Huawei CLI

In this article, we will learn about configuring a serial interface on Cisco and Huawei devices. Configuring a synchronous serial interface inc
CISCO
NetworksHeaven> enable
NetworksHeaven# configure terminal
NetworksHeaven(config)# interface serial 1/0/0
NetworksHeaven(config-if)# ip address 1.1.1.1 255.0.0.0
NetworksHeaven(config-if)# encapsulation ppp
NetworksHeaven(config-if)# clock rate 64000
NetworksHeaven(config-if)# no shutdown

NetworksHeaven(config-if)# exit
HUAWEI
<NetworksHeaven> system-view
[NetworksHeaven] interface  Serial 1/0/0
[NetworksHeaven -Serial1/0/0] ip address  1.1.1.1    8
[NetworksHeaven -Serial1/0/0] link-protocol ppp
[NetworksHeaven -Serial1/0/0] baudrate  64000
[NetworksHeaven -Serial1/0/0] undo shutdown
[NetworksHeaven -Serial1/0/0] quit

[NetworksHeaven]

Contents
a synchronous serial interface includes setting physical and link layer parameters.
Cisco Vs Huawei CLI 6 – (Take Backup/Restore IOS/VRP-OS)
October 18, 2014NetworksHeavenNo CommentsCisco Vs Huawei CLI

In this article, we will learn about taking backup of operating systems or image files of CISCO and Huawei Devices. The Router connects to
CISCO
BACKING UP the IOS file from the FLASH into the TFTP Server
NetworksHeaven# copy  flash  tftp
Source filename []? c2500-i-l.121-27b.bin
Address or name of remote host []? 10.1.1.1

Destination filename [c2500-i-l.121-27b.bin]?


Restoring the IOS file from the TFTP Server into the FLASH
NetworksHeaven# copy tftp flash
Proceed? [confirm]
Address or name of remote host [10.1.1.1]? 10.1.1.1
Source filename [c2500-i-l.121-27b.bin]?
Destination filename [c2500-i-l.121-27b.bin]? c2500

Accessing tftp://10.1.1.1/c2500-i-l.121-27b.bin…
HUAWEI
BACKING UP the VRP-OS file from the FLASH into the TFTP Server
<NetworksHeaven>  tftp  10.1.1.1   put   flash:/AR1220-V200R001C01SPC500.cc     VRP-OS.cc
Restoring the VRP-OS file from the TFTP Server into the FLASH
<NetworksHeaven> tftp  10.1.1.1  get   VRP-OS.cc   flash:/AR1220.cc
Info: Transfer file in binary mode.

Downloading the file from the remote TFTP server. Please wait…

Contents
Cisco Vs Huawei CLI 7 – (Configuring a Static Route)
October 18, 2014NetworksHeavenNo CommentsCisco Vs Huawei CLI

Static routes are special routes that network administrators must manually configure. On a simple network
topology, you only need to configure static routes so that the network can run properly. Properly using static
routes improves the network performance and provides the guaranteed bandwidth for important applications.

The disadvantage of static routes is that if a fault occurs on the network or the network topology changes, static
routes cannot automatically change and must be changed manually by the administrator.

CISCO
NetworksHeaven> enable
NetworksHeaven# configure terminal
NetworksHeaven(config)# ip route 200.100.100.0   255.255.255.0   1.1.1.2 
Useful Commands
NetworksHeaven# show ip route
HUAWEI
<NetworksHeaven> system-view
[NetworksHeaven]  ip  route-static  200.100.100.0  255.255.255.0  1.1.1.2 
Useful Commands
<NetworksHeaven> display ip routing-table

Contents
Cisco Vs Huawei CLI 8 – (Configuring RIP)
October 18, 2014NetworksHeavenNo CommentsCisco Vs Huawei CLI

The Routing Information Protocol (RIP) is a simple Interior Gateway Protocol (IGP). RIP
is mainly used on small-scale networks such as campus networks and simple regional
networks. RIP uses the distance-vector routing algorithm and exchanges routing
information by using User Datagram Protocol (UDP) packets through port 520.

RIP uses the hop count to measure the distance to the destination. The distance is called
the routing metric. In RIP, the hop count from a router to its directly connected network is
0, and the hop count from a router to a network, which can be reached through another
router, is 1. To speed up route convergence, RIP defines the cost as an integer that ranges
from 0 to 15. If the hop count is equal to or exceeds 16, the destination network or host is
unreachable because the path is considered to have an infinite metric. It is this limitation
to the hop count that makes RIP

inapplicable to large-scale networks.


RIP has two versions:
1) RIPv1
2) RIPv2

RIPv1 is a classful routing protocol, whereas RIPv2 is a classless routing protocol. In


RIPv2, address 224.0.0.9 is the multicast address of a RIP router.

CISCO
NetworksHeaven> enable
NetworksHeaven# configure terminal
NetworksHeaven(config)# router rip
NetworksHeaven(config-router)# version 2
NetworksHeaven(config-router)# network 1.0.0.0
NetworksHeaven(config-router)# network 2.0.0.0
NetworksHeaven(config-router)# distance 75

NetworksHeaven(config-router)# end
HUAWEI
<NetworksHeaven> system-view
[NetworksHeaven]  rip  1
[NetworksHeaven-rip-1] version 2
[NetworksHeaven-rip-1] network  1.0.0.0
[NetworksHeaven-rip-1] network  2.0.0.0
[NetworksHeaven-rip-1] preference 75

[NetworksHeaven-rip-1] return

Contents
Cisco Vs Huawei CLI 9 – (Configuring OSPF)
October 18, 2014NetworksHeavenNo CommentsCisco Vs Huawei CLI

OSPF is a link-state IGP. At present, OSPFv2 is intended for IPv4. Defined by the Internet
Engineering Task Force (IETF), the Open Shortest Path First (OSPF) protocol is an Interior
Gateway Protocol (IGP) implemented on the basis of the link status.

OSPF has the following features:

Wide applications
OSPF is applicable to networks of various sizes and even to the network consisting of hundreds of
routers.

Fast convergence

Once the network topology changes, Update packets are transmitted to synchronize the link state
databases (LSDBs) of all the routers within the Autonomous System (AS).

Loop-free
According to the collected link status, OSPF calculates routes with the shortest path tree algorithm.
This algorithm ensures the generation of loop-free routes.
Area division

An AS can be divided into different areas to facilitate AS management. After the area partition, an
LSDB stores routing information only of the local area. The reduce of LSDB size dramatically
reduces memory and CPU usage. In addition, less bandwidth is consumed because of the decrease
in routing information transmitted within the AS.

Equal-cost routes
OSPF supports multiple equal-cost routes to the same destination.
Routing hierarchy

Four types of routing are available. They are listed in the descending order of priority:
intraarea routes, inter-area routes, Type 1 external routes, and Type 2 external routes.

Authentication

Area-based and interface-based packet authentication guarantees the security of packet interaction.

Multicast

Multicast packets are transmitted only on certain types of links to reduce the interference for some
devices.

CISCO
NetworksHeaven(config)# router ospf 1
NetworksHeaven(config-router)# network 1.0.0.0   0.255.255.255   area 0
NetworksHeaven(config-router)# network 200.100.100.0   0.0.0.255   area 0
NetworksHeaven(config-router)# end 
Useful Commands
NetworksHeaven# show ip ospf interface Serial 1/0
NetworksHeaven# show ip ospf
NetworksHeaven# show ip ospf neighbor

NetworksHeaven# show ip route ospf


HUAWEI
[NetworksHeaven] ospf 1
[NetworksHeaven-ospf-1] area  0
[NetworksHeaven-ospf-1-area-0.0.0.0] network 1.0.0.0  0.255.255.255
[NetworksHeaven-ospf-1-area-0.0.0.0] network 200.100.100.0  0.0.0.255
[NetworksHeaven-ospf-1-area-0.0.0.0] return 
Useful Commands
<NetworksHeaven> display ospf interface Serial 1/0
<NetworksHeaven> display ospf 1 brief
<NetworksHeaven> display ospf peer

<NetworksHeaven> display ip routing-table protocol ospf

Contents
Cisco Vs Huawei CLI 10–1 (Configuring Standard & Basic ACL)
October 18, 2014NetworksHeavenNo CommentsCisco Vs Huawei CLI

An ACL is composed of a list of rules. Each rule contains a permit or deny clause. These rules are defined to use information in packets to cl
TASK: Deny all traffic from host 1.1.1.1. All traffic from other sources are allowed.
CISCO
NetworksHeaven(config)#  access-list   10  deny   1.1.1.1  0.0.0.0
NetworksHeaven(config)#  access-list   10  permit    any
NetworksHeaven(config)# interface Serial 1/0/0
NetworksHeaven(config-if)# ip access-group 10 in

NetworksHeaven(config-if)# end
Useful Commands
NetworksHeaven# show access-lists

NetworksHeaven# show access-lists 10


HUAWEI
[NetworksHeaven] acl  2001
[NetworksHeaven-acl-basic-2001]  rule  permit  source  1.1.1.1  0.0.0.0
[NetworksHeaven-acl-basic-2001] quit
[NetworksHeaven] traffic classifier tc
[NetworksHeaven-classifier-tc] if-match  acl  2001
[NetworksHeaven-classifier-tc] quit
[NetworksHeaven] traffic behavior  tb
[NetworksHeaven-behavior-tb] deny
[NetworksHeaven-behavior-tb] quit
[NetworksHeaven] traffic policy  tp
[NetworksHeaven -trafficpolicy-tp]  classifier  tc  behavior  tb
[NetworksHeaven -trafficpolicy-tp] quit
[NetworksHeaven ]interface Serial 1/0/0
[NetworksHeaven-Serial1/0/0] traffic-policy  tp  inbound

[NetworksHeaven-Serial1/0/0] return
Useful Commands
NetworksHeaven> display acl  all
<NetworksHeaven> display acl  2001
<NetworksHeaven> display  traffic  classifier  user-defined   tc
<NetworksHeaven> display  traffic  behavior  user-defined  tb

<NetworksHeaven>  display   traffic   policy   user-defined   tp

Cisco Vs Huawei CLI 10–2 (Configuring Extended & Advanced ACL)


October 18, 2014NetworksHeavenNo CommentsCisco Vs Huawei CLI

TASK: Deny only telnet access from source 1.1.1.1 to destination 1.1.1.2


CISCO
NetworksHeaven(config)# access-list 110 deny tcp 1.1.1.1 0.0.0.0 1.1.1.2 0.0.0.0 eq 23
NetworksHeaven(config)# access-list 110 permit ip any any
NetworksHeaven(config)# interface Serial 1/0/0
NetworksHeaven(config-if)# ip access-group 110 in

NetworksHeaven(config-if)# end
Useful Commands
NetworksHeaven# show access-lists

NetworksHeaven# show access-lists 110


HUAWEI
[NetworksHeaven] acl 3001
[NetworksHeaven-acl-adv-3001] rule permit tcp source 1.1.1.1 0.0.0.0 destination 1.1.1.2 0.0.0.0 destination-port eq telnet
[NetworksHeaven-acl-adv-3001] quit

[NetworksHeaven] traffic classifier tc


[NetworksHeaven-classifier-tc] if-match acl 3001
[NetworksHeaven-classifier-tc] quit
[NetworksHeaven] traffic behavior tb
[NetworksHeaven-behavior-tb] deny
[NetworksHeaven-behavior-tb] quit
[NetworksHeaven] traffic policy tp
[NetworksHeaven -trafficpolicy-tp] classifier tc behavior tb
[NetworksHeaven -trafficpolicy-tp] quit
[NetworksHeaven ]interface Serial 1/0/0
[NetworksHeaven-Serial1/0/0] traffic-policy tp inbound

[NetworksHeaven-Serial1/0/0] return
Useful Commands
<NetworksHeaven> display acl all
<NetworksHeaven> display acl 3001
<NetworksHeaven> display traffic classifier user-defined tc
<NetworksHeaven> display traffic behavior user-defined tb

<NetworksHeaven> display traffic policy user-defined tp

Contents
Cisco Vs Huawei CLI 11 – (Configuring Static NAT)
October 18, 2014NetworksHeavenNo CommentsCisco Vs Huawei CLI

A private network address, which is also called a private address, is the IP address of an internal network or host. A public network
address, which is also called a public address, is a unique IP address on the Internet. The Internet Assigned Number Authority (IANA)
defines the following IP addresses as private addresses:

Class A: 10.0.0.0-10.255.255.255
Class B: 172.16.0.0-172.31.255.255
Class C: 192.168.0.0-192.168.255.255

Static NAT maps a private address to a public address. That is, the number of private addresses is equal to the number of public
addresses. Static NAT cannot save public addresses, but can shield the topology of the private network.

CISCO
NetworksHeaven(config)# ip nat inside source static 192.168.1.1 1.1.1.2
NetworksHeaven(config)# ip nat inside source static 192.168.1.2 1.1.1.3
NetworksHeaven(config)# interface fastEthernet 0/0
NetworksHeaven(config-if)# ip nat inside
NetworksHeaven(config-if)# exit
NetworksHeaven(config)# interface serial 1/1
NetworksHeaven(config-if)# ip nat outside

NetworksHeaven(config-if)# end
Useful Commands
NetworksHeaven# show ip nat translations
HUAWEI
<NetworksHeaven> system-view
[NetworksHeaven] interface  Serial  1/0/0
[NetworksHeaven-Serial1/0/0] nat  static  global  1.1.1.2  inside  192.168.1.1  netmask 255.255.255.255

[NetworksHeaven-Serial1/0/0] nat  static  global  1.1.1.3  inside  192.168.1.2  netmask 255.255.255.255


Useful Commands
<NetworksHeaven> display nat session all
<NetworksHeaven> display  nat static

<NetworksHeaven> display  nat static interface Serial 1/0/0

Contents
Cisco Vs Huawei CLI 12 – (Configuring NAT Overloading & PAT)
October 18, 2014NetworksHeavenNo CommentsCisco Vs Huawei CLI

Port address translation (PAT), which is also called network address port translation (NAPT), maps a public address to multiple private
addresses. Therefore, public addresses are saved. PAT translates source IP addresses of packets from hosts that reside on the private
network to a public address. The translated port numbers of these packets are different, and the private addresses can share a public
address.

CISCO
DEFININIG NAT
NetworksHeaven(config)# access-list  20  permit  192.168.1.0    0.255.255.255
NetworksHeaven(config)# ip nat pool  NW-POOL  1.1.1.2    1.1.1.2  netmask  255.0.0.0

NetworksHeaven(config)# ip  nat  inside   source   list 20     pool  NW-POOL  overload
Applying NAT
NetworksHeaven(config)# interface fastEthernet 0/0
NetworksHeaven(config-if)# ip nat inside
NetworksHeaven(config-if)# exitNetworksHeaven(config)# interface serial 1/0/0
NetworksHeaven(config-if)# ip nat outside

NetworksHeaven(config-if)# exit
HUAWEI
DEFININIG NAT
[NetworksHeaven]  acl  2012
[NetworksHeaven-acl-basic-2012]  rule  permit  source   192.168.1.0   0.0.0.255
[NetworksHeaven-acl-basic-2012] quit

[NetworksHeaven]  nat   address-group   1   1.1.1.2   1.1.1.2


Applying NAT
[NetworksHeaven] interface  serial  1/0/0
[NetworksHeaven-Serial1/0/0]  nat   outbound   2012   address-group  1

[NetworksHeaven-Serial1/0/0] return

Contents
Cisco Vs Huawei CLI 13 – (Configuring VLANs)
October 18, 2014NetworksHeavenNo CommentsCisco Vs Huawei CLI

The VLAN technology is used to divide a physical LAN into multiple logical broadcast
domains, each of which is called a VLAN. Each VLAN contains a group of PCs that have the
same requirements. A VLAN has the same attributes as a LAN. PCs of a VLAN can be placed
on different LAN segments. If two PCs are located on one LAN segment but belong to
different VLANs, they do not broadcast packets to each other. With VLAN, the broadcast traffic
volume is reduced; fewer devices are required; network management is simplified; and network
security is improved.

CISCO
SW-NetworksHeaven# configure  terminal
Enter configuration commands, one per line.  End with CNTL/Z.
SW-NetworksHeaven(config)# vlan 2
SW-NetworksHeaven(config-vlan)# name Accounts
SW-NetworksHeaven(config-vlan)# end

SW-NetworksHeaven#
Useful Commands
SW-NetworksHeaven# show  vlan brief
HUAWEI
<SW-NetworksHeaven>system-view
Enter system view, return user view with Ctrl+Z.
[SW-NetworksHeaven]  vlan 2
[SW-NetworksHeaven-vlan2] description Accounts
[SW-NetworksHeaven-vlan2] return

<SW-NetworksHeaven>
Useful Commands
<SW-NetworksHeaven> display  vlan

<SW-NetworksHeaven> display  vlan  2

Contents
Cisco Vs Huawei CLI 14-1 (Configuring Access Ports)
October 18, 2014NetworksHeavenNo CommentsCisco Vs Huawei CLI

Access link: connects a PC to a switch. Generally, a PC does not know which VLAN it belongs to, and PC hardware cannot distinguish fram
CISCO
NetworksHeaven(config)# interface Ethernet 0/0/5
NetworksHeaven(config-if)# switchport mode access
NetworksHeaven(config-if)# switchport access vlan 2
NetworksHeaven(config-if)# end

NetworksHeaven#
Useful Commands
SW-NetworksHeaven# show  vlan brief
HUAWEI
[NetworksHeaven] interface Ethernet 0/0/5
[NetworksHeaven-Ethernet0/0/5] port  link-type access
[NetworksHeaven-Ethernet0/0/5] port  default  vlan  2
[NetworksHeaven-Ethernet0/0/5] return

<NetworksHeaven>
Useful Commands
<NetworksHeaven> display  vlan  2

Contents
hardware cannot distinguish frames with VLAN tags. Therefore, PCs send and receive only untagged frames.
Cisco Vs Huawei CLI 14-2 (Configuring Trunk Ports)
October 18, 2014NetworksHeavenNo CommentsCisco Vs Huawei CLI

Trunk link: connects a switch to another switch or to a router. Data of different VLANs are transmitted along a trunk link. The two ends of
CISCO
NetworksHeaven(config)# interface Ethernet 0/0/5
NetworksHeaven(config-if)# switchport mode trunk
NetworksHeaven(config-if)# switchport trunk encapsulation dot1q
NetworksHeaven(config-if)# end

NetworksHeaven#
Useful Commands
SW-NetworksHeaven# show interfaces trunk

SW-NetworksHeaven# show interfaces status


HUAWEI
[NetworksHeaven] interface Ethernet 0/0/5
[NetworksHeaven-Ethernet0/0/5] port  link-type trunk
[NetworksHeaven-Ethernet0/0/5] port trunk allow-pass vlan all
[NetworksHeaven-Ethernet0/0/5] return

<NetworksHeaven>
Useful Commands
<NetworksHeaven> display port vlan  Ethernet 0/0/5

<NetworksHeaven> display port vlan

Contents
ong a trunk link. The two ends of a trunk link must be able to distinguish frames with VLAN tags. Therefore, only tagged frames are transmitted along tru
d frames are transmitted along trunk links.
Cisco Vs Huawei CLI 15 – (Configuring Inter-VLAN Routing)
October 18, 2014NetworksHeavenNo CommentsCisco Vs Huawei CLI

Configuring inter-VLAN communication allows users in different VLANs to communicate with each other. Learn how to configure Inter-VL
CISCO
NetworksHeaven(config)#configure terminal
NetworksHeaven(config)#interface GigabitEthernet0/0
NetworksHeaven(config-if)#no shutdown
NetworksHeaven(config-if)#exit
NetworksHeaven(config)#interface GigabitEthernet0/0.15
NetworksHeaven(config-subif)#encapsulation dot1Q 15
NetworksHeaven(config-subif)#ip add 15.1.1.10 255.0.0.0
NetworksHeaven(config-subif)#end
NetworksHeaven(config)#interface GigabitEthernet0/0.5
NetworksHeaven(config-subif)# encapsulation dot1Q 5
NetworksHeaven(config-subif)# ip add 5.1.1.10 255.0.0.0

NetworksHeaven(config-subif)#exit
HUAWEI
<NetworksHeaven> system-view
[NetworksHeaven] interface GigabitEthernet0/0
[NetworksHeaven-GigabitEthernet0/0/1] undo shutdown
[NetworksHeaven-GigabitEthernet0/0/1] quit
[NetworksHeaven]
[NetworksHeaven] interface GigabitEthernet0/0.5
[NetworksHeaven-GigabitEthernet0/0/1.5] vlan-type dot1q 5
[NetworksHeaven-GigabitEthernet0/0/1.5] ip address 5.1.1.10 255.0.0.0
[NetworksHeaven-GigabitEthernet0/0/1.5] quit
[NetworksHeaven] interface GigabitEthernet0/0.15
[NetworksHeaven-GigabitEthernet0/0/1.15] vlan-type dot1q 15
[NetworksHeaven-GigabitEthernet0/0/1.15] ip address 15.1.1.10 255.0.0.0

[NetworksHeaven-GigabitEthernet0/0/1.15] quit

Contents
. Learn how to configure Inter-VLAN routing, also known as Router on a Stick by configuring a switch to trunk to a router with sub-interfaces in each VL
er with sub-interfaces in each VLAN.
Cisco Vs Huawei CLI 16 – (Configuring IPv6)
October 18, 2014NetworksHeavenNo CommentsCisco Vs Huawei CLI

Internet Protocol version 6 (IPv6) is the latest version of the Internet Protocol (IP), the
communications protocol that provides an identification and location system for computers on
networks and routes traffic across the Internet.

CISCO
NetworksHeaven(config)# ipv6 unicast-routing
NetworksHeaven(config)# interface fastEthernet 0/0
NetworksHeaven(config-if)# ipv6 enable
NetworksHeaven(config-if)# ipv6 address 2001::1/64
NetworksHeaven(config-if)# exit

Useful Commands
NetworksHeaven#show ipv6 interface brief

NetworksHeaven#show ipv6 route


HUAWEI
[NetworksHeaven] ipv6
[NetworksHeaven] interface serial 1/0/0
[NetworksHeaven-Serial0/0/0] ipv6 enable
[NetworksHeaven-Serial0/0/0] ipv6 address 2002::1/64
[NetworksHeaven-Serial0/0/0] quit

Useful Commands
<NetworksHeaven> display ipv6 interface brief

<NetworksHeaven> display ipv6 routing-table

Contents
Cisco Vs Huawei CLI 17 – (Configuring IPv6 Static Routing)
October 18, 2014NetworksHeavenNo CommentsCisco Vs Huawei CLI

CISCO
NetworksHeaven(config)# ipv6 unicast-routing

NetworksHeaven(config)# ipv6 route 2003::/64 2002::2


Useful Commands
NetworksHeaven# show ipv6 interface brief
NetworksHeaven# show ipv6 route

NetworksHeaven# show ipv6 route static


HUAWEI
[NetworksHeaven] ipv6

[NetworksHeaven] ipv6 route-static  2003::   64    2002::2


Useful Commands
<NetworksHeaven> display ipv6 interface brief
<NetworksHeaven> display ipv6 routing-table

<NetworksHeaven> display ipv6 routing-table protocol  static

Contents
Cisco Vs Huawei CLI 18 – (Configuring RIP Next Generation)
October 18, 2014NetworksHeavenNo CommentsCisco Vs Huawei CLI

RIPng is a distance-vector routing protocol, which measures the distance to the destination host by the hop count. The Routing
Information Protocol Next Generation (RIPng) protocol is an extension of RIPv2 that is applied to IPv4 networks. Most RIP-
related concepts are applicable to RIPng.

CISCO
ipv6 router rip 1
exitinterface GigabitEthernet 0/0
ipv6 rip 1 enable
exit
interface Serial1/0
ipv6 rip 1 enable

exit
Useful Commands
NetworksHeaven# show ipv6 route rip
HUAWEI
ripng 1
quit
interface GigabitEthernet0/0/0
ripng 1 enable
quit
interface Serial/0
ripng 1 enable

quit
Useful Commands
<NetworksHeaven> display ipv6 routing-table protocol  rip

Contents
Cisco Vs Huawei CLI 19 – (Configuring OSPFv3)

OSPFv3 uses the same implementation mechanism as OSPFv2 but is not compatible
with OSPFv2. The Open Shortest Path First Version 3.0 (OSPFv3) supports the version 6 of the
Internet Protocol (IPv6). OSPFv3 conforms to RFC 2740 (OSPF for IPv6).

CISCO
ipv6 router ospf 1
router-id 11.1.1.1
exit

interface GigabitEthernet 0/0/0


ipv6 ospf 1 area 0
interface Serial1/0
ipv6 ospf 1 area 1

exit
Useful Commands
NetworksHeaven# show ipv6 protocol

NetworksHeaven# show ipv6 route rip


HUAWEI
ospfv3 1
router-id 11.1.1.1
quit

interface GigabitEthernet 0/0/0


ospfv3 1 area 0
interface Serial/0
ospfv3 1 area 1

quit
Useful Commands
<NetworksHeaven> display ipv6 routing-table protocol  rip

<NetworksHeaven> display  ospfv3  1

Contents
Cisco Vs Huawei CLI 20-1 (Configuring Frame-Relay – Dynamic Mapping)

Frame relay is a standardized wide area network technology that specifies the physical and logical link layers of digital telecommunicat
using a packet switching methodology. Originally designed for transport across Integrated Services Digital Network (ISDN) infrastructure, i
today in the context of many other network interfaces.

CISCO
NetworksHeaven(config)# interface serial 1/0/0
NetworksHeaven(config-if)# encapsulation frame-relay
NetworksHeaven(config-if)# frame-relay lmi-type ansi
NetworksHeaven(config-if)# ip address 1.1.1.1 255.0.0.0

NetworksHeaven(config-if)#end
Useful Commands
NetworksHeaven# show frame-relay map

NetworksHeaven# show frame-relay lmi


HUAWEI
[NetworksHeaven] interface serial 1/0/0
[NetworksHeaven-Serial1/0/0] link-protocol fr
[NetworksHeaven-Serial1/0/0] fr lmi type ansi
[NetworksHeaven-Serial1/0/0] ip address 1.1.1.1 255.0.0.0

[NetworksHeaven-Serial1/0/0] return
Useful Commands
<NetworksHeaven> display fr map-info

<NetworksHeaven> display fr lmi-info

Contents
Cisco Vs Huawei CLI 20-2 (Configuring Frame-Relay – Static Mapping)

Frame relay is a standardized wide area network technology that specifies the physical and logical link layers of digital telecommun
channels using a packet switching methodology. Originally designed for transport across Integrated Services Digital Network (ISDN) infrast
it may be used today in the context of many other network interfaces.

CISCO
NetworksHeaven(config)# interface serial 1/0/0
NetworksHeaven(config-if)# encapsulation frame-relay
NetworksHeaven(config-if)# frame-relay lmi-type ansi
NetworksHeaven(config-if)# ip address 1.1.1.1 255.0.0.0
NetworksHeaven(config-if)# no frame-relay inverse-arp
NetworksHeaven(config-if)# frame-relay map ip 1.1.1.2 102 broadcast

NetworksHeaven(config-if)# end
Useful Commands
NetworksHeaven# show frame-relay map

NetworksHeaven# show frame-relay lmi


HUAWEI
[NetworksHeaven] interface serial 1/0
[NetworksHeaven-Serial1/0/0] link-protocol fr
[NetworksHeaven-Serial1/0/0] fr lmi type ansi
[NetworksHeaven-Serial1/0/0] ip address 1.1.1.1 255.0.0.0
[NetworksHeaven-Serial1/0/0] undo fr inarp
[NetworksHeaven-Serial1/0/0] fr map ip 1.1.1.2 102 broadcast

[NetworksHeaven-Serial1/0/0] return
Useful Commands
<NetworksHeaven> display fr map-info

<NetworksHeaven> display fr lmi-info

Contents

You might also like