Playing Huawei Data Center Switch Series | Configuration Switzer Double Original Access IP Network Example

tags: Video learning note  golang

Material Source: Huawei Data Center Switch Configuration Guide

While learning the test notes while learning, and sharing with you, the infringement is deleted, thank you for your support!

Summary sticker:Playing Huawei Data Center Switch Series | Summary_Cocogsta's blog-CSDN blog


Demand for networking

Such asfigure 1It shows that the IP network can meet the M-lag dual-return IP network:

  • When a connection link fails, the traffic can be quickly switched to another link to ensure reliability.
  • In order to efficiently use bandwidth, the two links are in the Active state at the same time, and the traffic can be used to use load sharing.

Configuration

Use the following ideas to configure the M-LAG dual-return access IP network:

  1. Configure the uplink interface on Switch to an ETH-TRUNK.
  2. Configure V-Stp, DFS Group, Peer-Link, and M-Lg interfaces on Switcha and Switchb.
  3. The VLANIF interface IP address and MAC address are configured on Switcha and Switchb as the dual -live gateway to access the device.
  4. The OSPF features are configured on Switcha, Switchb and SwitchC to ensure the three layers of interoperability.
  5. Configure the Monitor Link associated upward interface and downlink interface on Switcha and Switchb to avoid being discarded by user side traffic due to uplink chain failure.

Steps

  1. Configure the upper interface on Switch to be bound in an Eth-Trunk

# Configure Switch.

<HUAWEI> system-view
[~HUAWEI] sysname Switch
[*HUAWEI] commit
[~Switch] vlan batch 11
[*Switch] interface eth-trunk 20
[*Switch-Eth-Trunk20] mode lacp-static
[*Switch-Eth-Trunk20] port link-type trunk
[*Switch-Eth-Trunk20] port trunk allow-pass vlan 11
[*Switch-Eth-Trunk20] trunkport 10ge 1/0/1 to 1/0/4
[*Switch-Eth-Trunk20] quit
[*Switch] commit
  1. Configure V-Stp, DFS Group, Peer-Link, and M-Lag interfaces on Switcha and SwitchB respectively

# Configure Switcha.

<HUAWEI> system-view
[~HUAWEI] sysname SwitchA
[*HUAWEI] commit
[~SwitchA] stp mode rstp
[~SwitchA] stp bridge-address 1-1-1
[*SwitchA] stp v-stp enable
[*SwitchA] interface loopback 0
[*SwitchA-LoopBack0] ip address 10.1.1.1 32
[*SwitchA-LoopBack0] quit
[*SwitchA] dfs-group 1
[*SwitchA-dfs-group-1] source ip 10.1.1.1
[*SwitchA-dfs-group-1] priority 150
[*SwitchA-dfs-group-1] quit
[*SwitchA] interface eth-trunk 1
[*SwitchA-Eth-Trunk1] trunkport 10ge 1/0/4
[*SwitchA-Eth-Trunk1] trunkport 10ge 1/0/5
[*SwitchA-Eth-Trunk1] mode lacp-static
[*SwitchA-Eth-Trunk1] peer-link 1
[*SwitchA-Eth-Trunk1] quit
[*SwitchA] vlan batch 11
[*SwitchA] interface eth-trunk 10
[*SwitchA-Eth-Trunk10] mode lacp-static
[*SwitchA-Eth-Trunk10] port link-type trunk
[*SwitchA-Eth-Trunk10] port trunk allow-pass vlan 11
[*SwitchA-Eth-Trunk10] trunkport 10ge 1/0/2
[*SwitchA-Eth-Trunk10] trunkport 10ge 1/0/3
[*SwitchA-Eth-Trunk10] dfs-group 1 m-lag 1
[*SwitchA-Eth-Trunk10] quit
[*SwitchA] commit

# Configure Switchb.

<HUAWEI> system-view
[~HUAWEI] sysname SwitchB
[*HUAWEI] commit
[~SwitchB] stp mode rstp
[~SwitchB] stp bridge-address 1-1-1
[*SwitchB] stp v-stp enable
[*SwitchB] interface loopback 0
[*SwitchB-LoopBack0] ip address 10.1.1.2 32
[*SwitchB-LoopBack0] quit
[*SwitchB] dfs-group 1
[*SwitchB-dfs-group-1] source ip 10.1.1.2
[*SwitchB-dfs-group-1] priority 120
[*SwitchB-dfs-group-1] quit
[*SwitchB] interface eth-trunk 1
[*SwitchB-Eth-Trunk1] trunkport 10ge 1/0/4
[*SwitchB-Eth-Trunk1] trunkport 10ge 1/0/5
[*SwitchB-Eth-Trunk1] mode lacp-static
[*SwitchB-Eth-Trunk1] peer-link 1
[*SwitchB-Eth-Trunk1] quit
[*SwitchB] vlan batch 11
[*SwitchB] interface eth-trunk 10
[*SwitchB-Eth-Trunk10] mode lacp-static
[*SwitchB-Eth-Trunk10] port link-type trunk
[*SwitchB-Eth-Trunk10] port trunk allow-pass vlan 11
[*SwitchB-Eth-Trunk10] trunkport 10ge 1/0/2
[*SwitchB-Eth-Trunk10] trunkport 10ge 1/0/3
[*SwitchB-Eth-Trunk10] dfs-group 1 m-lag 1
[*SwitchB-Eth-Trunk10] quit
[*SwitchB] commit
  1. Configure the VLANIF interface IP address and MAC address on Switcha and Switchb respectively as the dual -live gateway to access the device

