traceroute는 잡히는데 ping으로는 안잡히는건 무슨 문젠가요?

squant의 이미지

ip aliasing 문제로 몇일째 고생하고 있습니다.
그런데 eth0:0에 새로 설정된 ip로 traceroute를 날려 보았더니
잘 갑니다.
그런데 ping를 날리면 port unreachable라고 나오는데요..
eth0에 설정된 ip로는 traceroute 와 ping둘 다 되는데
eth0:0는 왜 traceroute만 가는 건가요?
이건 무슨 문젠가요?
이걸 해결하려면 어떻게 해야 하나요?

제 시스템은 레드햇 9.0 입니다.

codebank의 이미지

http://www.linuxchannel.net/board/read.php?table=qna&no=4951

똑같은 현상에 관련된 게시물입니다. 한번 참고해보세요.
(GateWay를 맞춰줘야 하는것 같네요.)

------------------------------
좋은 하루 되세요.

익명 사용자의 이미지

해결방법은 윗글을 참조하시면 되겠고,

traceroute도 ping처럼 icmp 프로토콜을 쓰지만, 매번 패킷을 보낼 때 홉 카운트를 하나씩 증가시키면서 보내기 때문에 최종 목적지 Ip에서는 응답을 하지 않더라도 일부 경로가 보이게 됩니다. eth0:0에 또 하나의 라우팅 경로(gateway)가 추가되어 있으니 eth0하고 eth0:0하고 서로 통신을 못합니다. 중간에 traceroute가 몇단계 보이는건 다른 인터페이스(eth0:0)로 넘어간게 아니라 eth0까지 인 듯 하네요.

익명 사용자의 이미지

ifconfig 명령을 했을때 모습 입니다.

eth0 Link encap:Ethernet HWaddr 00:xx:xx:xx:xx:45
inet addr:202.xx.xx.29 Bcast:202.xx.xx.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:231543 errors:0 dropped:0 overruns:1 frame:0
TX packets:2901 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:31380690 (29.9 Mb) TX bytes:249203 (243.3 Kb)
Interrupt:10 Base address:0x1400

eth0:0 Link encap:Ethernet HWaddr 00:xx:xx:xx:xx:45
inet addr:202.xx.xx.32 Bcast:202.xx.xx.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:231543 errors:0 dropped:0 overruns:1 frame:0
TX packets:2901 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:31380690 (29.9 Mb) TX bytes:249203 (243.3 Kb)
Interrupt:10 Base address:0x1400

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:6552 errors:0 dropped:0 overruns:0 frame:0
TX packets:6552 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2149983 (2.0 Mb) TX bytes:2149983 (2.0 Mb)

route 명령을 했을때 모습 입니다.

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
202.XX.XX.32 202.XX.XX.2 255.255.255.255 UGH 0 0 0 eth0
202.xx.xx.0 * 255.255.255.0 U 0 0 0 eth0
169.254.0.0 * 255.255.0.0 U 0 0 0 eth0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default 202.xx.xx.2 0.0.0.0 UG 0 0 0 eth0

문제가 뭘까요. 도와주세요.

gogoonee의 이미지

다른 pc 에서 ping 해보시고
arp -a

결과를 보여주세요.

squant의 이미지

http://www.linuxchannel.net/board/read.php?table=qna&no=4951
위에 알려주신 곳에나온대로 해 보았는데

route add -host 202.xx.xx.32 gw 202.xx.xx.2 dev eth0:0

이 명령이 먹히지 않습니다.

"SIOCADDRT 네트워크가 접근 불가능 합니다."

라고 나오네요.

그래서

route add -host 202.xx.xx.32 dev eth0:0

만 해 주었습니다.
그러니까 별 문제 없이 올라 갔습니다
그리고 그 옆에 있는 컴퓨터에서,
eth0과 eth0:0로 핑을 날려 보았습니다.
eth0의 ip는 202.xx.xx.29 이구요
eth0:0의 ip는 202.xx.xx.32 입니다.

eth0로는 핑이 아주 잘 갔습니다.
그런데 eth0:0에는 여전히 port unreachable하면서 되질 않습니다.

그리고 거기서 arp -a를 해 보았습니다.
그러니까 이렇게 나옵니다.

? (202.xx.xx.29) at 00:xx.xx:44:81:45 [ether] on eth0
? (202.xx.xx.32) at 00:xx:xx:44:81:45 [ether] on eth0
? (202.xx.xx.2) at 00:xx:xx:09:2B:FD [ether] on eth0

문제가 뭘까요.
문제 해결할려고 원서 빌려다 보고 있는데,
과제 기한은 몇일 남지도 않았고 ㅠ_ㅠ;;

답답해 죽겠습니다... 흑흑흑

댓글 달기

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