랜카드 2개가 장착되어 있는 시스템에 본딩을 사용할수 있다.
윈도우는 티밍, 리눅스는 본딩 기술이다.
가상 이더넷(bond0) 설정
[root@localhost ~]# vi /etc/sysconfig/network-scripts/ifcfg-bond0
DEVICE=bond0
BOOTPROTO=none
ONBOOT=yes
IPADDR=192.168.0.10
NETMASK=255.255.255.0
GATEWAY=192.168.0.1
DNS1=168.126.63.1
DNS1=168.126.63.2
USERCTL=no
NM_CONTROLLED=no
BONDING_MASTER=yes
BONDING_OPTS="mode=balance-alb miimon=100"
# IP를 자동할동으로 사용할 경우 IP 항목 모두 삭제 후 BOOTPROTO=dhcp 로 설정해주면 된다.
[root@localhost ~]# ifconfig
bond0 Link encap:Ethernet HWaddr xx:xx:xx:xx:xx:xx
inet addr:192.168.0.10 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::21e:67ff:fe7a:1295/64 Scope:Link
UP BROADCAST RUNNING MASTER MULTICAST MTU:1500 Metric:1
RX packets:59662 errors:0 dropped:0 overruns:0 frame:0
TX packets:6382 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:14628553 (13.9 MiB) TX bytes:643393 (628.3 KiB)
eth0 Link encap:Ethernet HWaddr 00:1E:67:7A:12:95
UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1
RX packets:12823 errors:0 dropped:0 overruns:0 frame:0
TX packets:790 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1189785 (1.1 MiB) TX bytes:115101 (112.4 KiB)
Interrupt:19 Memory:c2400000-c2420000
eth1 Link encap:Ethernet HWaddr 00:1E:67:7A:12:95
UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1
RX packets:46839 errors:0 dropped:0 overruns:0 frame:0
TX packets:5592 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:13438768 (12.8 MiB) TX bytes:528292 (515.9 KiB)
Interrupt:16 Memory:c2300000-c2320000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:41 errors:0 dropped:0 overruns:0 frame:0
TX packets:41 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:4224 (4.1 KiB) TX bytes:4224 (4.1 KiB)
빨간색을 보면 eth0, eth1은 SLAVE bond0 은 MASTER 로 변경된것을 볼수 있다.
'Linux' 카테고리의 다른 글
리눅스 부팅 에러 (0) | 2013.08.09 |
---|---|
error connection activation failed device not managed by networkmanager or unavailable (0) | 2013.08.08 |
hostname 변경하기 (0) | 2013.08.06 |
ext4 삭제파일 복구 extundelete (0) | 2013.08.05 |
HDIO_DRIVE_CMD(null) (wait for flush complete) failed: Inappropriate ioctl for device (0) | 2013.07.31 |