우분투 서버 어댑터 2개 동시 사용법?

soc의 이미지

기가비트 어댑터 포트가 2개 달린 메인보드를 서버로 쓰는데

우분투 서버를 설치하면 어댑터 중 하나를 고르라고 해서 그쪽으로 설치하면
한쪽만 활성화됩니다. 그 후로도 계속 쭉~ 무슨 수를 써도 2개 모두 동시에 사용은 못하고 한쪽만 사용가능 ㅡㅡ

/etc/network/interfaces에 2개 모두 dhcp 받아오게 하면

auto eth1 (기본)
iface eth1 inet dhcp

auto eth0
iface eth0 inet dhcp

이런식으로 하면 eth0쪽만 활성화돼서 사용불가 -_-;;
아나 둘을 도대체 어떻게 쓰는거냐고요.

윈도7은 두개다 핑 때려보면 두 개 다 잘만 응답하는데 아ㅡ나! 리눅스 왜이따구야/../

soc의 이미지

두 개의 아이피 모두 같은 dhcp 서버에서 각각 완전히 다른 대역의 아이피가 할당됩니다. abcd 클래스 모두 달라요.
라우팅 테이블을 보면 게이트웨이가 하나밖에 없음.

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 222.222.222.1 0.0.0.0 UG 100 0 0 eth1
77.77.7.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
222.222.222.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1

이거 이럴때 두 개의 게이트웨이 모두 다 응답하게 하려면 어떻게 하나요...
윈도7은 서로 다른 대역의 아이피라도 두 개의 어뎁터가 모두 핑에 응답했는데

soc의 이미지

interfaces 파일을

auto eth0
iface eth0 inet dhcp

auto eth1 (기본)
iface eth1 inet dhcp

이렇게 설정한거임. ssh 접속 때문에 eth1 되게한거.

soc의 이미지

interfaces 파일을

auto eth0
iface eth0 inet dhcp

auto eth1 (기본)
iface eth1 inet dhcp

이렇게 설정한거임. ssh 접속 때문에 eth1 되게한거.
이 상태에서는 eth0 사용불가.

내부에서 eth0 아이피주소로 핑때려보면 잘되는데 외부에서 핑때려보면 응답안함.
eth1 아이피로만 응답.

빡쳐..

soc의 이미지

route add -net 77.77.7.0 netmask 255.255.255.0 gw 77.77.7.1
스크립트등록까지하면끝

핑응답확인

아무리 뒤져도 명시적으로 쓴건 안나오든데 넘 기초적이라서 그런가 에휴

soc의 이미지

서버용포트를 서브로 둬야 할까

아 몰라 그대로 이대로 할래 이정도로도 보안 충분해

soc의 이미지

리눅스는 왜이래 내가 미쳐

적어도 메인아닌 나머지는 자동으로 서브로 바인딩시켜야 하는거 아니냐고

사용자가 직접 어댑터 활성화까지 했으면 운영체제가 알아서 해주면 안되냐고 진짜

soc의 이미지

나머지 포트는 여전히 막힘

미친!

댓글 달기

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