[network]사설연결이 안됩니다.

jw0717의 이미지

redhat 7.3 서버두대가 있습니다. 2개의 랜포트를 가지고있고

각 a서버 공인(eth0)- ip - 111.111.111.111 gw - 111.111.111.1 netmask 255.255.255.0
사설(eth1) ip-192.168.0.111 netmask 255.255.255.0

b서버 공인(eth0)- ip - 111.111.111.112 gw - 111.111.111.1 netmask 255.255.255.0
사설(eth1) ip-192.168.0.112 netmask 255.255.255.0

이렇게 세팅되었습니다. 그런데 a,b간에 공인은 통신이 잘되는데 사설은 연결이 안됩니다.

사설(eth1) 랜선은 크로스케이블 맞고 그 케이블로 win서버 두대에 직접물려서 테스트시정상작동됨을 확인해서 랜선문제는 아닌거 같습니다.

그리고 각 리눅스 서버 eth1(사설)에 공인을 잡고 테스트해보니 정상적으로 연결되는걸로봐선 랜카드 불량도 아닌거 같습니다.

세팅방법은 /etc/sysconfig/network-scripts/ifcfg-eth0, eth1에다 변경하고 네트웍스크립트를 리스타트했고

ifconfig -a 로 확인하니 위 세팅대로 나왔습니다. 어떤부분을 체크해야할까요

세팅은 정상적인거 같은데 도무지 알수가 없네요. 조언바랍니다.

공인ip는 임의로 적은거지만 사설네트워크 세팅은 정확히 위와 같습니다.

emptysky의 이미지

interface card의 우선순위 때문에 그렇습니다.
임시로 공인아이피 interface를 죽여보세요
핑이 나갈겁니다.
http://bbs.kldp.org/viewtopic.php?t=45012

『 아픔은.. 아픔을 달래줄 약이 무엇인지 알면서도 쓰지 못할 때 비로소 그 아픔의 깊이를 알수가 있음이다. 』
『 for return...』

mithrandir의 이미지

emptysky wrote:

interface card의 우선순위 때문에 그렇습니다.
임시로 공인아이피 interface를 죽여보세요
핑이 나갈겁니다.
http://bbs.kldp.org/viewtopic.php?t=45012

인터페이스 우선순위가 문제 되는것은 두 nic 에 각각 같은 서브넷을 설정하고,
그 같은 서브넷쪽으로 연결을 시도할 때 입니다.

이런 경우는 각 서브넷이 분리가 되어있고, 192.168.0.0/24 쪽으로 연결 시도할 경우, 라우팅이 우선해서 eth1으로 가야합니다.

안될경우 다음을 체크해보시기 바랍니다.

Quote:

# ip route
혹은
# netstat -rn

eth1 쪽은 192.168.0.0/24 에 대한 라우팅이 있는지 확인해주세요.

그리고

Quote:

# ifconfig

로 확인해서, eth1이 제대로 "UP" 상태인지도 확인해보세요.

그리고 마지막으로

Quote:

# arp -n -i eth1

으로 상대편 머신의 arp가 eth1쪽에서 제대로 잡혔는지 보시면 되겠습니다.

이상을 양쪽 머신에서 해보시면 대개는 문제점을 찾으실 수 있습니다.

언제나 삽질 - http://tisphie.net/typo/
프로그래밍 언어 개발 - http://langdev.net

댓글 달기

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