設定

HW 設定

e100

/etc/modules.conf

alias eth0 e100
alias eth1 e100
options e100 e100_speed_duplex=1,4
説明
0Auto Negotiate
110baseT/Half-Duplex
210baseT/Full-Duplex
3100baseTX/Half-Duplex
4100baseTX/Full-Duplex

e1000

/etc/modules.conf

alias eth0 e1000
alias eth1 e1000
options e1000 Speed=10,100 Duplex=1,2
Speed説明
0Auto Negotiate
1010baseT
100100baseTX
10001000baseTX
Duplex説明
0Auto Negotiate
1Half-Duplex
2Full-Duplex

通常設定 (IPv4)

/etc/sysconfig/network

/etc/sysconfig/network-scripts/ifcfg-n

/etc/sysconfig/network-scripts/route-ethn

# ifdown ethn
# ifup ethn

/etc/sysconfig/static-routes

/etc/hosts

/etc/resolv.conf

/etc/nsswitch.conf

Bonding Interface (IPv4)

/etc/modprobe.conf

オプション説明
mode=n冗長化されたリンクの利用方法
別表参照
miimon=nMII のリンクを監視する間隔 (デフォルトは 0, 100msec が推奨)
0 だと MII リンクの監視を行わない
リンク ダウンを伴わない障害には対応できない
arp_interval=nARP 送信間隔 (デフォルトは 0)
0 だと ARP ターゲット監視を行わない
arp_ip_target=nARP を要求する IP アドレス
カンマ区切りで最大 16 個まで設定可能
primary=ethnPrimary, Slave を明示的に指定する (Preempt を有効にする)


モード説明MAC アドレス
0ラウンドロビンのロードバランシング (デフォルト)全ポート同じ
1Active - Standby全ポート同じだが、アクティブ ポートのみ使用
2MAC アドレス XOR のロードバランシング全ポート同じ
3ブロードキャスト (特殊用途)全ポート同じ
4Link Aggrigation (IEEE 802.3ad)全ポート同じ
5ポートの使用率でバランシングポートにより異なる
6ポートの使用率でバランシングポートにより異なる

/etc/sysconfig/network-scripts/ifcfg-bond0

DEVICE=bond0
ONBOOT=yes
BOOTPROTO=none
IPADDR=10.0.0.1
NETMASK=255.255.255.0
BONDING_OPTS="option"

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

DEVICE=eth1
BOOTPROTO=none
ONBOOT=yes
MASTER=bond0
SLAVE=yes

/etc/sysconfig/network-scripts/ifcfg-eth1

DEVICE=eth2
BOOTPROTO=none
ONBOOT=yes
MASTER=bond0
SLAVE=yes

IEEE 802.Q Tagging

/etc/sysconfig/network

NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=hostname
VLAN=yes
VLAN_NAME_TYPE=type

/etc/sysconfig/network-scripts/ifcfg-ethn

DEVICE=ethn
TYPE=Ethernet
BOOTPROTO=none
ONBOOT=yes

/etc/sysconfig/network-scripts/ifcfg-vlan-if

DEVICE=vlan-if
PHYSDEV=bondn vlan-ifに物理IFを含まない場合のみ必要
BOOTPROTO=static
ONBOOT=yes
IPADDR=ip-addr
NETMASK=netmask
NETWORK=network
USERCTL=no
VLAN=yes

確認

mii-tool

# mii-tool
eth0: 10 Mbit, half duplex, link ok
eth1: 100 Mbit, full duplex, link ok

ethtool

hostname$ ethtool eth0
Settings for eth0:
        Supported ports: [ FIBRE ]
        Supported link modes:   1000baseT/Full
        Supports auto-negotiation: Yes
        Advertised link modes:  1000baseT/Full
        Advertised auto-negotiation: Yes
        Speed: 1000Mb/s
        Duplex: Full
        Port: FIBRE
        PHYAD: 2
        Transceiver: internal
        Auto-negotiation: on
        Supports Wake-on: d
        Wake-on: d
        Link detected: yes

Bonding

Round Robin

# cat /proc/net/bonding/bond0
Ethernet Channel Bonding Driver: v3.4.0-2 (October 7, 2008)

Bonding Mode: load balancing (round-robin)
MII Status: up
MII Polling Interval (ms): 100
Up Delay (ms): 0
Down Delay (ms): 0

Slave Interface: eth0
MII Status: up
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: xx:xx:xx:xx:xx:xx

Slave Interface: eth1
MII Status: up
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: xx:xx:xx:xx:xx:xx

Active-Standby

短命ポート (Ephemeral Port)


トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2020-07-08 (水) 18:10:14