달력

112024  이전 다음

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30

1. /etc/modprobe.d/bonding.conf 생성 및 설정

# vi /etc/modprobe.d/bonding.conf

alias bond0 bonding

alias bond1 bonding          // 두개일 경우

 

2. NetworkManager 서비스 실행 여부 확인 필요(실행 시 Bonding 구성 안됨)

service NetworkManager stop

chkconfig NetworkManager off

 

3. 설정파일 수정

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

DEVICE=bond0

BOOTPROTO=none

 ONBOOT=yes

IPADDR=xxx.xxx.xxx.xxx

NETMASK=255.255.255.0

GATEWAY=xxx.xxx.xxx.1

BONDING_OPTS="mode=1 miimon=100"

USERCTL=no 

 

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

DEVICE=eth0

BOOTPROTO=none

ONBOOT=YES

HWADDR=00:00:00:00:00:00

MASTER=bond0

SLAVE=yes

USETCTL=no

 

4. 본딩 절체테스트

- 터미널 1번 -

# watch -n1 cat /proc/net/bonding/bond0

 

- 터미널 2번 -

ping GATEWAY IP

 

- 이후 네트워크 케이블 절체 시 ping 빠짐 현상 및 인터페이스 전환 확인 -

- ifenslave -c bond0 eth4 // 명령어를 통한 절체도 확인

 

ex) watch -n1 cat /proc/net/bonding/bond0 

Ethernet Channel Bonding Driver: v2.6.3-rh (June 8, 2005)

 

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

Link Failure Count: 0

Permanent HW addr: 00:24:81:7f:7f:a6

 

Slave Interface: eth1

MII Status: down

Link Failure Count: 0

Permanent HW addr: 00:24:81:7f:82:6e

 

Posted by 짜꾸미의골골몽
|