Logo Network Diag

Network Diag

Tổ chức
serversathome
network-diag

Diagnose homelab connectivity, DNS, mesh, and ingress issues. Use this whenever the user reports that hosts or services are unreachable, DNS is not resolving, the NetBird mesh is flaky, a Cloudflare Tunnel is down, the UCG-Ultra gateway or Netgear 10GbE switch is involved, a link dropped or renegotiated speed, or a service works locally but not remotely. Trigger this early in any "everything is down" situation, since broad outages are usually a network or DNS layer wearing an application costume.

Add to TypingMind

Tổng quan

Nhà phát hànhserversathome
Kho mãhomelabhero
Tên kỹ năngnetwork-diag
Sao
104
Bản fork
4
Tệp đi kèm
Chỉ có hướng dẫn
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • Hướng dẫn có đủ mọi thứ cần thiết

    Mọi thứ mô hình cần đều nằm trong hướng dẫn — không có tệp bổ sung cần đồng bộ.

  • Mã nguồn mở

    Được serversathome công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Network Diag trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/serversathome/homelabhero/tree/main/ops/.claude/skills/network-diag
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/serversathome/homelabhero.git /tmp/homelabhero
mkdir -p .claude/skills
cp -r /tmp/homelabhero/ops/.claude/skills/network-diag .claude/skills/network-diag
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Network Diag trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Network Diag ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Network Diag với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Network diagnostics

Read infra/network.md for topology, subnets, DNS, and mesh CIDR first. The per-platform commands live in capabilities/ (linux.md for host interfaces, routes and resolvers; routeros.md for a MikroTik switch, which is not a POSIX shell), and are not loaded up front: read the one for the host you are probing.

Ask the gateway first, if it is registered

When a UniFi console is registered (hh list shows platform unifi), start there. One command rules the whole fabric in or out before probing host by host:

hh unifi summary                 # WAN, internet, LAN, WiFi, devices, clients
hh unifi devices                 # anything not ONLINE explains a lot at once

An offline switch or access point accounts for every host behind it, so finding one here saves troubleshooting those hosts individually. The unifi-ops skill covers the rest, including clients and VLANs.

This is read-only: it diagnoses the fabric, it does not reconfigure it. UniFi changes are made by hand in the UniFi app.

Then ask the mesh and the edge, if they are registered

The overlay and the ingress each have their own control plane, and each answers when the host in question does not. Check them before shelling anywhere:

hh netbird summary               # is the peer even connected? (netbird-ops)
hh cloudflare summary            # is the tunnel up? (cloudflare-ops)

This is the order that saves the most time: fabric, then overlay, then edge, then the host. Three of those four answer while the host is unreachable, so working inward means you usually know WHERE the break is before you try to log in to anything.

What none of them can see, and this skill can: DNS resolution inside a host, the host's own interfaces and routes, and whether the service itself is alive. A NetBird peer can be connected and a Cloudflare tunnel healthy while the app behind them returns 502 all day.

Localize: is it reachability, name resolution, or the service

ping -c2 <host-ip>                 # L3 reachability by IP
nc -vz <host> <port>               # is the service port open
dig <name> @<internal-resolver>    # does the name resolve, to what

Three quick outcomes:

  • IP pings, name fails -> DNS problem (go to DNS section)
  • Neither pings -> host or path down (mesh, switch, gateway)
  • Both fine, port closed -> the service, not the network (hand back to the app)

NetBird mesh

Ask the control plane first - it answers when the peer does not:

hh netbird summary                 # offline peers, agent version drift
hh netbird peers                   # last seen, per peer
hh netbird peer <name>             # one peer in full

Then the peer's own opinion, which is a good second source and a poor first one:

netbird status                     # local peers and connection state
hh run <alias> "netbird status"       # from the far side, if reachable another way

If a host is reachable on its LAN IP but not its mesh IP, the mesh peer is down. Restart NetBird on that host; peers commonly need a nudge after the host reboots.

DNS

resolvectl status | head -30
dig <name> @<internal-resolver>
dig <name> @1.1.1.1                # compare internal vs external answer

Split-horizon mismatches (internal name resolving differently per VLAN, or a stale record after a gateway change) show up as "works from here, not from there". Compare answers from two vantage points.

Ingress

There may be TWO ways in, and checking only one is the most common way to conclude wrongly that a service is not published:

  • a Cloudflare Tunnel, and
  • a NetBird BYOP reverse proxy, if the account runs one.

Ask both before deciding:

hh netbird services                # NetBird-published, and public vs mesh-only
hh cloudflare tunnels              # Cloudflare-published

A NetBird service marked mesh-only is reachable over the mesh and gated by group membership - it has a domain and a certificate and is deliberately NOT on the internet. That is a configuration, not a fault.

Cloudflare Tunnels

Cloudflare's own view first, for the same reason:

hh cloudflare tunnels              # status and live connection counts
hh cloudflare tunnel-show <name>   # which hostname maps to which service
hh cloudflare records <zone> <name>  # does the DNS record point at it

A hostname needs BOTH an ingress rule and a CNAME to <tunnel-id>.cfargotunnel.com; one without the other is a common half-finished state that looks like a tunnel fault and is not.

Then the daemon on the host:

hh run <tunnel-host> "cloudflared tunnel list"
hh run <tunnel-host> "systemctl status cloudflared"
hh run <tunnel-host> "journalctl -u cloudflared -n 80 --no-pager"

Physical layer (10GbE)

If storage throughput suddenly tanks, check for link renegotiation.

hh run truenas "ethtool <iface> | grep -i speed"
hh run truenas "ip -s link show <iface>"   # errors/drops climbing

The UCG-Ultra and the XS708E are managed from their own UIs; note findings here and in infra/network.md, since they are not SSH targets.

Câu hỏi thường gặp

Kỹ năng AI Network Diag làm được gì?

Diagnose homelab connectivity, DNS, mesh, and ingress issues. Use this whenever the user reports that hosts or services are unreachable, DNS is not resolving, the NetBird mesh is flaky, a Cloudflare Tunnel is down, the UCG-Ultra gateway or Netgear 10GbE switch is involved, a link dropped or renegotiated speed, or a service works locally but not remotely. Trigger this early in any "everything is down" situation, since broad outages are usually a network or DNS layer wearing an application costume.

Vì sao nên dùng Network Diag trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Network Diag là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Network Diag trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/serversathome/homelabhero/tree/main/ops/.claude/skills/network-diag. TypingMind đọc tệp SKILL.md rồi cài đặt kỹ năng để bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Network Diag?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Network Diag với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Network Diag với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Network Diag có miễn phí không?

Kỹ năng này được serversathome phát hành trên GitHub. Hãy xem điều khoản giấy phép trong kho mã. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