게이트웨이가 다른 2개의 네트워크 라우팅 설정 방법

corpse1004의 이미지

현제 설정이

[eth0]
ipaddr 211.58.244.100
netmask 255.255.255.0
gateway 211.58.244.254
network 211.58.244.254
broadcast 211.58.244.255

[eth1]
ipaddr 211.64.90.100
netmask 255.255.255.0
gateway 211.64.90.254
network 211.64.90.254
broadcast 211.64.90.255

이렇게 됩니다.
라우팅 정보는

211.58.244.100 via 211.58.244.254 dev eth0
211.64.90.100 via 211.64.90.254 dev eth1
211.58.244.0/24 dev eth0 proto kernel scope link src 211.58.244.100
211.64.90.0/24 dev eth1 proto kernel scope link src 211.64.90.100
default via 211.58.244.254 dev eth0

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
211.58.244.100 211.58.244.100 255.255.255.255 UGH 0 0 0 eth0
211.64.90.100 211.64.90.254 255.255.255.255 UGH 0 0 0 eth1
211.58.244.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
211.64.90.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
0.0.0.0 211.58.244.254 0.0.0.0 UG 0 0 0 eth0

입니다.

문제는 default 게이트웨이가 211.58.244.254로 잡히면 eth0 만 정상적으로 작동을 하고
default 게이트웨이가 211.64.90.254로 잡히면 eth1만 정상적으로 작동을 합니다.
어떻게 라우팅 구성을 해야 하나요?

vecter의 이미지

리눅스도 같을 꺼라 생각 되서 적습니다. 저는 솔라를 주로 만져서 ..솔라리스 같은 경우를 적을께요

솔라에서는 게이트 웨이를 두개 다 넣습니다.

그렇다고 두개다 동작 하는것은 아니고 페일 오버식으로 하나 안되면 다른 쪽으로 하는 형태로 동작 합니다.

만약 두개의 경로 중에 빠른 것을 선택해서 가도록 하실려면 라우팅 데몬 ( 이말이 맞는지 모르겠습니다. ) 이 돌아서 정기적으로 두개의 경로중 빠른것을 선택하도록 하는 데몬이 있는 것으로 알고 있습니다.

corpse1004 wrote:
현제 설정이

[eth0]
ipaddr 211.58.244.100
netmask 255.255.255.0
gateway 211.58.244.254
network 211.58.244.254
broadcast 211.58.244.255

[eth1]
ipaddr 211.64.90.100
netmask 255.255.255.0
gateway 211.64.90.254
network 211.64.90.254
broadcast 211.64.90.255

이렇게 됩니다.
라우팅 정보는

211.58.244.100 via 211.58.244.254 dev eth0
211.64.90.100 via 211.64.90.254 dev eth1
211.58.244.0/24 dev eth0 proto kernel scope link src 211.58.244.100
211.64.90.0/24 dev eth1 proto kernel scope link src 211.64.90.100
default via 211.58.244.254 dev eth0

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
211.58.244.100 211.58.244.100 255.255.255.255 UGH 0 0 0 eth0
211.64.90.100 211.64.90.254 255.255.255.255 UGH 0 0 0 eth1
211.58.244.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
211.64.90.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
0.0.0.0 211.58.244.254 0.0.0.0 UG 0 0 0 eth0

입니다.

문제는 default 게이트웨이가 211.58.244.254로 잡히면 eth0 만 정상적으로 작동을 하고
default 게이트웨이가 211.64.90.254로 잡히면 eth1만 정상적으로 작동을 합니다.
어떻게 라우팅 구성을 해야 하나요?

댓글 달기

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
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.