[질문]vmware에서 네트워크 설정에 관한 질문입니다.

mrhyunby의 이미지

안녕하세요..

항상 눈팅만 하다가 정말 궁금한 것이 있어서 질문을 올립니다.

학교에서 수업을 하는데 vmware & fedora9으로 임베디드 시스템 프로그래밍을 배우고 있습니다.

네트워크 프로그래밍을 하는데요..

두 대의 PC에 각각 vmware가 깔려있고, 하나의 vmware(A)가 server, 다른 하나의 vmware(B)가 client를 하려고 하는데요...

A의 pc ip는 210.110.35.xx1
A의 vmware ip는 192.168.1.108 입니다.

B의 pc ip는 210.110.35.xx2
B의 vmware ip는 192.168.6.129 입니다.

두 컴퓨터 모두 vmware에서 인터넷은 되는데... 네트워크 프로그래밍 한것은 연결이 안됩니다..

아.. 프로그래밍 예제로 사용한 것이 echo프로그램으로, 하나의 vmware에서 서버, 클라이언트 했을때는 정상 작동을 하였습니다.

아마 vmware 네트워크 설정상의 문제인것 같은데요...

현재 A,B 모두 NAT 방식으로 연결 설정 되어있는데요..

어떻게 해야 할까요????

vmware의 ip와 host의 ip를 동일하게 해서 할 수 있는 방법은 없을까요??

도와주세요.ㅠㅠ

~~연말 즐겁게 보내세요~~
--------------------------------------------------------------------------------------------
2010. 12. 03 - 15:14
새로운 방법을 시도해보았습니다.

하나의 vmware에 fedora9을 두개를 실행시켰습니다.

그렇게 해서 IP주소 : 192.168.71.128(서버) 과 192.168.71.129(클라이언트)를 얻었습니다.

서버에서 서버프로그램을 실행시키고

클라이언트로 접속하면 connect 함수 에러 메시지로 "No route to host"라고 뜹니다.

ping으로 클라이언트에서 서버로 할경우에는 정상적으로 작동하는 것을 볼 수 있는데요..

무엇이 문제인지 모르겠습니다..

서버,클라이언트 모두 vmware에서 NAT로 설정하였습니다..

이 문제도 해결 방법이 없나요??

라스코니의 이미지

NAT으로 하였을 경우 다른 PC에서 구동되고 있는 vmware 가상화 OS와 네트웍 통신 할 수 없어요.
Bridge 로 하고 IP 더 추가로 잡으면(vmware 도 210.110.35.xx3 식으로) 통신될 겁니다.

mrhyunby의 이미지

Host와 동일 IP를 사용하는 방법은 없나요?

댓글 달기

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