두 개의 ethernet interface에 하나의 IP address를 할당하면 어떻게 될까요?

hyper9의 이미지


오늘 동료랑 얘기하다가,,갑자기 궁금해져서 이런 걸 해봤습니다.
System에 eth0와 eth1이 있습니다.
eth0와 eth1은 서로 다른 network에 연결되어 있습니다.
예를 들어 eth0는 10.10.10.23 (mask 255.255.255.0) 이라는 ip adress를 가지고 있습니다.
eth1은 100.100.100.23 (mask 255.255.255.0) 이라는 ip address를 가지고 있습니다.

--아래에는 제가 해본 내용입니다.
1) eth0를 통해서 10.10.10.x network에 연결되어 있는 PC (예를 들어 10.10.10.25)로 ping을 보냅니다.
2) reply를 잘 받을 수 있었습니다.
3) eth1을 10.10.10.23으로 설정합니다. 즉 eth0과 같은 ip address를 가지도록 설정합니다.
4) 하지만,,,ping은 계속 잘 됩니다.
5) 이번에는 ifconfig eth0 down, ifconfig eth1 down으로 eth0, eth1 interface를 down했습니다.
6) ifconfig eth0 up, ifconfig eth1 up한 이후에 다시 ping 10.10.10.25를 실행해보니 계속 잘 됩니다.
7) 다시 ifconfig eth0 down, ifconfig eth1 down으로 eth0, eth1 interface를 down했습니다.
8) 이번에는 ifconfig eth1 up, ifcofnig eth0 up한 이후에 다시 ping 10.10.10.25를 해보니 안됩니다.

그래서 생각하는 것은 어떤 interface가 먼저 up되었는지에 연관이 있는 것 같습니다.
제가 이해하는 것이 맞는지요?

그리고 혹시 interface를 up하는 순서와 상관없이 이런 문제를 해결하려면 어떻게 해야하는지
조언을 주시면 감사하겠습니다.
예를 들면 위의 8)번과 같은 절차로 eth1을 먼저 up하지만, ping이 되도록 하려면 어떻게 해야할지
에 여쭤보고 싶습니다.

조언 부탁 드립니다,,,감사합니다.

이응준의 이미지

6)와 8)의 경우 라우팅 테이블이 다르게 생성되지 않을까 하는 생각이 듭니다.

즉, 6)의 경우 eth0에 대한 route가 우선순위가 높고 8)의 경우는 eth1에 대한 route가 우선순위가 높은 것이 아닐까 싶네요. (한번 확인해보시길... route나 netstat -r로)

두 경우 다 잘 되게 하려면 라우팅 테이블을 직접 적절히 편집하시면 될 듯 합니다.

댓글 달기

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