No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Typical Configuration Examples

CloudEngine 12800, 12800E, 8800, 7800, 6800, and 5800 Series Switches

Rate and give feedback :
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Configuring Interoperation Between CE Series Switches and Linux Servers Running SUSE11 SP3

Configuring Interoperation Between CE Series Switches and Linux Servers Running SUSE11 SP3

Applicable Products and Versions

This example applies to CE series switches of V100R001C00 or later.

Networking Requirements

In Figure 3-9, the Linux server uses SUSE11 SP3, and the Linux server needs to connect to the CE series switch through link aggregation to implement load balancing.

Figure 3-9 Connecting a CE series switch to a Linux server

Configuration Roadmap

The network adapter group can be configured to work in load balancing mode to meet user requirements. The configuration roadmap is as follows:
  1. Create an Eth-Trunk on the CE series switch and configure the Eth-Trunk to work in static LACP mode to increase the interface bandwidth and reliability.
  2. Configure dynamic link aggregation for the network adapter group, that is, configure Mode4 (IEEE 802.3ad), to improve the link reliability, increase the interface bandwidth, and implement link load balancing.

Procedure

  1. Configure an Eth-Trunk and a VLAN on the CE series switch.

    <HUAWEI> system-view 
    [~HUAWEI] sysname SwitchA 
    [*HUAWEI] commit 
    [~SwitchA] vlan batch 2                             //Create VLAN 2.
    [*SwitchA] interface eth-trunk 1 
    [*SwitchA-Eth-Trunk1] mode lacp-static                     //Configure the Eth-Trunk to work in static LACP mode.  
    [*SwitchA-Eth-Trunk1] trunkport 10ge 1/0/1 to 1/0/2         //Add interfaces of SwitchA connected to the server to the Eth-Trunk.  
    [*SwitchA-Eth-Trunk1] port default vlan 2  
    [*SwitchA-Eth-Trunk1] commit 

  2. Configure a network adapter group of the server.
    1. Log in to the server as the root user.

    2. Access the network adapter binding and network configuration page.

      Click Computer and click Network: Wired on the displayed page.

    3. Before performing network adapter binding, configure No Link and IP Setup (Bonding Slaves) for the network adapters to be bound.

      1. On the Overview tab page of the Network Settings page, select names of network adapters to be bound and click Edit. The Network Card Setup page is displayed.

      2. On the Network Card Setup page, select No Link and IP Setup (Bonding Slaves) and click Next to access the Network Settings page.

    4. Create network adapter binding and configure the name for network adapter binding.

      1. On the Network Settings page, click Add to create network adapter binding. Access the Hardware Dialo page.

      2. On the Hardware Dialog page, set Device Type to Bond and configure the name for network adapter binding. Here, the name is set to 0. Click Next to access the Network Card Setup page.

    5. Configure network parameters of network adapter binding, including the IP address and subnet mask.

      1. On the Address tab page of the Network Card Setup page, enter the IP address and subnet mask of the bound network adapter. For example, the IP address of bond0 is set to 192.168.14.208 and the subnet mask is set to 255.255.255.0.

      2. Click Bond Slaves.

      3. Click Yes in the dialog box that is displayed.

    6. Select the network adapter to be bound and configure the binding mode.

      1. In Bond Slaves, select the network adapter to be bound.

      2. In Bond Driver Options, click and select the binding mode.

        NOTE:
        In the figure, miimon indicates how long a link is checked, in milliseconds. The value 100 indicates 100 ms, that is, 0.1s. That is, when one link is terminated, the backup link is used within 0.1s.
      3. Click Next to access the Network Settings page.

    7. Add the default route so that bond0 can communicate.

      1. On the Network Settings page, click Routing.

      2. On the Routing tab page, enter the gateway address of the bound network adapter. Click OK.

    8. Confirm the configuration of the bound network adapter.

      On the Network Settings page, select bond0 to check details.

    9. Save the configuration of the bound network adapter to make the configuration take effect.

      1. Click OK.

      2. Save the configurations automatically.

Verifying the configuration

  1. Run the display eth-trunk [ trunk-id ] command in any view to check the Eth-Trunk status. Determine the Eth-Trunk status based on key information in Table 3-17.
    <HUAWEI> display eth-trunk 1
    Eth-Trunk1's state information is:                                              
    Local:                                                                          
    LAG ID: 1                       Working Mode: Static                            
    Preempt Delay: Disabled         Hash Arithmetic: profile default                
    System Priority: 32768          System ID: 04f9-388d-e681                       
    Least Active-linknumber: 1      Max Active-linknumber: 8                        
    Operating Status: up          Number Of Up Ports In Trunk: 2                  
    Timeout Period: Slow                                                            
    --------------------------------------------------------------------------------
    ActorPortName          Status   PortType PortPri PortNo PortKey PortState Weight
    10GE1/0/1                Selected 10GE       32768   5      257     10100010  1     
    10GE1/0/2                Selected 10GE       32768   6      257     10100010  1     
    ……
    Table 3-17 Eth-Trunk status

    Check Item

    Normal Status

    Working Mode

    Static.

    Operating Status

    up: The Eth-Trunk is Up.

    Number Of Up Ports In Trunk

    Number of Up member interfaces in the Eth-Trunk. If the value is the same as the number of interfaces, the Eth-Trunk status is normal.

    Status

    Selected: The member interface is selected as the active interface.

    Weight

    Weight of the member interface.

  2. Log in to the server and ping the gateway address of the access switch, for example, ping 192.168.14.1, and press Enter.

    The following information indicates that the network configuration is successful.
    PING 192.168.14.1 (192.168.14.1) 56(84) bytes of data.
    64 bytes from 192.168.14.1: icmp_seq=1 ttl=64 time=1.10ms
    64 bytes from 192.168.14.1: icmp_seq=2 ttl=64 time=0.623ms

Configuration Files

SwitchA configuration file
#
sysname SwitchA
#
vlan batch 2
#
interface Eth-Trunk1
 port default vlan 2
 mode lacp-static
#
interface 10GE1/0/1
 eth-trunk 1
#
interface 10GE1/0/2
 eth-trunk 1
#
return
Download
Updated: 2019-04-03

Document ID: EDOC1000039339

Views: 103784

Downloads: 7450

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next