2개의 랜카드 중 우선 사용 설정???

antz의 이미지

Debian Sarge 사용자입니다.

회사라인이 느려서 ADSL라인을 달았습니다.

2개의 랜카드에
하나는 회사,
하나는 ADSL에 물려있습니다.
(회사라인은 ERP때문에 끊을 수 없습니다.)

현재 네트웍을 모니터링해보면, 회사쪽 네트웍으로
인터넷을 많이 사용하는것 같습니다. 그래서 느리고요.

두개의 랜카드 중 기본으로 사용하도록 설정하는게 있을까요?

mycluster의 이미지

레드햇이라면
/etc/sysconfig/network 파일안에

GATEWAYDEV=eth0 혹은
GATEWAYDEV=eth1 으로
바꾸면 됩니다. ADSL라인에 설정된 GW를 default gw로 해주면 됩니다.

데비안은... 모릅니다. 설정을 어떻게 하는지..j

--------------------------------
윈도위의 리눅스 윈도위의 윈도우 리눅스위의 익스플로러

antz의 이미지

데비안은
/etc/network/interfaces
파일을 사용해서 네트웍을 잡습니다.

Quote:
$ cat /etc/network/interfaces
# /etc/network/interfaces -- configuration file for ifup( 8 ), ifdown( 8 )

# The loopback interface
# automatically added when upgrading
auto lo eth0 eth1
iface lo inet loopback

iface eth0 inet static
address 10.xx.xx.xx
netmask 255.255.255.0
network 10.xx.xx.0
broadcast 10.xx.xx.255
gateway 10.xx.xx.1
hwaddr 00:01:39:04:0C:xx

iface eth1 inet static
address 10.xx.xx.xx
netmask 255.255.255.0
network 10.xx.xx.0
broadcast 10.xx.xx.255
gateway 10.xx.xx.1
hwaddr 00:50:FC:CD:58:xx


/etc/sysconfiig/network 파일이 없습니다.
저도 데비안을 사용한지 얼마 안되서 잘은 모르겠지만,
네트웍 설정이 틀린것 같습니다.

혹시 interfaces 파일 옵션에 있지 않을까 생각은 하는데...

잘 모르겠습니다.

man page를 봐도 관련 내용은 없는것 같습니다.

hurryon의 이미지

mollla wrote:
데비안은
/etc/network/interfaces
파일을 사용해서 네트웍을 잡습니다.

Quote:
$ cat /etc/network/interfaces
# /etc/network/interfaces -- configuration file for ifup( 8 ), ifdown( 8 )

# The loopback interface
# automatically added when upgrading
auto lo eth0 eth1
iface lo inet loopback

iface eth0 inet static
address 10.xx.xx.xx
netmask 255.255.255.0
network 10.xx.xx.0
broadcast 10.xx.xx.255
gateway 10.xx.xx.1
hwaddr 00:01:39:04:0C:xx

iface eth1 inet static
address 10.xx.xx.xx
netmask 255.255.255.0
network 10.xx.xx.0
broadcast 10.xx.xx.255
gateway 10.xx.xx.1
hwaddr 00:50:FC:CD:58:xx


/etc/sysconfiig/network 파일이 없습니다.
저도 데비안을 사용한지 얼마 안되서 잘은 모르겠지만,
네트웍 설정이 틀린것 같습니다.

혹시 interfaces 파일 옵션에 있지 않을까 생각은 하는데...

잘 모르겠습니다.

man page를 봐도 관련 내용은 없는것 같습니다.

eth0 을 기본으로 인터넷을 사용하고 싶으시다면 eth0 에만 gateway 을 적어 주시면 됩니다. 아마도 님과 같은 경우라면 ADSL 라인이 eth0 이어야 겠죠. 음냐.

antz의 이미지

hurryon wrote:

eth0 을 기본으로 인터넷을 사용하고 싶으시다면 eth0 에만 gateway 을 적어 주시면 됩니다. 아마도 님과 같은 경우라면 ADSL 라인이 eth0 이어야 겠죠. 음냐.
hurryon님의 방법으로 간단히 해결이 되는군요.
감사합니다. :-)

댓글 달기

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