브릿지 셋팅에 궁금점

warpaint의 이미지

RH7.3(Kernel2.4.18-3)박스에서 무선랜과 유선랜을 브릿지 시키려고 합니다.
(유선랜 두장을 브릿지 시키는거랑 비슷하다고 하는뎅..)정확히 어떻게 셋팅을 해야 할지. 부실한 자료를 보고 해서 그런지 시스템만 이상해 졌어요!

@구성@
1.소스 bridge-utils-0.9.6
2.server_Lan
2-1. eth0(유선랜)
IP:220.66.222.28
2-2. wlan0(무선랜)
IP:192.168.10.1
3.client_wlan0
3-1. wlan0
IP:192.168.10.2
GW:192.168.10.1
(외부망)<--->|eth0<--bridge-->wlan0|<---내부-->Client_wlan0

제가 했던 방법은 아래와 같습니다 틀린점 또는 더 보강 해야 할점이 있다면 말씀해 주세염.
-----server lan 셋팅------
# iptiptables -t nat -A POSTROUTING -j MASQUERADE
1. run "ifconfig wlan0 0.0.0.0"
2. run "ifconfig eth0 0.0.0.0"
3. run "brctl addbr br0"
4. run "brctl addif br0 eth0"
5. run "brctl addif br0 wlan0"
6. run "ifconfig br0 192.168.1.1 up"

여기까지 밖에 셋팅을 하지 못했습니다
이 다음 부터는 어떻게 해야 할지 잘 모르겠습니다
그리고 이렇게 셋팅을 하면 eth0에서는 ip주소가 없게 되는건가염?
eth0에서 외부로 나가지 못하는데.....
그리고 클라이언트는 어떤 ip를 활당 해야 하는건가염?
192.168.10.2 아니면 192.168.1.2,
GW는 어떻게 설정 해야 할지?

너무 두서 없는 질문이라서 죄송합니다

mushim의 이미지

warpaint 님 같은 경우는, subnet 이 다르니까 굳이 bridge 를 만들 필요없이 gateway 를 만드시면 될것 같네요.

subnet 1 :220.66.222
subnet 2 :192.168.10

참고로 유선랜 bridge 의 경우는, brctl 유틸말고도 커널에서 bridge 를 지원하도록 patch 를 해야 합니다.

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