"리눅스 본딩 2개 구성 (다른 게이트웨이 사용)"의 두 판 사이의 차이

잔글 (봇: 자동으로 텍스트 교체 (-==참고 자료== +==참고==))
 
(사용자 2명의 중간 판 22개는 보이지 않습니다)
1번째 줄: 1번째 줄:
==개요==
==개요==
;리눅스 본딩 구성
;리눅스 본딩 2개 구성 (다른 게이트웨이 사용)
*eth0, eth1 → bond0
*eth0 + eth1 → bond0
*eht2, eth3 → bond1  
*eht2 + eth3 → bond1  
*bond0과 bond1이 다른 게이트웨이를 사용하는 경우
*bond0과 bond1이 다른 게이트웨이를 사용하는 경우
*/etc/sysconfig/network-scripts/ 폴더에 아래 파일들 설정
*아래 파일들 참고하여 설정


==ifcfg-eth0==
==[[/etc/modprobe.d/bonding.conf]]==
<source lang='xorg_conf'>
*다음 내용으로 파일 생성<ref>bonding.conf 파일 생성하지 않고 [[/etc/modprobe.conf]] 하단에 기입해도 되지만 권장되지 않음</ref>
<source lang='aconf'>
alias bond0 bonding
alias bond1 bonding
</source>
 
==[[/etc/sysconfig/network-scripts/ifcfg-eth0]]==
<source lang='aconf'>
DEVICE=eth0
DEVICE=eth0
MASTER=bond0
MASTER=bond0
14번째 줄: 21번째 줄:
BOOTPROTO=none
BOOTPROTO=none
USERCTL=no
USERCTL=no
NM_CONTROLLED=no
</source>
</source>


==ifcfg-eth1==
==/etc/sysconfig/network-scripts/ifcfg-eth1==
<source lang='xorg_conf'>
<source lang='aconf'>
DEVICE=eth1
DEVICE=eth1
MASTER=bond0
MASTER=bond0
24번째 줄: 32번째 줄:
BOOTPROTO=none
BOOTPROTO=none
USERCTL=no
USERCTL=no
NM_CONTROLLED=no
</source>
</source>


==ifcfg-eth2==
==/etc/sysconfig/network-scripts/ifcfg-eth2==
<source lang='xorg_conf'>
<source lang='aconf'>
DEVICE=eth2
DEVICE=eth2
MASTER=bond1
MASTER=bond1
34번째 줄: 43번째 줄:
BOOTPROTO=none
BOOTPROTO=none
USERCTL=no
USERCTL=no
NM_CONTROLLED=no
</source>
</source>


==ifcfg-eth3==
==/etc/sysconfig/network-scripts/ifcfg-eth3==
<source lang='xorg_conf'>
<source lang='aconf'>
DEVICE=eth3
DEVICE=eth3
MASTER=bond1
MASTER=bond1
44번째 줄: 54번째 줄:
BOOTPROTO=none
BOOTPROTO=none
USERCTL=no
USERCTL=no
NM_CONTROLLED=no
</source>
</source>


==ifcfg-bond0==
==[[/etc/sysconfig/network-scripts/ifcfg-bond0]]==
<source lang='xorg_conf'>
<source lang='aconf'>
DEVICE=bond0
DEVICE=bond0
IPADDR=192.168.0.101
IPADDR=192.168.0.101
58번째 줄: 69번째 줄:
BOOTPROTO=none
BOOTPROTO=none
USERCTL=no
USERCTL=no
NM_CONTROLLED=no
</source>
</source>


==ifcfg-bond1==
==/etc/sysconfig/network-scripts/ifcfg-bond1==
<source lang='xorg_conf'>
<source lang='aconf'>
DEVICE=bond1
DEVICE=bond1
IPADDR=10.10.0.101
IPADDR=10.10.0.101
69번째 줄: 81번째 줄:
BOOTPROTO=none
BOOTPROTO=none
USERCTL=no
USERCTL=no
NM_CONTROLLED=no
</source>
</source>


==route-bond1==
==/etc/sysconfig/network-scripts/route-bond1==
<source lang='xorg_conf'>
<source lang='aconf'>
10.10.0.0/16 via 10.10.0.1 dev bond1
10.10.0.0/16 via 10.10.0.1 dev bond1
</source>
==네트워크 재시작==
<source lang='console'>
[root@zetawiki ~]# /etc/init.d/network restart
Shutting down interface bond0:                            [  OK  ]
Shutting down interface bond1:                            [  OK  ]
Shutting down loopback interface:                          [  OK  ]
Bringing up loopback interface:                            [  OK  ]
Bringing up interface bond0:                              [  OK  ]
Bringing up interface bond1:                                [  OK  ]
</source>
</source>


