Skip to main content
  • Place orders quickly and easily
  • View orders and track your shipping status
  • Create and access a list of your products
  • Manage your Dell EMC sites, products, and product-level contacts using Company Administration.

「LinuxでのNICチャネル結合を作成する方法(英語)」

Summary: この記事では、RHEL 5.x/6.xでNICチャネル ボンディングを作成する方法について説明します。

This article applies to   This article does not apply to 

Symptoms

 

Cause

 

Resolution

環境: RHEL 5.x/6.x

次の例に従うと、eth0、eth1、ラウンドロビン ポリシーを使用して、フォールト トレランスとロード バランシングのためのNICチャネル ボンディングが作成されます。

  1. rootとして、Bond0構成ファイルを作成します。# vi /etc/sysconfig/network-scripts/ifcfg-bond0
     
  2. bond0構成ファイルに次の行を追加します。

    DEVICE = bond0
    IPADDR = 192.168.1.10
    NETWORK = 192.168.1.0
    NETMASK = 255.255.255.0
    USERCTL = NO
    BOOTPROTO = NONE
    ONBOOT = はい
    BONDING_OPTS = "mode = 0 miimon = 100"
注:IPアドレス、ネットワーク、ネットマスクの設定を適宜置き換えます。
注:ボンディング オプションの詳細については、Red Hatの導入ガイドを参照してください
  1. eth0の構成ファイルを開きます。

    # vi /etc/sysconfig/network-scripts/ifcfg-eth0

     
  2. eth0設定ファイルを編集し、「MASTER」と「SLAVE」のパラメーターを追加します。

    デバイス = eth0
    USERCTL = いいえ
    ONBOOT = はい
    マスター = bond0
    SLAVE = はい
    BOOTPROTO = なし

     
  3. eth1に対してステップ#3と#4を繰り返します。
     
  4. カーネル モジュール構成ファイルを開きます。

    RHEL5 # vi /etc/modprobe.conf

    RHEL6 # vi /etc/modprobe.d/modprobe.conf
     
メモ: modprobe.confファイルはRHEL6には存在しません。上記の手順に従って、ファイルが作成されます。
  1. modprobe.confファイルに次の行を追加します。

    エイリアス bond0 ボンディング
    オプション bond0 mode=balance-rr miimon=100

     
  2. ボンディング モジュールをロードします。

    #modprobeボンディング

     
  3.  ネットワーク サービスを再起動します。

    # サービスネットワークの再起動

     
  4. ifconfigコマンドの出力を確認して、ボンディング インターフェイスが正常に作成されたことを確認します。

    #ifconfig

     
出力には、bond0 up and running がマスターとして、eth0\eth1 up and running がスレーブとして一覧表示されます。

  

Affected Products

Servers, PowerEdge, Red Hat Enterprise Linux Version 5, Red Hat Enterprise Linux Version 6
Article Properties
Article Number: 000177048
Article Type: Solution
Last Modified: 08 Oct 2021
Version:  5
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.
Article Properties
Article Number: 000177048
Article Type: Solution
Last Modified: 08 Oct 2021
Version:  5
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.