HCIP-IERS deploys enterprise-level routing and switching network_VLAN features and configuration_VLAN configuration

Table of contents

Chapter 6 VLAN Features and Configuration

Experiment 6-1 VLAN Configuration

learning purpose

Topology

Scenes

Learning tasks

Step 1. Basic configuration and IP addressing

Step 2. Eth-trunk link aggregation

final device configuration


 

Chapter 6 VLAN Features and Configuration

Experiment  6-1 VLAN configuration 

learning purpose

Master the configuration method of Eth-trunk

Topology

Figure 6-1 VLAN configuration

Scenes

 

You are the company's network administrator. Now the company network is an Ethernet environment composed of two switches. In the figure, the router simulates a computer in the network, and R3 is a server. In order to optimize this network, you need to increase the speed and reliability of the link connecting S1 and S2.

Learning tasks

Step 1. Basic configuration and IP addressing

Configure IP addresses and masks for all devices.

<Huawei>system-view

Enter system view, return user view with Ctrl+Z.

[Huawei]sysname R1

[R1]interface GigabitEthernet 0/0/1

[R1-GigabitEthernet0/0/1]ip address 10.0.10.1 24

[R1-GigabitEthernet0/0/1]quit

<Huawei>system-view

Enter system view, return user view with Ctrl+Z.

[Huawei]sysname R2

[R2]interface GigabitEthernet 0/0/1

[R2-GigabitEthernet0/0/1]ip address 10.0.10.2 24

[R2-GigabitEthernet0/0/1]quit

<Huawei>system-view

Enter system view, return user view with Ctrl+Z.

[Huawei]sysname R3

[R3]interface GigabitEthernet 0/0/2

[R3-GigabitEthernet0/0/2]ip address 10.0.10.3 24

[R3-GigabitEthernet0/0/2]quit

Give the switch a name.

<Huawei>system-view

Enter system view, return user view with Ctrl+Z.

[Huawei]sysname S1

<Huawei>system-view

Enter system view, return user view with Ctrl+Z.

[Huawei]sysname S2

Step 2. Eth-trunk link aggregation

Eth-trunk can bundle two or more links into one link to improve link bandwidth and reliability. Adding the G0/0/9 and G0/0/10 interfaces of S1 and S2 to the same Eth-trunk group can meet enterprise requirements.

Create an Eth-trunk interface.

[S1]interface Eth-Trunk 1

[S1-Eth-Trunk1]

[S2]interface Eth-Trunk 1

[S2-Eth-Trunk1]

Configure the working mode of the Eth-trunk as LACP.

[S1-Eth-Trunk1]mode lacp

[S1-Eth-Trunk1]quit

[S2-Eth-Trunk1]mode lacp

[S2-Eth-Trunk1]quit

Add the G0/0/9 and G0/0/10 interfaces of S1 and S2 to the Eth-trunk interface.

[S1]interface GigabitEthernet 0/0/9

[S1-GigabitEthernet0/0/9]eth-trunk 1

[S1-GigabitEthernet0/0/9]quit

[S1]interface GigabitEthernet 0/0/10

[S1-GigabitEthernet0/0/10]eth-trunk 1

[S1-GigabitEthernet0/0/10]quit

[S2]interface GigabitEthernet 0/0/9

[S2-GigabitEthernet0/0/9]eth-trunk 1

[S2-GigabitEthernet0/0/9]quit

[S2]interface GigabitEthernet 0/0/10

[S2-GigabitEthernet0/0/10]eth-trunk 1

[S2-GigabitEthernet0/0/10]quit

Run the dispay eth-trunk command to check the configuration.

[S1]display eth-trunk

Eth-Trunk1's state information is:

Local:

LAG ID: 1                      WorkingMode: LACP                                 

Preempt Delay: Disabled     Hash arithmetic: According to SIP-XOR-DIP         

System Priority: 32768      System ID: d0d0-4ba6-aab0                         

Least Active-linknumber: 1 Max Active-linknumber: 8                          

Operate status: up           Number Of Up Port In Trunk: 2                     

----------------------------------------------------------------------------

ActorPortName          Status   PortType PortPri PortNo PortKey PortState Weight

GigabitEthernet0/0/9   Selected 1GE      32768   1      305     10111100    1     

GigabitEthernet0/0/10  Selected 1GE      32768   2      305     10111100    1     

Partner:

----------------------------------------------------------------------------

