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

Tailscale 셋업 & 안정 IP

~12 min · tailscale, stable-ip, cgnat-range

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

각 장치가 안정 IP 받음

장치에 Tailscale 올라오면 100.64.0.0/10 대역의 영구 IP 받음 — 형식상 CGNAT 공간이지만 Tailscale 이 tailnet 주소로 사용. IP 가 장치가 네트워크 옮길 때 안 변함. SSH config, 스크립트, bookmark 에 박아 — 재부팅, 네트워크 변경, 재설치 (같은 계정 sign in 한)도 살아남음.

Code

셋업 핵심·bash
# Find your tailnet IP
tailscale ip -4

# All devices on your tailnet
tailscale status

# Bring it up with options
sudo tailscale up --hostname=office --accept-routes --ssh
# --hostname    name to register as on the tailnet
# --accept-routes  let advertised subnets in (we'll cover this later)
# --ssh         enable Tailscale SSH (lesson 9)

# Bring it down without forgetting account
tailscale down

# Forget account entirely
sudo tailscale logout
다른 장치에서 사용·bash
# By tailnet IP
ping 100.64.0.1
ssh you_username@100.64.0.1

# By short hostname (MagicDNS — next lesson)
ping office
ssh office

External links

Exercise

Fleet 의 모든 머신 (Mac, Linux, 폰까지) 에 Tailscale 설치하고 tailnet 합류. 한 장치에서 tailscale status 돌려 전체 fleet nageul 봐. 각 장치의 100.64.x.y IP 메모 — 그게 앞으로 SSH config 와 스크립트에서 쓸 주소.

Progress

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

댓글 0

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

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