pod-ping-gateway

Ping the default gateway for a network interface within a pod's network namespace.

225|28|Updated Mar 2, 2026
One-click install
npx skills add https://github.com/scitix/siclaw --skill pod-ping-gateway
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pod-ping-gateway
Source: https://github.com/scitix/siclaw/tree/main/skills/core/pod-ping-gateway
Command: npx skills add https://github.com/scitix/siclaw --skill pod-ping-gateway

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires jq, ip, and includes scripts (resource) components.

What problem does it solve?

This Skill helps diagnose network connectivity issues within a pod by pinging its default gateway for a specified network interface.

Core Features & Use Cases

  • Gateway Detection: Automatically identifies the gateway IP address from the pod's routing table for a given interface.
  • Targeted Pinging: Executes ping commands to the detected gateway, allowing for network reachability tests.
  • Source IP/Device Specification: Supports specifying a source IP address or network interface for the ping command for more granular testing.
  • Use Case: When a pod cannot reach external services, this Skill can quickly verify if the pod's immediate network gateway is responsive.

Quick Start

Use the pod_netns_script tool to ping the gateway for the net1 interface on the rdma-pod in the rdma-test namespace.

Frequently Asked Questions about pod-ping-gateway

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I ping a pod gateway to debug network connectivity issues?

Pinging a pod gateway for network connectivity debugging involves entering the pod's network namespace, detecting the default gateway IP from the routing table for a specified interface, and executing ping commands to validate reachability to the immediate network egress point.

How do I specify a source IP or network interface when pinging a pod gateway?

You can specify a source IP address or network interface for pinging a pod gateway by passing custom ping parameters. This allows granular testing of network reachability from specific interfaces within the pod's network namespace.

How does the gateway detection mechanism work for a pod's network interface?

Gateway detection works by querying the routing table within the pod's network namespace to automatically identify the default gateway IP address for a given network interface. This eliminates the need to manually look up the gateway IP before testing connectivity.

Can I use this Skill to test network reachability for a specific pod in a Kubernetes namespace?

Yes, you can test network reachability for a specific pod in a Kubernetes namespace by targeting the pod by name and namespace. The Skill executes within the pod's network namespace to ping the default gateway of the specified network interface.

What dependencies are required to ping the default gateway within a pod's network namespace?

To ping the default gateway within a pod's network namespace, the environment requires the jq command-line processor for parsing routing table outputs and the ip utility for network interface and namespace management.

Why would I need to ping a pod gateway when the pod cannot reach external services?

Pinging a pod gateway when a pod cannot reach external services quickly verifies if the pod's immediate network egress point is responsive. This isolates whether the connectivity failure is local to the pod or occurring upstream.