네트워크에 대한 궁금증.. -_-;

aNsITAte의 이미지

아래와 같은 네트워크 상황하에서 시스템을 돌리다 보면

처음 부팅했을때에는 잘 운영이 되는데

약간 시간이 지나면 네트워크가 연결이 안되더군요

그래서

root@daisy:~ # ifconfig
eth0      Link encap:Ethernet  HWaddr 00:0F:EA:7A:7E:DE
          inet addr:222.109.28.246  Bcast:222.109.28.255  Mask:255.255.255.128
          inet6 addr: fe80::20f:eaff:fe7a:7ede/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:39891 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3335 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:4572949 (4.3 MiB)  TX bytes:426820 (416.8 KiB)
          Interrupt:19 Memory:f3000000-0

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:15755 errors:0 dropped:0 overruns:0 frame:0
          TX packets:15755 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:1429854 (1.3 MiB)  TX bytes:1429854 (1.3 MiB)

root@daisy:~ #

dhclient 를 실행하면 다시 네트워크가 살아나고

ifconfig 에서 한가지가 더 올라오던데요.

sit0 라고 ipv6랑 ipv4를 연결하는 머 그런거 같은데

root@daisy:~ # dhclient
Internet Systems Consortium DHCP Client V3.0.1
Copyright 2004 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/products/DHCP

sit0: unknown hardware address type 776
sit0: unknown hardware address type 776
Listening on LPF/sit0/
Sending on   LPF/sit0/
Listening on LPF/lo/
Sending on   LPF/lo/
Listening on LPF/eth0/00:0f:ea:7a:7e:de
Sending on   LPF/eth0/00:0f:ea:7a:7e:de
Sending on   Socket/fallback
DHCPDISCOVER on sit0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on lo to 255.255.255.255 port 67 interval 6
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 6
DHCPOFFER from 222.109.28.254
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPACK from 222.109.28.254
bound to 222.109.28.246 -- renewal in 587 seconds.
root@daisy:~ # ifconfig
eth0      Link encap:Ethernet  HWaddr 00:0F:EA:7A:7E:DE
          inet addr:222.109.28.246  Bcast:222.109.28.255  Mask:255.255.255.128
          inet6 addr: fe80::20f:eaff:fe7a:7ede/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:40160 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3372 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:4589951 (4.3 MiB)  TX bytes:429980 (419.9 KiB)
          Interrupt:19 Memory:f3000000-0

lo        Link encap:Local Loopback
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:15871 errors:0 dropped:0 overruns:0 frame:0
          TX packets:15871 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:1440632 (1.3 MiB)  TX bytes:1440632 (1.3 MiB)

sit0      Link encap:IPv6-in-IPv4
          inet6 addr: ::127.0.0.1/96 Scope:Unknown
          inet6 addr: ::222.109.28.246/96 Scope:Compat
          UP RUNNING NOARP  MTU:1480  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:1 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

root@daisy:~ #

이게 정확히 무슨역할 을 하는건지 궁금하네요

그리고 저게 올라오면 일단 네트워크가 끊기는 일이 없더군요.

aNsITAte의 이미지

저의 경우 마블사의 내장형 기가랜을 쓴ㄴ데...

이놈이 문제인것 같습니다

대략 30~1시간 단위로해서 네트워크가 다운됩니다. eth0

무슨이유인지는 모르겠지만 dhclient 를 해주면 정상작동을 하기는 합니다만.

좀 이상하기는 하죠.

데비안에서는 이렇게 해도 전혀 문제가 되는 것이 없는데..

(지금 생각해보 이상한게 있기는 하지만..)

우분투에선느 저렇게 설정된 상태에서는 안에서 밖으로 접근은되지만..

밖에서 안으로는 들어올 수 가 없더라구요

당연히 서버로는 사용이 불가함.

어쨋든 해결은 contab

ifdown eth0 && ifup  eth0

를 등록해서 해결했습니다. 더분에 크론 데몬 설정하는 방법도 공부했군요.[/b]

그립다는 것은 아직도 네가 내 안에 남아 있다는 뜻이다.
그립다는 것은 지금은 너를 볼 수 없다는 뜻이다.
볼 수는 없지만 보이지 않는 내 안 어느 곳에 네가 남아 있다는 뜻이다.
-이정하의 《혼자 사랑한다는 것은》중에서-

hiandy의 이미지

eternalbleu wrote:
저의 경우 마블사의 내장형 기가랜을 쓴ㄴ데...

이놈이 문제인것 같습니다

대략 30~1시간 단위로해서 네트워크가 다운됩니다. eth0

무슨이유인지는 모르겠지만 dhclient 를 해주면 정상작동을 하기는 합니다만.

좀 이상하기는 하죠.

데비안에서는 이렇게 해도 전혀 문제가 되는 것이 없는데..

(지금 생각해보 이상한게 있기는 하지만..)

우분투에선느 저렇게 설정된 상태에서는 안에서 밖으로 접근은되지만..

밖에서 안으로는 들어올 수 가 없더라구요

당연히 서버로는 사용이 불가함.

어쨋든 해결은 contab

ifdown eth0 && ifup  eth0

를 등록해서 해결했습니다. 더분에 크론 데몬 설정하는 방법도 공부했군요.[/b]

crontab에 어떻게 등록한것인가요? 좀더 구체적으로...^^

gmail 계정 필요하시면 언제든지 메일주세요
damoa.biz골뱅이gmail.com
http://album.damoa.biz

댓글 달기

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