LoginSignup
3
2

More than 5 years have passed since last update.

Proxmox 4.3でbonding + bridge

Last updated at Posted at 2014-11-23

設定

スクリーンショット 2016-12-08 1.55.19.png

OSを再起動すると適用される。

balance-rr・・・デフォルト。ラウンドロビン通信
active-backup・・・正常系/待機系
balance-xor・・・MACアドレスの値で通信ポートを判断
broadcast・・・全てのNICでパケットを送出
802.3ad・・・・・・802.3ad規格のネットワーク負荷分散
balance-tlb・・・送信のみ負荷分散する。受信は1つのNICを利用
balance-alb・・・送信、受信ともに負荷分散する。

/etc/network/interfaces

source /etc/network/interfaces.d/*

auto lo
iface lo inet loopback

iface eth0 inet manual

iface eth1 inet manual

iface eth2 inet manual

iface eth3 inet manual

auto bond0
iface bond0 inet manual
    slaves eth2 eth3
    bond_miimon 100
    bond_mode active-backup

auto bond1
iface bond1 inet manual
    slaves eth0 eth1
    bond_miimon 100
    bond_mode active-backup

auto vmbr0
iface vmbr0 inet static
    address  192.168.10.4
    netmask  255.255.255.0
    gateway  192.168.10.1
    bridge_ports bond0
    bridge_stp off
    bridge_fd 0

auto vmbr1
iface vmbr1 inet static
    address  192.168.0.4
    netmask  255.255.255.0
    bridge_ports bond1
    bridge_stp off
    bridge_fd 0

確認

# cat /proc/net/bonding/bond0
Ethernet Channel Bonding Driver: v3.6.0 (September 26, 2009)

Bonding Mode: fault-tolerance (active-backup)
Primary Slave: None
Currently Active Slave: eth0
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 queue ID: 0

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

active-backupの切り替え試験

  • eth0を抜くとeth1がActiveに切り替わることを確認。
  • eth0を挿すとeth1がActiveのままであることを確認。
  • eth1を抜くとeth0がActiveに切り替わることを確認。
  • eth1を挿すとeth0がActiveのままであることを確認。
3
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
2