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

FusionStorage 8.0.0 Software Installation Guide 02

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 a Server IP Address

Configuring a Server IP Address

Procedure

  1. Log in to the server as user root.
  2. Go to the path for storing the network port configuration file.

    • RedHat Linux, Oracle Linux, CentOS Linux, and EulerOS Linux: Run the cd /etc/sysconfig/network-scripts command.
    • SUSE Linux: Run the cd /etc/sysconfig/network command.

  3. Run the vim ifcfg-Network port name command to edit the network port configuration file. For details about the configuration file, see Table 5-1, Table 5-2, and Table 5-3.

    NOTE:

    If the network port configuration file does not exist in the current path, run the vim ifcfg-Network port name command to create and edit the network port configuration file.

    Table 5-1 Network port configuration file information (IB network port binding)

    Name

    Content (Red Hat, Oracle, CentOS, and EulerOS)

    Content (SUSE)

    ifcfg-ib0

    DEVICE=ib0

    BOOTPROTO=none

    ONBOOT=yes

    MASTER=bondExample

    SLAVE=yes

    USERCTL=no

    NM_CONTROLLED=no

    IPV6INIT=no

    TYPE=InfiniBand

    DEVICE=ib0

    BOOTPROTO=static

    STARTMODE=onboot

    USERCONTROL=no

    NM_CONTROLLED=no

    IPV6INIT=no

    TYPE=InfiniBand

    ifcfg-ib1

    DEVICE=ib1

    BOOTPROTO=none

    ONBOOT=yes

    MASTER=bondExample

    SLAVE=yes

    USERCTL=no

    NM_CONTROLLED=no

    IPV6INIT=no

    TYPE=InfiniBand

    DEVICE=ib1

    BOOTPROTO=static

    STARTMODE=onboot

    USERCONTROL=no

    NM_CONTROLLED=no

    IPV6INIT=no

    TYPE=InfiniBand

    ifcfg-bondIB

    DEVICE=bondIB

    IPADDR=IPv4 address

    PREFIX=Subnet mask

    ONBOOT=yes

    BOOTPROTO=none

    USERCTL=no

    TYPE=Bonding

    MTU=1500

    DEFROUTE=no

    BONDING_OPTS='mode=1 miimon=100'

    BONDING_SLAVE0=eth0

    BONDING_SLAVE1=eth1

    DEVICE=bondIB

    IPADDR=IPv4 address

    PREFIX=Subnet mask

    BOOTPROTO=static

    STARTMODE=onboot

    MTU=1500

    BONDING_MASTER=yes

    DEFROUTE=no

    NM_CONTROLLED=no

    BONDING_MODULE_OPTS='mode=1 miimon=100'

    BONDING_SLAVE0=eth0

    BONDING_SLAVE1=eth1

    Table 5-2 Network port configuration file information (non-IB network port binding)

    Name

    Content (Red Hat, Oracle, CentOS, and EulerOS)

    Content (SUSE)

    ifcfg-eth0

    DEVICE=eth0

    BOOTPROTO=none

    ONBOOT=yes

    MASTER=bondExample

    SLAVE=yes

    USERCTL=no

    NM_CONTROLLED=no

    DEVICE=eth0

    BOOTPROTO=static

    STARTMODE=onboot

    USERCONTROL=no

    NM_CONTROLLED=no

    ifcfg-eth1

    DEVICE=eth1

    BOOTPROTO=none

    ONBOOT=yes

    MASTER=bondExample

    SLAVE=yes

    USERCTL=no

    NM_CONTROLLED=no

    DEVICE=eth1

    BOOTPROTO=static

    STARTMODE=onboot

    USERCONTROL=no

    NM_CONTROLLED=no

    ifcfg-bondEth

    DEVICE=bondEth

    IPADDR=IPv4 address

    PREFIX=Subnet mask

    ONBOOT=yes

    BOOTPROTO=none

    USERCTL=no

    TYPE=Bonding

    MTU=1500

    DEFROUTE=no

    BONDING_OPTS='mode=1 miimon=100'

    NOTE:
    • If the bond2 mode is configured, the BONDING_OPTS parameter is as follows:

      BONDING_OPTS='mode=2 miimon=100 xmit_hash_policy=layer3+4'

    • If the bond4 mode is configured, the BONDING_OPTS parameter is as follows:

      BONDING_OPTS='mode=4 miimon=100 lacp_rate=fast arp_validate=0 xmit_hash_policy=layer3+4'

    DEVICE=bondEth

    IPADDR=IPv4 address

    PREFIX=Subnet mask

    BOOTPROTO=static

    STARTMODE=onboot

    MTU=1500

    BONDING_MASTER=yes

    DEFROUTE=no

    NM_CONTROLLED=no

    BONDING_SLAVE0=eth0

    BONDING_SLAVE1=eth1

    BONDING_MODULE_OPTS='mode=1 miimon=100'

    NOTE:
    • If the bond2 mode is configured, the BONDING_MODULE_OPTS parameter is as follows:

      BONDING_MODULE_OPTS='mode=2 miimon=100 xmit_hash_policy=layer3+4'

    • If the bond4 mode is configured, the BONDING_MODULE_OPTS parameter is as follows:

      BONDING_OPTS='mode=4 miimon=100 lacp_rate=fast arp_validate=0 xmit_hash_policy=layer3+4'

    Table 5-3 Network port configuration file information (non-binding)

    Name

    Content (Red Hat, Oracle, CentOS, and EulerOS)

    ifcfg-eth0

    DEVICE=eth0

    BOOTPROTO=static

    ONBOOT=yes

    STARTMODE=onboot

    IPADDR=IPv4 address

    PREFIX=Subnet mask

    GATEWAY=Default gateway

    DEFROUTE=no

    NM_CONTROLLED=no

    After the configuration file is edited, press Esc and enter :wq to save the settings and exit.

  4. Edit the corresponding configuration file to set the default gateway.

    • RedHat 7.X and EulerOS: Set this parameter in the network port configuration file for which the default gateway needs to be configured, for example, vim /etc/sysconfig/network-scripts/ifcfg-bondIB.
    • RedHat 6.X, Oracle, and CentOS: vim /etc/sysconfig/network
    • SUSE: vim /etc/sysconfig/network/routes
    Add the default gateway information in the configuration file.
    • RedHat, Oracle, CentOS, and EulerOS: GATEWAY=Default gateway
    • SUSE: default Default gateway

    After the configuration file is edited, press Esc and enter :wq to save the settings and exit.

  5. Run the following command to restart the network service:

    service network restart

Translation
Download
Updated: 2019-07-12

Document ID: EDOC1100081424

Views: 1443

Downloads: 7

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