You are on page 1of 4

11/9/22, 5:49 PM HUAWEI SWITCH BASIC CONFIGURATIONS WITH EXAMPLE(5 Examples) - Huawei Enterprise Support Community


Huawei Enterprise Support Community User Guide  |   
  |   Language
  |  

Community Forums Groups Blog & Collections Rewards FAQ Top Members Subscribe


Community

Forums

Routing & Switching

HUAWEI SWITCH BASIC CONFI...

HUAWEI SWITCH BASIC CONFIGURATIONS WITH EXAMPLE(5 Examples)

Created: Nov 9, 2021 06:23:18 Latest reply: Nov 14, 2021 09:58:08 


534

7

12

0

0

View the author


1#
IndianKid
Access port config:

 
An access port belongs to and carries the traffic of only one VLAN within 2-layer switch. Traffic is both received and sent in 337 3.6K
native formats with no VLAN tagging whatsoever. Anything arriving on an access port is simply assumed to belong to the
VLAN assigned to the port.
To configure port in vlan 10: Follow
<HUAWEI>  system-view

Post
[HUAWEI]  interface GigabitEthernet 0/0/15

[HUAWEI-GigabitEthernet 0/0/15] port link-type access



Recommended
[HUAWEI-GigabitEthernet 0/0/15] port default vlan 10

[HUAWEI-GigabitEthernet 0/0/15] quit


1 IP Technology Sharing | LLDP
 
Trunk port config:

A trunk interface often connects to a switch, router, AP, or voice terminal that can receive and send tagged and 2 IP Technology Sharing | LLDP

untagged frames simultaneously. It allows tagged frames from multiple VLANs and untagged frames from only
one VLAN called native vlan.
3 What Interfaces support LLD
To configure ethernet port as a trunk port and allow to pass all vlans:
<HUAWEI> system-view

[HUAWEI] interface GigabitEthernet 0/0/13


[HUAWEI-GigabitEthernet 0/0/13]port link-type trunk 4 Does a Management Interfa


[HUAWEI-GigabitEthernet 0/0/13]port trunk allow-pass vlan all


[HUAWEI-GigabitEthernet 0/0/13]quit
 
  5 LLDP Implementation & Net

How to configure VLAN on Huawei:

Virtual Local Area Network (VLAN) technology divides a physical LAN into multiple broadcast domains, each of which is
called a VLAN. Hosts within a VLAN can communicate with each other but cannot communicate directly with hosts in other
VLANs. Consequently, broadcast packets are confined to within a single VLAN.
To create vlan:

<Huawei>  system-view

[Huawei]  sysname RouterA


[RouterA]  vlan batch 2 3


 
To assign interface to specific vlan:

[RouterA]  interface ethernet 2/0/1


[RouterA-Ethernet2/0/1]  port link-type access


[RouterA-Ethernet2/0/1]  port default vlan 2


[RouterA-Ethernet2/0/1]  quit
 
LACP configuration:

Static LACP mode:

Devices that are directly connected through an Eth-Trunk can support LACP, by running the mode lacp-
static command you can configure the Eth-Trunk to work in static LACP mode. This mode can implement both
load balancing and redundancy.

https://forum.huawei.com/enterprise/en/huawei-switch-basic-configurations-with-example-5-examples/thread/789445-861 1/4
11/9/22, 5:49 PM HUAWEI SWITCH BASIC CONFIGURATIONS WITH EXAMPLE(5 Examples) - Huawei Enterprise Support Community

<HUAWEI>  system-view

[HUAWEI]  interface Eth-Trunk 1Community Forums Groups Blog & Collections Rewards FAQ Top Members Subscribe

[HUAWEI- interface Eth-Trunk 1] mode lacp-static


[HUAWEI- interface Eth-Trunk 1] quit

LACP Dynamic mode:

When a server is connected to a file server over the device that has an Eth-Trunk configured, one is able to run
the mode lacp-dynamic command on the device to configure its Eth-Trunk to work in dynamic mode.

<HUAWEI>  system-view

[HUAWEI]  interface Eth-Trunk 1


[HUAWEI- interface Eth-Trunk 1] mode lacp-dynamic


[HUAWEI- interface Eth-Trunk 1] quit


 
LLDP configuration example:

The Link Layer Discovery Protocol (LLDP) is a standard Layer 2 topology discovery protocol defined in IEEE 802.1ab. LLDP
allows a device to send local management information such as management IP address, device ID, and port ID to neighbors.
LLDP provides a standard link-layer discovery method. Layer 2 information obtained through LLDP allows the NMS (Network
Management System) to detect the topology of neighboring devices. Details, such as device capabilities or device identity can
be advertised using this protocol.

Let’s take a look at LLDP configuration example for Huawei.

Enabling global LLDP on Switch:

<Switch>system-view

[Switch]lldp enable
 

