[network]2개의 Lan 카드에 같은 network address대의 Ip 설정시

ruben94의 이미지

현재 시스템은 2개의 Lan 카드가 설치되어 있습니다.
그리고 같은 ip대(210.91.108.201,210.91.108.202)를 설정을 했습니다. route 시 다음과 같이 나옵니다.
[root@localhost sysconfig]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
210.91.108.0 * 255.255.255.0 U 0 0 0 eth1
210.91.108.0 * 255.255.255.0 U 0 0 0 eth1
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default 210.91.108.254 0.0.0.0 UG 0 0 0 eth1

그런데 문제점이 뭐냐면 통신을 할때 하나의 포트를 통해서만 통신을 한다는 것입니다. 다른컴에서 ping 체크를 하면 한개의 lan선을 뽑아도 201,202 두개다 ping 정상적으로 나오고 통신이 되는 쪽의 선을 뽑아 버리면 둘다 ping error가 납니다.
route 정보에 Iface에 eth1으로 두개의 랜카드가 설정되어 있어서 그런것 같은데 원인이 이것때문인지요?
그리고 많은 글을 읽어 보면 같은 ip대를 입력한 경우는 볼수가 없는데 같은 ip대를 입력하면 안되는 것입니까?
같은 ip대를 입력하는 방법은 없는지요?
답변 좀 부탁드리겠습니다.

offree의 이미지

ruben94 wrote:

...
...
route 정보에 Iface에 eth1으로 두개의 랜카드가 설정되어 있어서 그런것 같은데 원인이 이것때문인지요?
그리고 많은 글을 읽어 보면 같은 ip대를 입력한 경우는 볼수가 없는데 같은 ip대를 입력하면 안되는 것입니까?
같은 ip대를 입력하는 방법은 없는지요?
답변 좀 부탁드리겠습니다.

예. 같은 IP 대역은 그렇게 되더군요.

해결방법은 subnet 을 설정해서 GW 를 나누면 될 것 같은데,
해당 IP 대역에 대해 control 할 수 있는 권한이 있어야 할 것입니다.

즉, A ip 는 A GW 로 가도록 하고, B ip 는 B GW 로 나가도록 하는 것이죠.
그런데, 네트웍 망 관리자가 아닌이상 어렵지 않을까 생각이 됩니다.

혹시 다른 방법이 있는지는 모르겠네요.

사용자가 바꾸어 나가자!!

= about me =
http://wiki.kldp.org/wiki.php/offree , DeVlog , google talk : offree at gmail.com

seongju의 이미지

전에 비슷한 주제의 글이 있습니다.

http://bbs.kldp.org/viewtopic.php?t=51865&highlight=

참고하세요.

익명 사용자의 이미지

ip rule 과 ip route table 을 혼합해서, policy routing을 사용하면 가능합니다.

목적지 이외의 정보를 가지고 라우팅을 결정하는데, 예를들면 src ip 가 그것이 되겠지요.

ip rule로 각각 출발지가 eth0, eth1인 아이피에 대해 다른 테이블로 가도록 한 후, default routing을 주되, 각각의 인터페이스를 통해서 나가도록 하면 됩니다. 이경우 eth0를 뽑으면 eth0쪽 ip로는 통신이 안될테고, eth1을 뽑으면 eth1쪽이 안되겠지요..

ruben94의 이미지

답변 감사합니다..
다시 해보도록 하겠습니다.

언제나 많은 도움이 되길 바라며

댓글 달기

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