WAN으로 핑이 가지 않습니다. (라우터 & 라우팅 테이블 문제

sangheon의 이미지

인터넷에 연결된 서버인데, 내부적으로 라우터와 WAN을 사용해서 통신하는 서버가 있습니다. (첨부 그림을 참고해주세요.)

라우터 내부에서는 서버와 WAN 건너편 서버에 모두 핑이 정상적으로 갑니다만 서버에서 WAN 건너편 서버로는 핑이 가지 않네요.

서버의 ifconfig 설정입니다.

eth0      Link encap:Ethernet  HWaddr 00:D0:B7:9D:C2:5A  
          inet addr:211.233.15.30  Bcast:211.233.15.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:387130 errors:0 dropped:0 overruns:0 frame:0
          TX packets:169613 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100 
          RX bytes:40875676 (38.9 Mb)  TX bytes:87401632 (83.3 Mb)
          Interrupt:19 Base address:0x6000 

eth1      Link encap:Ethernet  HWaddr 00:04:76:D2:D1:C4  
          inet addr:211.233.15.59  Bcast:255.255.255.255  Mask:255.255.255.255
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:512 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4654 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100 
          RX bytes:37594 (36.7 Kb)  TX bytes:280662 (274.0 Kb)
          Interrupt:17 Base address:0x1080 

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:1913 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1913 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:150584 (147.0 Kb)  TX bytes:150584 (147.0 Kb)

서버의 라우팅 테이블입니다.

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
211.233.15.0    *               255.255.255.0   U     0      0        0 eth1
128.134.98.0    *               255.255.255.0   U     0      0        0 eth1
127.0.0.0       *               255.0.0.0       U     0      0        0 lo
default         211.233.15.1    0.0.0.0         UG    0      0        0 eth0

라우터의 인터페이스 설정입니다.

LANBIRD> show interface 0

Interface 0 (Ethernet) is up, line protocol is up
  IP address 211.233.15.60 / 255.255.255.0
  MAC address is 00:d0:a6:02:12:cb
  Mode is 100 Mbps, Full-duplex
  Input
    queue: 1/150
    1 minute rate: 2 packets/sec, 1037 bits/sec
    14534 packets, 932482 bytes, 0 no buffers
    0 giant, 0 runt, 0 frame, 0 CRC, 0 overrun
  Output
    queue: 0/50
    1 minute rate: 0 packets/sec, 163 bits/sec
    1350 packets, 94639 bytes, 0 drops
    0 underrun, 0 collision, 0 late collision

LANBIRD> show interface 1

Interface 1 (Serial) is up, line protocol is up
  IP address 192.168.95.177 / 255.255.255.0
  Line protocol HDLC, keepalive 10
  Input
    queue: 0/50
    1 minute rate: 0 packets/sec, 20 bits/sec
    6924 packets, 184976 bytes, 0 no buffers
    0 giant, 0 runt, 0 frame, 0 abort, 0 CRC, 0 overrun
  Output
    queueing method: weighted fair
    queue: 0/1500/1000/0 (size/total/threshold/drop)
    1 minute rate: 0 packets/sec, 19 bits/sec
    6913 packets, 169786 bytes, 0 drops
    0 underrun
  DTR=up, RTS=up, DCD=up, DSR=up, CTS=up

라우터의 라우팅 테이블입니다.

LANBIRD> show route
IP Routing table: L (local), S (static)
  Destination     Subnet Mask     Metric and Gateway
- --------------- --------------- ----------------------------
L 211.233.15.0    255.255.255.0   [0] connected to interface 0
L 192.168.95.0    255.255.255.0   [0] connected to interface 1
S 211.233.15.0    255.255.255.0   [1] via interface 0
S 128.134.98.136  255.255.255.255 [1] via 192.168.95.177

라우터에서 양쪽으로 핑을 보내보겠습니다.

LANBIRD> ping 211.233.15.59

Ping to 211.233.15.59, 100 bytes ICMP echo, 5 packets ...
!!!!!
Ping statisics for 211.233.15.59:
  packet rcvd/sent = 5/5, success rate = 100 %
  round trip Min = 0.33 ms, Max = 0.40 ms, Avg = 0.33 ms
LANBIRD> ping 128.134.98.136

Ping to 128.134.98.136, 100 bytes ICMP echo, 5 packets ...
!!!!!
Ping statisics for 128.134.98.136:
  packet rcvd/sent = 5/5, success rate = 100 %
  round trip Min = 37.78 ms, Max = 43.08 ms, Avg = 38.23 ms

라우터에서 WAN 쪽으로 traceroute 해보겠습니다.

LANBIRD> tracert 128.134.98.136

Tracing route to 128.134.98.136 ...
 1     21.7 ms   21.3 ms   21.5 ms  192.168.95.178
 2     22.1 ms   22.0 ms   21.9 ms  192.168.203.165
 3     27.4 ms   23.7 ms   25.6 ms  192.168.202.49
 4     26.1 ms     *       25.7 ms  192.168.202.18
 5     26.1 ms   29.7 ms   29.5 ms  192.168.202.3
 6     24.0 ms   23.6 ms   23.7 ms  128.134.98.136
 7     22.1 ms   22.9 ms   22.3 ms  128.134.98.136

서버에서 라우터쪽으로 핑과 traceroute 해보겠습니다.

[root@mchannel root]# ping 211.233.15.60
PING 211.233.15.60 (211.233.15.60) from 211.233.15.59 : 56(84) bytes of data.
64 bytes from 211.233.15.60: icmp_seq=1 ttl=255 time=0.234 ms
64 bytes from 211.233.15.60: icmp_seq=2 ttl=255 time=0.166 ms
64 bytes from 211.233.15.60: icmp_seq=3 ttl=255 time=0.174 ms

--- 211.233.15.60 ping statistics ---
3 packets transmitted, 3 received, 0% loss, time 1998ms
rtt min/avg/max/mdev = 0.166/0.191/0.234/0.032 ms
[root@mchannel root]# traceroute 211.233.15.60
traceroute to 211.233.15.60 (211.233.15.60), 30 hops max, 38 byte packets
 1  * * *
 2  * * *
 3  * * *

핑은 가는데 traceroute 는 실패합니다.

이번에는 WAN 건너 서버로 ping과 traceroute를 해보겠습니다.

[root@mchannel root]# ping 128.134.98.136
PING 128.134.98.136 (128.134.98.136) from 211.233.15.59 : 56(84) bytes of data.
From 211.233.15.59 icmp_seq=1 Destination Host Unreachable
From 211.233.15.59 icmp_seq=2 Destination Host Unreachable
From 211.233.15.59 icmp_seq=3 Destination Host Unreachable
From 211.233.15.59 icmp_seq=4 Destination Host Unreachable
From 211.233.15.59 icmp_seq=5 Destination Host Unreachable
From 211.233.15.59 icmp_seq=6 Destination Host Unreachable

--- 128.134.98.136 ping statistics ---
7 packets transmitted, 0 received, +6 errors, 100% loss, time 6020ms
, pipe 3

핑은 아예 응답이 없습니다.

[root@mchannel root]# traceroute 128.134.98.136
traceroute to 128.134.98.136 (128.134.98.136), 30 hops max, 38 byte packets
 1  211.233.15.59 (211.233.15.59)  2993.956 ms !H  2994.253 ms !H  2999.930 ms !H

traceroute 도 비슷한 결과입니다.

이 서버가 인터넷도 필요하고, WAN을 통한 건너편 서버와도 통신이 필요합니다.

지금 인터넷은 잘 되는데, WAN 서버와 통신은 안 되고 있습니다.

라우팅 테이블을 어떻게 해야 할까요?

참고로, 기존에 잘 사용하고 있던 서버인데 하드 고장으로 새로 리부팅 한 후에 안 됩니다. 라우터 설정은 기존에 쓰던 상태 그대로입니다.

PS> 기존 서버의 라우팅 테이블 설정은 적어놓지 않았습니다. T.T

임채필의 이미지

rssreader 설치한 기념으로...

라우터 왼쪽편은 211.233.15.0/255.255.255.0 대역이고, 허브 이용시 굳이 또 하나의 인터페이스가 필요 없는데, eth1 의 아이피가
211.233.15.59/255.255.255.255 로 할당 되어 있는 이유가 있을것으로 보이는군요.

route add -host 128.134.98.136 gw 211.233.15.60 정도면 될것으로 보입니다.

sangheon의 이미지

한방에 해결됐습니다. :D

정말 대단히 감사합니다. 꾸벅~

--

Minimalist Programmer

dvvbstation의 이미지

좋은 정보 감사합니다.
한 번 읽고 갑니다.

댓글 달기

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