Got it

Example for Configuring an Inter-Chassis Eth-Trunk Interface to Forward Traffic Preferentially Through Local Member Interfaces(Stack)

Latest reply: Nov 4, 2021 16:43:48 450 37 21 0 0

Example for Configuring an Inter-Chassis Eth-Trunk Interface to Forward Traffic Preferentially Through Local Member Interfaces(Stack)


Networking Requirements


On the network shown in Figure 1, Switch 3 and Switch 4 are connected through CSS cables to increase the total capacity. The two switches are considered as one logical switch. To improve reliability, physical interfaces on the two switches are added to an Eth-Trunk interface. When the network runs properly, check member interface information on PE. Traffic from VLAN 2 is forwarded through GE1/0/1 and GE1/0/2, and traffic from VLAN 3 is forwarded through GE1/0/1 and GE1/0/2. This increases bandwidth use efficiency between devices and reduces traffic forwarding efficiency.


To improve traffic forwarding efficiency, traffic from VLAN 2 should be forwarded through GE 1/0/1 and traffic from VLAN 3 should be forwarded through GE1/0/2. To achieve this goal, configure the Eth-Trunk interface to forward traffic preferentially through the local member interface.


01

Figure 1 Preferentially forwarding traffic through the local member interface

Configuration Roadmap


The configuration roadmap is as follows:


1. Create an Eth-Trunk interface.


2. Add member interfaces to the Eth-Trunk interface.


NOTE: An interface is added to VLAN1 by default. To avoid broadcast strom, shut down the interface or remove the interface from VLAN1 before adding it to an Eth-Trunk interface.


3. Configure the Eth-Trunk interface to forward traffic preferentially through the local member interface.


4. Configure the Layer 2 forwarding function.

Procedure


1. Create an Eth-Trunk interface and configure the Eth-Trunk interface to allow packets all VLANs to pass through.


# Configure the CSS.


<HUAWEI> system-view
[HUAWEI] sysname CSS
[CSS] interface eth-trunk 10
[CSS-Eth-Trunk10] port link-type trunk
[CSS-Eth-Trunk10] port trunk allow-pass vlan all
[CSS-Eth-Trunk10] quit


# Configure the PE.


<HUAWEI> system-view
[HUAWEI] sysname PE
[PE] interface eth-trunk 10
[PE-Eth-Trunk10] port link-type trunk
[PE-Eth-Trunk10] port trunk allow-pass vlan all
[PE-Eth-Trunk10] quit


2. Add member interfaces to the Eth-Trunk interface.


# Configure the CSS.


[CSS] interface gigabitethernet 1/0/4
[CSS-GigabitEthernet1/0/4] eth-trunk 10
[CSS-GigabitEthernet1/0/4] quit
[CSS] interface gigabitethernet 2/0/4
[CSS-GigabitEthernet2/0/4] eth-trunk 10
[CSS-GigabitEthernet2/0/4] quit


# Configure the PE.


[PE] interface gigabitethernet 1/0/1
[PE-GigabitEthernet1/0/1] eth-trunk 10
[PE-GigabitEthernet1/0/1] quit
[PE] interface gigabitethernet 1/0/2
[PE-GigabitEthernet1/0/2] eth-trunk 10
[PE-GigabitEthernet1/0/2] quit


3. In the CSS view, configure the Eth-Trunk interface to forward traffic preferentially through the local member interface.


[CSS] interface eth-trunk 10
[CSS-Eth-Trunk10] local-preference enable
[CSS-Eth-Trunk10] quit


NOTE: By default, an Eth-Trunk is enabled to preferentially forward local traffic. If you run the local-preference enable command, the message "Error: The local preferential forwarding mode has been configured." is displayed.

4. Configure the Layer 2 forwarding function.


# Configure the CSS.


[CSS] vlan batch 2 3
[CSS] interface gigabitethernet 1/0/3
[CSS-GigabitEthernet1/0/3] port link-type trunk
[CSS-GigabitEthernet1/0/3] port trunk allow-pass vlan 2
[CSS-GigabitEthernet1/0/3] quit
[CSS] interface gigabitethernet 2/0/3
[CSS-GigabitEthernet2/0/3] port link-type trunk
[CSS-GigabitEthernet2/0/3] port trunk allow-pass vlan 3
[CSS-GigabitEthernet2/0/3] quit


# Configure Switch 1.


<HUAWEI> system-view
[HUAWEI] sysname Switch1
[Switch1] vlan 2
[Switch1-vlan2] quit
[Switch1] interface gigabitethernet 0/0/1
[Switch1-GigabitEthernet0/0/1] port link-type trunk
[Switch1-GigabitEthernet0/0/1] port trunk allow-pass vlan 2
[Switch1-GigabitEthernet0/0/1] quit
[Switch1] interface gigabitethernet 0/0/2
[Switch1-GigabitEthernet0/0/2] port link-type trunk
[Switch1-GigabitEthernet0/0/2] port trunk allow-pass vlan 2
[Switch1-GigabitEthernet0/0/2] quit


# Configure Switch 2.


