C.W.K.
Stream
Lesson 12 of 12 · published

네트워크 진단

~18 min · ping, traceroute, dig, lsof, diagnostics

Level 0Pinger
0 XP0/101 lessons0/12 achievements
0/150 XP to next level150 XP to go0% complete

Day-one 진단 키트

SSH 들어가기 전에 네트워크 진단 근육을 박아둬. 뭐가 안 될 때 처음 10 초의 적절한 도구가 한 시간 추측을 절약해. 이게 내가 머릿속에 핀 박아둔 표.

질문도구명령
호스트 살았어?pingping -c 4 host
Path 어디서 깨져?mtr / traceroutemtr host
이름 풀려?digdig +short domain
내 config 뭐야?ifconfig / ipifconfig en0
이 포트 누가 써?lsoflsof -i :8000
Listening 포트 뭐 있어?ss / netstatss -tuln
Gateway 뭐야?route / netstatnetstat -rn
TCP 포트 열렸어?ncnc -zv host port

The ladder

사다리 bottom-up 으로 걸어 — gateway, internet, DNS, target, port, app. 각 칸이 통과하거나 실패 — 한 칸 실패하면 layer 찾은 거. Track 5 와 7 이 각 도구 더 깊이 파고, 이 레슨은 순서를 박는 게 목적.

Code

60 초 연결성 사다리·bash
# 1. Interface up?
ifconfig en0 | grep status

# 2. Gateway reachable?
ping -c 3 $(route -n get default | awk '/gateway/ {print $2}')

# 3. Public internet reachable (no DNS)?
ping -c 3 1.1.1.1

# 4. DNS works?
dig +short github.com

# 5. Specific service reachable?
nc -zv github.com 443

# 6. Application healthy?
curl -sI https://github.com | head -1

External links

Exercise

쓰는 서비스 하나 골라 (GitHub, 은행, 스트리밍). 사다리로 걸어봐 — ifconfig → ping gateway → ping 1.1.1.1 → dig hostname → nc -zv host 443 → curl -sI URL. 시간 재 — 60 초 미만이 목표. 이게 근육 기억이 되면 troubleshooting 이 "흠" 에서 "아, hop 4" 가 돼.

Progress

Progress is local-only — sign in to sync across devices.
이 페이지에서 버그를 발견하셨거나 피드백이 있으세요?문제 신고

댓글 0

🔔 답글 알림 (로그인 필요)
로그인댓글을 남기려면 로그인해 주세요.

아직 댓글이 없어요. 첫 댓글을 남겨보세요.