Proxmox 4.3 bonding+bridge 사용

4670 단어 proxmox

설정



OS를 재부팅할 때 적용됩니다.
balance-R/기본값.윤전 통신
active backup·정상계/대기계
balance-xor/MAC 주소 값에 따라 통신 포트 판단
bradcast...모든 NIC로 그룹 전송
802.3ad···802.3ad 규격의 네트워크 부하 분산
balance-tlb... 발송에만 부하 분산.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 전환 테스트


4
  • eth0이 제거되었는지 확인한 후 eth1이Active로 전환됩니다
  • 4
  • eth0 삽입 후 eth1이 Active 상태를 유지하는지 확인합니다
  • 4
  • eth1을 뽑으면 eth0이Active로 전환됩니다
  • 4
  • eth1을 삽입한 후 eth0이 Active 상태를 유지하는지 확인합니다
  • 좋은 웹페이지 즐겨찾기