[CentOS] Network Bond

2014. 8. 4. 16:34OS/CentOS

# yum -y install ethtool

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

>---------------------------------------<

DEVICE=bond0

ONBOOT=yes

USERCTL=no

NM_CONTROLLED=no

BOOTPROTO=none

IPADDR=192.168.0.10

NETMASK=255.255.255.0

GATEWAY=192.168.0.1

DNS1=168.126.63.1

DNS2=168.126.63.2

>---------------------------------------<


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

>---------------------------------------<

DEVICE=eth0

ONBOOT=yes

USERCTL=no

NM_CONTROLLED=no

BOOTPROTO=none

SLAVE=yes

MASTER=bond0

>---------------------------------------<


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

>---------------------------------------<

DEVICE=eth1

ONBOOT=yes

USERCTL=no

NM_CONTROLLED=no

BOOTPROTO=none

SLAVE=yes

MASTER=bond0

>---------------------------------------<


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

>---------------------------------------<

alias bond0 bonding

options bond0 mode=6 miimon=100

>---------------------------------------<


# vi /etc/sysconfig/network

>---------------------------------------<

NETWORKING=yes

HOSTNAME=primary

GATEWAYDEV=bond0

NETWORKING_IPV6=no

>---------------------------------------<


# modprobe bonding

# service network restart


상태확인

# ifconfig

# cat /proc/net/bonding/bond0

'OS > CentOS' 카테고리의 다른 글

[CentOS] NFS  (0) 2014.09.03
[CentOS] RAID  (0) 2014.08.25
[CentOS] fail2ban  (0) 2014.08.04
[CentOS] snmp  (0) 2014.08.04
[NAS] Xtreamer e-TRAYz  (0) 2012.08.30