<HUAWEI> system-view
[HUAWEI] sysname Switch2
[Switch2] vlan 3
[Switch2-vlan3] quit
[Switch2] interface gigabitethernet 0/0/1
[Switch2-GigabitEthernet0/0/1] port link-type trunk
[Switch2-GigabitEthernet0/0/1] port trunk allow-pass vlan 3
[Switch2-GigabitEthernet0/0/1] quit
[Switch2] interface gigabitethernet 0/0/2
[Switch2-GigabitEthernet0/0/2] port link-type trunk
[Switch2-GigabitEthernet0/0/2] port trunk allow-pass vlan 3
[Switch2-GigabitEthernet0/0/2] quit


5. Verify the configuration.


Run the display trunkmembership eth-trunk command in any view to check information about Eth-Trunk member interface.


The output on the CSS is used as an example.


<CSS> display trunkmembership eth-trunk 10

Trunk ID: 10

Used status: VALID

TYPE: ethernet

Working Mode : Normal

Number Of Ports in Trunk = 2

Number Of Up Ports in Trunk = 2

Operate status: up

Interface GigabitEthernet1/0/4, valid, operate up, weight=1

Interface GigabitEthernet2/0/4, valid, operate up, weight=1


Configuration Files


Configuration file the CSS


#
sysname CSS
#
vlan batch 2 3
#
interface Eth-Trunk10
port link-type trunk
port trunk allow-pass vlan 2 to 4094
#
interface GigabitEthernet1/0/3
port link-type trunk
port trunk allow-pass vlan 2
#
interface GigabitEthernet2/0/3
port link-type trunk
port trunk allow-pass vlan 3
#
interface GigabitEthernet1/0/4
eth-trunk 10#
interface GigabitEthernet2/0/4
eth-trunk 10
#
return


Configuration file of the PE


#
sysname PE
#
interface Eth-Trunk10
port link-type trunk
port trunk allow-pass vlan 2 to 4094
#
interface GigabitEthernet1/0/1
eth-trunk 10
#
interface GigabitEthernet1/0/2
eth-trunk 10
#
return


Configuration file of Switch 1


#
sysname Switch1
#
vlan batch 2
#
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 2
#
interface GigabitEthernet0/0/2
port link-type trunk
port trunk allow-pass vlan 2
#
return


Configuration file of Switch 2


#
sysname Switch2
#
vlan batch 3
#
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 3#
interface GigabitEthernet0/0/2
port link-type trunk
port trunk allow-pass vlan 3
#
return



- END -

Vlada85
MVE Author Created Oct 9, 2021 19:37:41

Very good post! Thank you!
View more
  • x
  • convention:

andersoncf1
andersoncf1 Created Oct 10, 2021 16:25:30 (0) (0)
you’re welcome  
LilStylz237
LilStylz237 Created Oct 13, 2021 20:25:05 (0) (0)
Indeed  
hemin88
Moderator Author Created Oct 9, 2021 19:46:43

Very interesting and informative post, well done and thanks for sharing
View more
  • x
  • convention:

Serges_armel
Serges_armel Created Oct 10, 2021 01:07:56 (0) (0)
 
andersoncf1
andersoncf1 Created Oct 10, 2021 16:25:55 (0) (0)
you’re welcome friend  
Good!
View more
  • x
  • convention:

andersoncf1
andersoncf1 Created Oct 11, 2021 16:29:04 (0) (0)
Thanks  
Well done
View more
  • x
  • convention:

andersoncf1
andersoncf1 Created Oct 11, 2021 16:29:19 (0) (0)
Thanks  
BAZ
MVE Author Created Oct 9, 2021 21:04:25

Broadcast can be avoided by undo vlan 1 command
View more
  • x
  • convention:

BAZ
BAZ Created Oct 9, 2021 21:04:44 (1) (0)
Do u agree author  
andersoncf1
andersoncf1 Created Oct 13, 2021 16:09:04 (0) (0)
Thanks friend  
Good post my dear Anderson
View more
  • x
  • convention:

andersoncf1
andersoncf1 Created Oct 13, 2021 16:09:14 (0) (0)
welcome dear  
zaheernew
MVE Author Created Oct 10, 2021 01:36:18

useful info
View more
  • x
  • convention:

andersoncf1
andersoncf1 Created Oct 13, 2021 16:09:21 (0) (0)
thanks  
zaheernew
zaheernew Reply andersoncf1  Created Oct 14, 2021 03:27:41 (0) (0)
 
AL_93
Moderator Created Oct 10, 2021 04:54:09

Excellent. Thank you for sharing!
View more
  • x
  • convention:

andersoncf1
andersoncf1 Created Oct 14, 2021 16:26:57 (0) (0)
you're welcome  
Good post. Thank you!
View more
  • x
  • convention:

LilStylz237
LilStylz237 Created Oct 13, 2021 20:24:41 (0) (0)
Thanks  
andersoncf1
andersoncf1 Created Oct 14, 2021 16:27:04 (0) (0)
you're welcome  
12
Back to list

Comment

You need to log in to comment to the post Login | Register
Comment

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."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.