ActorPortName          SysPri   SystemID        PortPri PortNo PortKey PortState

GigabitEthernet0/0/9   32768    d0d0-4ba6-ac20  32768   1      305     10111100

GigabitEthernet0/0/10  32768    d0d0-4ba6-ac20  32768   2      305     10111100

    

The output information shows that the link operation mode is LACP mode, and the maximum number of active interfaces is 8 links. Both G0/0/9 and G0/0/10 interfaces are active at the same time.

Use the command to change the active interface count threshold.

[S1]interface Eth-Trunk 1

[S1-Eth-Trunk1]max active-linknumber 1

[S1-Eth-Trunk1]quit

[S2]interface Eth-Trunk 1

[S2-Eth-Trunk1]max active-linknumber 1

[S2-Eth-Trunk1]quit

Check the configuration of the Eth-trunk link.

[S1]display eth-trunk 1

Eth-Trunk1's state information is:

Local:

LAG ID: 1                      WorkingMode: LACP                                 

Preempt Delay: Disabled     Hash arithmetic: According to SIP-XOR-DIP         

System Priority: 32768      System ID: d0d0-4ba6-aab0                         

Least Active-linknumber: 1 Max Active-linknumber: 1                          

Operate status: up           Number Of Up Port In Trunk: 1                     

----------------------------------------------------------------------------

ActorPortName          Status   PortType PortPri PortNo PortKey PortState Weight

GigabitEthernet0/0/9   Selected 1GE      32768   1      305     10111100    1     

GigabitEthernet0/0/10  Unselect 1GE      32768   2      305     10100000    1     

Partner:

----------------------------------------------------------------------------

ActorPortName          SysPri   SystemID        PortPri PortNo PortKey PortState

GigabitEthernet0/0/9   32768    d0d0-4ba6-ac20  32768   1      305     10111100

GigabitEthernet0/0/10  32768    d0d0-4ba6-ac20  32768   2      305     10100000

    

The output shows that the status of the G0/0/10 interface changes to Unselect. It implements the function of transmitting data on one link of the Eth-trunk aggregated link and backing up the other link, which improves network reliability.

Verify the function of the backup link by shutting down the G0/0/9 interface of S1.

[S1]interface GigabitEthernet 0/0/9

[S1-GigabitEthernet0/0/9]shutdown

[S1-GigabitEthernet0/0/9]quit

View Eth-trunk link information.

[S1]display eth-trunk 1

Eth-Trunk1's state information is:

Local:

LAG ID: 1                      WorkingMode: LACP                                 

Preempt Delay: Disabled     Hash arithmetic: According to SIP-XOR-DIP         

System Priority: 32768      System ID: d0d0-4ba6-aab0                         

Least Active-linknumber: 1 Max Active-linknumber: 1                          

Operate status: up           Number Of Up Port In Trunk: 1                     

----------------------------------------------------------------------------

ActorPortName          Status   PortType PortPri PortNo PortKey PortState Weight

GigabitEthernet0/0/9   Unselect 1GE      32768   1      305     10100010    1     

GigabitEthernet0/0/10  Selected 1GE      32768   2      305     10111100    1     

Partner:

----------------------------------------------------------------------------

ActorPortName          SysPri   SystemID        PortPri PortNo PortKey PortState

GigabitEthernet0/0/9   0 0000-0000-0000  0 0 0   10100011

GigabitEthernet0/0/10  32768    d0d0-4ba6-ac20  32768 2 305   10111100

    

From the output information, it can be seen that G0/0/9 on the Eth-trunk link has changed to the Unselected state, and G0/0/10 is automatically converted from the Unselected state to the Selected state to continue transmitting data. It can be seen that the link backup function is realized.

final device configuration

[S1]display current-configuration

!Software Version V200R008C00SPC500

#

sysname S1

#

interface Eth-Trunk1

 mode lacp

 max active-linknumber 1

#

interface GigabitEthernet0/0/9

 shutdown

 eth-trunk 1

#

interface GigabitEthernet0/0/10

 eth-trunk 1

#

return

[S2]display current-configuration 

!Software Version V200R008C00SPC500

#

sysname S2

#

interface Eth-Trunk1

 mode lacp

 max active-linknumber 1

#

interface GigabitEthernet0/0/9

 shutdown

 eth-trunk 1

#

interface GigabitEthernet0/0/10

 eth-trunk 1

#

Return

Guess you like

Origin blog.csdn.net/weixin_57099902/article/details/132040680