node-show-gateway

Retrieve the default gateway for a Kubernetes node network interface.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill helps diagnose network connectivity issues on Kubernetes nodes by identifying the default gateway for a specified network interface.

Core Features & Use Cases

  • Gateway Identification: Retrieves the default gateway IP address and associated network interface details.
  • Interface Specificity: Allows querying for a specific network interface or all available interfaces.
  • Use Case: When a pod on a specific node cannot reach external services, this Skill can help determine if the node's default route is correctly configured.

Quick Start

Show the gateway for the eth0 interface on the node nodepool-061.

Frequently Asked Questions about node-show-gateway

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

FAQPage Schema
How do I find the default network gateway on a Kubernetes node?

To find the default network gateway on a Kubernetes node, you can execute a diagnostic command that retrieves the default route and gateway IP address for a specified network interface using the host's network namespace.

How do I check the default route for a specific interface like eth0 on a node?

You can check the default route for a specific interface by querying the node's network configuration, which parses routing tables to return the gateway IP and interface details for connections like eth0.

Why does my Kubernetes pod fail to reach external services and how can I check node routing?

Pods may fail to reach external services if the node's default route is misconfigured. You can check node routing by retrieving the default gateway IP to verify external connectivity paths are correctly established.

Can I retrieve gateway information for switchdev mode PFs on a Kubernetes node?

For switchdev mode PFs, retrieving the gateway directly is not supported. The system identifies these interface types and recommends performing alternative pod-level diagnostics instead of node-level route queries.

Does this network diagnostic tool support RoCE and InfiniBand interfaces?

Yes, the network gateway diagnostic tool supports RoCE and InfiniBand interfaces. It identifies these specific interface types during execution to accurately handle their routing configurations.

What is the best way to troubleshoot node network connectivity issues for SRE workflows?

For SRE troubleshooting, the best way to diagnose node network connectivity is to retrieve default gateway IP addresses and associated interface details to quickly pinpoint misconfigured external routes.