Show the gateway for a network interface on a Kubernetes node. Runs `ip -j route` on the host via node_script tool.
Resources
1Install
npx skillscat add scitix/siclaw/node-show-gateway Install via the SkillsCat registry.
Node Show Gateway
Tool
Use the node_script tool to run this skill:
node_script: node="<node>", skill="node-show-gateway", script="show-node-gateway.sh", args="<args>"Parameters
| Parameter | Required | Description |
|---|---|---|
--interface IFACE |
no | Network interface name. If omitted, shows all. |
Examples
node_script: node="nodepool-061", skill="node-show-gateway", script="show-node-gateway.sh", args="--interface eth0"node_script: node="nodepool-061", skill="node-show-gateway", script="show-node-gateway.sh"Output
The output table includes a TYPE column identifying each interface type:
| TYPE | Meaning |
|---|---|
RoCE |
Ethernet interface with an RDMA device attached |
Ethernet |
Regular Ethernet interface |
IB |
InfiniBand interface |
Detection logic: /sys/class/net/<dev>/type = 32 → IB; type=1 and rdma link contains netdev <dev> → RoCE; otherwise → Ethernet.
Switchdev Note
If the target interface is a PF in switchdev mode, the displayed gateway routes are not meaningful —
the PF acts as an embedded switch and cannot send or receive traffic as an endpoint.
What to do instead: run node-list-roce-pods on the node to find a RoCE pod,
then use pod-show-gateway on that pod. This tests the actual VF data path.
See roce-diag-sriov-switchdev for full background.
See pod-show-gateway for the pod version.