The IP and virtual Mac configuration at both ends requires exactly the same, the purpose is to provide the same IP and virtual Macs for M-Lg.

# Configure Switcha.

[~SwitchA] interface vlanif 11
[*SwitchA-Vlanif11] ip address 10.2.1.1 24
[*SwitchA-Vlanif11] mac-address 0000-5e00-0101
[*SwitchA-Vlanif11] quit
[*SwitchA] commit

# Configure Switchb.

[~SwitchB] interface vlanif 11
[*SwitchB-Vlanif11] ip address 10.2.1.1 24
[*SwitchB-Vlanif11] mac-address 0000-5e00-0101
[*SwitchB-Vlanif11] quit
[*SwitchB] commit
  1. Configure the OSPF function on Switcha, SwitchB and SwitchC to ensure the three layers of interoperability

# Configure Switcha.

[~SwitchA] interface 10ge 1/0/1
[~SwitchA-10GE1/0/1] undo portswitch
[*SwitchA-10GE1/0/1] ip address 10.3.1.1 24
[*SwitchA-10GE1/0/1] quit
[*SwitchA] ospf 1
[*SwitchA-ospf-1] area 0
[*SwitchA-ospf-1-area-0.0.0.0] network 10.1.1.1 0.0.0.0
[*SwitchA-ospf-1-area-0.0.0.0] network 10.2.1.0 0.0.0.255
[*SwitchA-ospf-1-area-0.0.0.0] network 10.3.1.0 0.0.0.255
[*SwitchA-ospf-1-area-0.0.0.0] quit
[*SwitchA-ospf-1] quit
[*SwitchA] commit

# Configure Switchb.

[~SwitchB] interface 10ge 1/0/1
[~SwitchB-10GE1/0/1] undo portswitch
[*SwitchB-10GE1/0/1] ip address 10.4.1.1 24
[*SwitchB-10GE1/0/1] quit
[*SwitchB] ospf 1
[*SwitchB-ospf-1] area 0
[*SwitchB-ospf-1-area-0.0.0.0] network 10.1.1.2 0.0.0.0
[*SwitchB-ospf-1-area-0.0.0.0] network 10.2.1.0 0.0.0.255
[*SwitchB-ospf-1-area-0.0.0.0] network 10.4.1.0 0.0.0.255
[*SwitchB-ospf-1-area-0.0.0.0] quit
[*SwitchB-ospf-1] quit
[*SwitchB] commit

# Configure Switchc.

<HUAWEI> system-view
[~HUAWEI] sysname SwitchC
[*HUAWEI] commit
[~SwitchC] interface 10ge 1/0/1
[~SwitchC-10GE1/0/1] undo portswitch
[*SwitchC-10GE1/0/1] ip address 10.3.1.2 24
[*SwitchC-10GE1/0/1] quit
[*SwitchC] interface 10ge 1/0/2
[*SwitchC-10GE1/0/2] undo portswitch
[*SwitchC-10GE1/0/2] ip address 10.4.1.2 24
[*SwitchC-10GE1/0/2] quit
[*SwitchC] ospf 1
[*SwitchC-ospf-1] area 0
[*SwitchC-ospf-1-area-0.0.0.0] network 10.3.1.0 0.0.0.255
[*SwitchC-ospf-1-area-0.0.0.0] network 10.4.1.0 0.0.0.255
[*SwitchC-ospf-1-area-0.0.0.0] quit
[*SwitchC-ospf-1] quit
[*SwitchC] commit
  1. Configure the Monitor Link associated with uplink interface and downlink interface on Switcha and Switchb

# Configure Switcha.

[~SwitchA] monitor-link group 1
[*SwitchA-mtlk-group1] port 10ge 1/0/1 uplink
[*SwitchA-mtlk-group1] port eth-trunk 10 downlink 1
[*SwitchA-mtlk-group1] quit
[*SwitchA] commit

# Configure Switchb.

[~SwitchB] monitor-link group 1
[*SwitchB-mtlk-group1] port 10ge 1/0/1 uplink
[*SwitchB-mtlk-group1] port eth-trunk 10 downlink 1
[*SwitchB-mtlk-group1] quit
[*SwitchB] commit
  1. Verification configuration results

Excuting an orderdisplay dfs-groupCheck the relevant information of m-lag.

# View M-Lg information with DFS Group number 1.

