리눅스 본딩 해보려고 지금까지 작업해본 것 입니다.

balrog501의 이미지

CentOS5.4 설치하고, 아래 내용으로 작업했습니다.
전체적인 내용은 첨부파일로 올립니다.
첨부된 내용은 제가 여기저기 검색해서 찾아본 내용을 토대로 재구성해본것입니다.
완전 재구성이 아니라 여기저기서 얻은 지식을 조금씨 추가한것입니다.

[구상]
2개의 각기 다른 인터넷회선을 본딩하는 것
-------------------------------------
문제는 첨부 내용 처럼 작업을 하고나면, 렌카드 들은 인식하지만, 결과적으로
본딩이 된것을 테스트 해보니 전혀 본딩이 된 속도로 테스트되지가 않았습니다.

물론 10M+10M=20M 로 정확하게 나오지 않는다는것은 알고 있습니다.
25%~40% 정도 조금증가하는 것으로 알고있습니다.

하지만, 전혀 나타나지 않아서 무엇을 어떻게 어디부터 시작을 해야할지 모르겠습니다.
확인해 주시고, 무엇이 어떤 부분이 문제점인지 많은 지도 부탁드립니다.

PS: 첨부한 파일대로 세팅을 하고나면, 터미널이나 콘솔에서 네트워크 리붓 또는
중단, 시작 등등의 명령을 하면 컴퓨터가 멈춰버립니다.

[bonding]

# /etc/modprobe.conf
alias bond0 bonding
alias bond1 bonding
options bonding max_bonds=2
# /etc/sysconfig/network-scritps/ifcfg-bond0
DEVICE=bond0
BOOTPROTO=none
IPADDR=xxx.xxx.xxx.xxx
NETMASK=255.255.255.xxx
ONBOOT=yes
TYPE=Ethernet
BONDING_OPTS="mode=0 miimon=100 use_carrier=0 primary=ethX"
# /etc/sysconfig/network-scritps/ifcfg-bond1
DEVICE=bond1
BOOTPROTO=none
IPADDR=xxx.xxx.xxx.xxx
NETMASK=255.255.255.xxx
ONBOOT=yes
TYPE=Ethernet
BONDING_OPTS="mode=0 miimon=100 use_carrier=0 primary=ethX"

# /etc/init.d/network stop
modprobe -r bonding
# /etc/init.d/network start

# /etc/rc.d/init.d/network restart

# ifconfig
----------------------------------------------------------
# vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
USERCTL=no
MASTER=bond0
SLAVE=yes
ONBOOT=yes
BOOTPROTO=none
Esc
:wq
--------------------------------------------------------
# vi /etc/sysconfig/network-scripts/ifcfg-eth1
DEVICE=eth1
USERCTL=no
MASTER=bond0
SLAVE=yes
ONBOOT=yes
BOOTPROTO=none
Esc
:wq
---------------------------------------------------------
# vi /etc/sysconfig/network

GATEWAY=xxx.xxx.xxx.xxx
GATEDEV=bond0
----------------------------------------------------------
modprobe bonding
lsmod l grep bonding
service network restart

# vi /etc/sysctl.conf
net.ipv4.ip_forward = 1

Vi /etc/rc.local
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -o bond0 -j MASQUERADE
iptables -t nat -A POSTROUTING -o bond1 -j MASQUERADE

File attachments: 
첨부파일 크기
Microsoft Office document icon bonding-test.doc30.5 KB

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.