Interval for sending LLDP packets- When the LLDP status of a device keeps unchanged, the device sends LLDP packets to its
neighbors at a certain interval. The value of interval ranges from 5 to 32768. Increasing the value of interval is not restricted by
the value of delay.

Delay in sending LLDP packets- If the device status changes frequently, a delay is required before the device sends an LLDP
packet to its neighbors. The value of delay ranges from 1 to 8192. Decreasing the value of delay is not restricted by the value
of interval.

Hold time multiplier of device information on neighbors- The hold time multiplier is used to calculate the Time to Live (TTL),
which determines how long device information can be saved on the neighbors. You can specify the hold time of device
information on the neighbors. After receiving an LLDP packet, a neighbor updates the aging time of the device information
from the sender based on the TTL.

The storage time calculation formula is: TTL = Min (65535, (interval x hold)).

To configure the interval for sending LLDP packets Run:

lldp message-transmission interval interval


Note: The default interval for sending LLDP packets is 30 seconds.

To delay in sending LLDP packets in Run:

lldp message-transmission delay delay


 

To delay in sending LLDP packets in Run:

lldp message-transmission delay delay


Note: The default delay in sending LLDP packets is 2 seconds.

To configure the hold-multiplier of device stored on neighbors Run:

lldp message-transmission hold-multiplier hold


Note: The default hold time multiplier is 4

https://forum.huawei.com/enterprise/en/huawei-switch-basic-configurations-with-example-5-examples/thread/789445-861 2/4
11/9/22, 5:49 PM HUAWEI SWITCH BASIC CONFIGURATIONS WITH EXAMPLE(5 Examples) - Huawei Enterprise Support Community
Config verification:
Community Forums Groups Blog
Run the display lldp      local[ interface interface-type interface-number ]    & Collections
 command to viewRewards
LLDP localFAQ Top Members
information on Subscribe
a specified interface or all      interfaces.
Run the display lldp      neighbor[ interface interface-type interface-number ]      command to view neighbor information
in the system or on an interface.
Run the display lldp      neighbor brief command to view brief information about neighbors.
 

In routine maintenance, you can run the following commands in any view to check the LLDP status.

Run the display lldp      statistics[ interface interface-type interface-number ]      command to view statistics about sent and
received LLDP packets in the      system or on an interface.
Run the display cdp      statistics[ interface interface-type interface-number ]      command to view statistics about sent and
received CDP packets in the      system or on an interface.
 

[SwitchA] display lldp neighbor brief


Local Intf   Neighbor Dev             Neighbor Intf             Exptime(s)
GE1/0/1      SwitchB                  GE1/0/1                   101
[SwitchB] display lldp neighbor brief
Local Intf   Neighbor Dev             Neighbor Intf             Exptime(s)
GE1/0/1      SwitchA                  GE1/0/1                   101


routing and switching
lldp
vlan
access
trunk

The post is synchronized to: Author group


Like
(12) 
Dislike
(0)  Favorite(0)  Share  Report

 Previous: Licenses Next: Rate limit 

hemin88

Moderator
Author
Created Nov 10, 2021 06:11:03 

(1)
(0)

2#

Well done friend, you are doing a great job

IndianKid
Created Nov 10, 2021 06:33:37  
(0)
(0)
Thanks  

taha_29four

Created Nov 10, 2021 06:39:00 

(1)
(0)

3#

Basic and importand kind of info, nice work bro

IndianKid
Created Nov 10, 2021 06:45:14  
(1)
(0)
Thanks dear for support  

Vijji

Created Nov 11, 2021 05:48:31 

(1)
(0)

4#

Useful one

https://forum.huawei.com/enterprise/en/huawei-switch-basic-configurations-with-example-5-examples/thread/789445-861 3/4
11/9/22, 5:49 PM HUAWEI SWITCH BASIC CONFIGURATIONS WITH EXAMPLE(5 Examples) - Huawei Enterprise Support Community

Community Forums Groups Blog & Collections Rewards FAQ Top Members Subscribe

Serges_armel
Created Nov 11, 2021 13:47:51 

(1)
(0)

5#

Very interesting

faysalji

Moderator
Author
Created Nov 14, 2021 09:58:08 

(0)
(0)

6#

Thanks for sharing.

Comment

What 's on your mind?

Advanced Comment

Attachment: +Add ?

Security code
Change

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content
that may bring legal risks to all parties, including but are not limited to the following:
Politically sensitive content
Content concerning pornography, gambling, and drug abuse
Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks,
copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as
your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

  
 Huawei Website
| Support
| About Huawei
| Privacy
| User Agreement
| Terms of Use
|
Huawei Enterprise
| Huawei Carrier Forum
Contact Us: e_online@huawei.com Copyright © 2022 Huawei Technologie

https://forum.huawei.com/enterprise/en/huawei-switch-basic-configurations-with-example-5-examples/thread/789445-861 4/4

You might also like