[~SwitchA] display dfs-group 1 m-lag
*                : Local node
Heart beat state : OK
Node 1 *
  Dfs-Group ID   : 1
  Priority       : 150
  Address        : ip address 10.1.1.1
  State          : Master
  Causation      : -
  System ID      : 00e0-fc95-7c31
  SysName        : SwitchA
  Version        : V200R020C00
  Device Type    : CE6881
Node 2
  Dfs-Group ID   : 1
  Priority       : 120
  Address        : ip address 10.1.1.2
  State          : Backup
  Causation      : -
  System ID      : 00e0-fc95-7c11
  SysName        : SwitchB
  Version        : V200R020C00
  Device Type    : CE6881

# View m-lag information on switcha.

[~SwitchA] display dfs-group 1 node 1 m-lag brief
* - Local node

M-Lag ID     Interface      Port State    Status                Consistency-check
       1     Eth-Trunk 10   Up            active(*)-active      --              


Failed reason:                                                                  
    1 -- Relationship between vlan and port is inconsistent                     
    2 -- STP configuration under the port is inconsistent                       
    3 -- STP port priority configuration is inconsistent                        
    4 -- LACP mode of M-LAG is inconsistent                                     
    5 -- M-LAG configuration is inconsistent                                    
    6 -- The number of M-LAG members is inconsistent       

# View m-lag information on switchb.

[~SwitchB] display dfs-group 1 node 2 m-lag brief
* - Local node

M-Lag ID     Interface      Port State    Status                Consistency-check
       1     Eth-Trunk 10   Up            active-active(*)      -- 


Failed reason:                                                                  
    1 -- Relationship between vlan and port is inconsistent                     
    2 -- STP configuration under the port is inconsistent                       
    3 -- STP port priority configuration is inconsistent                        
    4 -- LACP mode of M-LAG is inconsistent                                     
    5 -- M-LAG configuration is inconsistent                                    
    6 -- The number of M-LAG members is inconsistent  

,“Heart beat state” “OK”, ;SwitchA Node 1, 150,“State” “Master”;SwitchB Node 2, The priority is 120, and the state of "State" is "backup". At the same time, the status of "causion" is "-", Node 1's "port state" state is "up", Node 2's "port state" state is "up", and the M-lag status of Node 1 and Node 2 is both in the state of Node 1 and Node 2 are both. "Active" indicates that the configuration of M-Lg is correct.

Intelligent Recommendation

Playing Huawei Data Center Switch Series | Configure MQC -based implementation of VLAN MAPPING Example

Material Source: Huawei Data Center Switch Configuration Guide While learning the test notes while learning, and sharing with you, the infringement is deleted, thank you for your support! Summary stic...

Playing Huawei Data Center Switch Series | Configure handmade load sharing mode link aggregates example

Material Source: Huawei Data Center Switch Configuration Guide While learning the test notes while learning, and sharing with you, the infringement is deleted, thank you for your support! Summary stic...

Playing Huawei Data Center Switch Series | Configuration based on interface division VLAN examples

Material Source: Huawei Data Center Switch Configuration Guide While learning the test notes while learning, and sharing with you, the infringement is deleted, thank you for your support! Summary stic...

Play Huawei Data Center Switch Series | Configure MUX VLAN Example (Access layer equipment)

Material Source: Huawei Data Center Switch Configuration Guide While learning the test notes while learning, and sharing with you, the infringement is deleted, thank you for your support! Summary stic...

Playing Huawei Data Center Switch Series | Cross -device aggregation (single machine) configured LACP mode

Material Source: Huawei Data Center Switch Configuration Guide While learning the test notes while learning, and sharing with you, the infringement is deleted, thank you for your support! Summary stic...

More Recommendation

Playing Huawei Data Center Switch Series | With ETH-TRUNK interface traffic local priority forwarding

Material Source: Huawei Data Center Switch Configuration Guide While learning the test notes while learning, and sharing with you, the infringement is deleted, thank you for your support! Summary stic...

Playing Huawei Data Center Switch Series | Configure VLAN MAPPING based on VLAN (2 to 2)

Material Source: Huawei Data Center Switch Configuration Guide While learning the test notes while learning, and sharing with you, the infringement is deleted, thank you for your support! Summary stic...

Play Huawei Data Center Switch Series | Configure a flexible qinq example based on VLAN ID

Material Source: Huawei Data Center Switch Configuration Guide While learning the test notes while learning, and sharing with you, the infringement is deleted, thank you for your support! Summary stic...

Play Huawei Data Center Switch Series | Configure MAC address drift detection example

Material Source: Huawei Data Center Switch Configuration Guide While learning the test notes while learning, and sharing with you, the infringement is deleted, thank you for your support! Summary stic...

Play Huawei Data Center Switch Series | Configure VLAN -based MAC address Learning Restriction Restriction Example

Material Source: Huawei Data Center Switch Configuration Guide While learning the test notes while learning, and sharing with you, the infringement is deleted, thank you for your support! Summary stic...

Copyright  DMCA © 2018-2026 - All Rights Reserved - www.programmersought.com  User Notice

Top