Experiment of link bundling to realize redundant function

1. Set two ordinary routers, two switches and two PC s on the Huawei simulator ensp
First, open ensp, create two routers and two pc users, and connect them with network cables, as shown in the following figure

  1. Configure priority and redundancy of LSW1
    [Huawei]sySname SW1
    [SW1]lacp priority 1000
    [SW1]int Eth-Trunk 1
    [SW1-Eth-Trunk1]bpdu enable
    [SW1-Eth-Trunk1]mode lacp-static
    [SW1-Eth-Trunk1]int e0/0/10
    [SW1-Ethernet0/0/10]eth-trunk 1
    [SW1-Ethernet0/0/10]int e0/0/11
    [SW1-Ethernet0/0/11]eth-trunk 1
    [SW1-Ethernet0/0/12]int e0/0/12
    [SW1-Ethernet0/0/12]eth-trunk 1
    [SW1]dis eth-trunk 1                        
    Least Active-linknumber: 1  Max Active-linknumber: 8                          
    Ethernet0/0/10         Unselect 100M     32768   11     289     10100010  1     
    Ethernet0/0/11         Unselect 100M     32768   12     289     10100010  1     
    Ethernet0/0/12         Unselect 100M     32768   13     289     10100010  1 

    Configure the maximum number of links to run

    [SW1]int Eth-Trunk  1
    [SW1-Eth-Trunk1]max active-linknumber 2
    [SW1-Eth-Trunk1]dis eth-trunk 1                       
    Least Active-linknumber: 1  Max Active-linknumber: 2                          
    ActorPortName          Status   PortType PortPri PortNo PortKey PortState Weight
    Ethernet0/0/10         Unselect 100M     32768   11     289     10100010  1     
    Ethernet0/0/11         Unselect 100M     32768   12     289     10100010  1     
    Ethernet0/0/12         Unselect 100M     32768   13     289     10100010  1
  2. Configure LSW2, do not need to configure priority and maximum number of links
    [Huawei]sysname SW2
    [SW2]int Eth-Trunk 1
    [SW2-Eth-Trunk1]bpdu enable
    [SW2-Eth-Trunk1]mode lacp-static
    [SW2-Eth-Trunk1]q
    [SW2]int e0/0/10
    [SW2-Ethernet0/0/10]eth-trunk 1
    [SW2]int e0/0/11
    [SW2-Ethernet0/0/11]eth-trunk 1
    [SW2-Ethernet0/0/11]q
    [SW2]int e0/0/12
    [SW2-Ethernet0/0/12]eth-trunk 1
    [SW2-Ethernet0/0/12]q
    [SW2]dis eth-trunk 1                         
    Operate status: up          Number Of Up Port In Trunk: 2                     
    Ethernet0/0/10         Selected 100M     32768   11     289     10111100  1     
    Ethernet0/0/11         Selected 100M     32768   12     289     10111100  1     
    Ethernet0/0/12         Unselect 100M     32768   13     289     10110000  1

    3. Configure the gateway IP of lsw1 and lsw2
    Configure SW2

    [SW2]int vlanif 1
    [SW2-Vlanif1]ip add 192.168.10.3 24
    [SW2-Vlanif1]dis ip int brief
    Interface                         IP Address/Mask      Physical   Protocol  
    MEth0/0/1                         unassigned           down       down      
    NULL0                             unassigned           up         up(s)     
    Vlanif1                           192.168.10.3/24      up         up

    Configure SW1

    [SW1]int vlanif 1
    [SW1-Vlanif1]ip add 192.168.10.2 24
    [SW1-Vlanif1]dis ip int brief
    Interface                         IP Address/Mask      Physical   Protocol  
    MEth0/0/1                         unassigned           down       down      
    NULL0                             unassigned           up         up(s)     
    Vlanif1                           192.168.10.2/24      up         up

    4. Configure eth - trunk 2 of LSW1

    [SW1]int Eth-Trunk 2
    [SW1-Eth-Trunk2]trunkport GigabitEthernet 0/0/1 to 0/0/2
    [SW1-Eth-Trunk2]dis eth-trunk 2
    PortName                      Status      Weight 
    GigabitEthernet0/0/1          Up          1      
    GigabitEthernet0/0/2          Up          1  

    5. Configure R1

    [Huawei]sysname R1
    [R1]int Eth-Trunk 2
    [R1-Eth-Trunk2]trunkport GigabitEthernet 0/0/0 to 0/0/1
    [R1-Eth-Trunk2]ip add 192.168.10.1 24
    [R1-Eth-Trunk2]display ip int brief
    Interface                         IP Address/Mask      Physical   Protocol  
    Eth-Trunk2                        192.168.10.1/24      up         up   
    [R1-Eth-Trunk2]int Eth-Trunk 1
    [R1-Eth-Trunk1]trunkport GigabitEthernet 0/0/2 to 0/0/3
    [R1-Eth-Trunk1]ip add 12.0.0.1 30
    [R1-Eth-Trunk1]display ip int brief
    Interface                         IP Address/Mask      Physical   Protocol  
    Eth-Trunk1                        12.0.0.1/30         up         up        
    Eth-Trunk2                        192.168.10.1/24      up         up 

    6. Configure R2

    [R2]interface Eth-Trunk 5
    [R2-Eth-Trunk5]trunkport g 0/0/2 to 0/0/3
    [R2-Eth-Trunk5]ip add 12.0.0.2 30
    [R2-Eth-Trunk5]dis ip int brief
    Interface                         IP Address/Mask      Physical   Protocol  
    Eth-Trunk5                        12.0.0.2/30          up         up   

    R2 needs to configure static route

    [R2]ip route-static 192.168.10.0 24 12.0.0.1
    [R2]display ip routing-table
       12.0.0.0/30  Direct  0    0           D   12.0.0.2        Eth-Trunk5
       12.0.0.2/32  Direct  0    0           D   127.0.0.1       Eth-Trunk5
      127.0.0.0/8   Direct  0    0           D   127.0.0.1       InLoopBack0
      127.0.0.1/32  Direct  0    0           D   127.0.0.1       InLoopBack0
    192.168.10.0/24  Static  60   0          RD   12.0.0.1        Eth-Trunk5

    7.PC test network


    above.

Tags: Operation & Maintenance simulator network

Posted on Wed, 20 May 2020 08:51:22 -0700 by ChrisMartino