==같이 보기==
==같이 보기==
*[[리눅스 본딩 모드]]
* [[리눅스 본딩 구성 (같은 게이트웨이 사용)]]
*[[본딩]]
* [[리눅스 본딩 구성]]
* [[리눅스 본딩 모드]]
* [[본딩]]
 
==주석==
<references/>


==참고 자료==
==참고==
*http://snoopybox.co.kr/1730
*http://snoopybox.co.kr/1730
*http://www.sohailriaz.com/howto-add-multiple-bonding-interface/
*http://www.sohailriaz.com/howto-add-multiple-bonding-interface/
*https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Deployment_Guide/s2-networkscripts-interfaces-chan.html


[[분류: 리눅스 네트워크]]
[[분류: 리눅스 네트워크]]

2017년 7월 11일 (화) 04:17 기준 최신판

1 개요[ | ]

리눅스 본딩 2개 구성 (다른 게이트웨이 사용)
  • eth0 + eth1 → bond0
  • eht2 + eth3 → bond1
  • bond0과 bond1이 다른 게이트웨이를 사용하는 경우
  • 아래 파일들 참고하여 설정

2 /etc/modprobe.d/bonding.conf[ | ]

  • 다음 내용으로 파일 생성[1]
aconf
Copy
alias bond0 bonding
alias bond1 bonding

3 /etc/sysconfig/network-scripts/ifcfg-eth0[ | ]

aconf
Copy
DEVICE=eth0
MASTER=bond0
SLAVE=yes
ONBOOT=yes
BOOTPROTO=none
USERCTL=no
NM_CONTROLLED=no

4 /etc/sysconfig/network-scripts/ifcfg-eth1[ | ]

aconf
Copy
DEVICE=eth1
MASTER=bond0
SLAVE=yes
ONBOOT=yes
BOOTPROTO=none
USERCTL=no
NM_CONTROLLED=no

5 /etc/sysconfig/network-scripts/ifcfg-eth2[ | ]

aconf
Copy
DEVICE=eth2
MASTER=bond1
SLAVE=yes
ONBOOT=yes
BOOTPROTO=none
USERCTL=no
NM_CONTROLLED=no

6 /etc/sysconfig/network-scripts/ifcfg-eth3[ | ]

aconf
Copy
DEVICE=eth3
MASTER=bond1
SLAVE=yes
ONBOOT=yes
BOOTPROTO=none
USERCTL=no
NM_CONTROLLED=no

7 /etc/sysconfig/network-scripts/ifcfg-bond0[ | ]

aconf
Copy
DEVICE=bond0
IPADDR=192.168.0.101
NETMASK=255.255.255.0
GATEWAY=192.168.0.1
DNS1=8.8.8.8
DNS2=8.8.4.4
BONDING_OPTS="mode=1 miimon=100"
ONBOOT=yes
BOOTPROTO=none
USERCTL=no
NM_CONTROLLED=no

8 /etc/sysconfig/network-scripts/ifcfg-bond1[ | ]

aconf
Copy
DEVICE=bond1
IPADDR=10.10.0.101
NETMASK=255.255.255.0
BONDING_OPTS="mode=1 miimon=100"
ONBOOT=yes
BOOTPROTO=none
USERCTL=no
NM_CONTROLLED=no

9 /etc/sysconfig/network-scripts/route-bond1[ | ]

aconf
Copy
10.10.0.0/16 via 10.10.0.1 dev bond1

10 네트워크 재시작[ | ]

Console
Copy
[root@zetawiki ~]# /etc/init.d/network restart
Shutting down interface bond0:                             [  OK  ]
Shutting down interface bond1:                             [  OK  ]
Shutting down loopback interface:                          [  OK  ]
Bringing up loopback interface:                            [  OK  ]
Bringing up interface bond0:                               [  OK  ]
Bringing up interface bond1:                                [  OK  ]

11 같이 보기[ | ]

12 주석[ | ]

  1. bonding.conf 파일 생성하지 않고 /etc/modprobe.conf 하단에 기입해도 되지만 권장되지 않음

13 참고[ | ]