Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

Linux

Direct answer

On Linux, verify client addressing with ip -br address, ip route (default gateway), resolvectl status or /etc/resolv.conf (DNS) and ping/tracepath to the gateway and beyond.

When to use this

Use this on a Linux client to read addressing with ip address, the default route with ip route, resolvers with resolvectl status or /etc/resolv.conf, and then ping the gateway.

First 30 seconds

1. Verify Linux client IP config: address, prefix, gateway, DNS.

2. Check DHCP lease (journalctl -u NetworkManager or dhclient logs).

3. Test gateway, then remote IP, then name.

4. Check ARP with ip neigh.

5. Compare with expected subnet.

Operational verification

address → gateway → ARP → remote IP → DNS

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Cisco IOS / IOS XE
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformCisco IOS / IOS XE · Linux · Windows / PowerShell
Key commandip address
Scope / prerequisiteUse this on a Linux client to read addressing with ip address, the default route with ip route, resolvers with resolvec…
Configure · 1Troubleshoot · 4Reference · 3
What next?3 suggested next steps
Catalog command links8
Evidence0
On this pageJump to a specific section
Cisco IOS / IOS XE first

Primary Commands

Configuration and operational commands for this Topic.

ip linkReference
ip link

Inspect or change interface link state, MTU, MAC address and link-layer properties.

Use when: Primary lookup intent: configure. Use ip link when the lookup goal is to inspect or change interface link state, MTU, MAC address and link-layer properties. Tie the result to the same host, namespace, user identity and time window as the symptom.

Quick note: Post-change verification for ip link: Verify carrier/admin/link attributes and retest the original adjacent and end-to-end path. Output review: healthy and suspicious cues are command-specific interpretation boundaries, not fixed literal output samples. Intent class: configure. Safety class: disruptive. Intent describes the primary lookup role; safety remains command-family capability and can be higher than a read-only invocation. ip link is documented as an operational lookup primitive under Linux Networking. The canonical leaf intentionally represents the command family; options remain distribution/tool-version specific.

Linux · control plane
ip routeReference
ip route

Inspect or change kernel routing-table entries and route-selection attributes.

Use when: Primary lookup intent: configure. Use ip route when the lookup goal is to inspect or change kernel routing-table entries and route-selection attributes. Tie the result to the same host, namespace, user identity and time window as the symptom.

Quick note: Post-change verification for ip route: Verify route lookup/source selection and rerun the original end-to-end flow. Output review: healthy and suspicious cues are command-specific interpretation boundaries, not fixed literal output samples. Intent class: configure. Safety class: changes_state. Intent describes the primary lookup role; safety remains command-family capability and can be higher than a read-only invocation. ip route is documented as an operational lookup primitive under Linux Networking. The canonical leaf intentionally represents the command family; options remain distribution/tool-version specific.

Linux · control plane
ip neighReference
ip neigh

Inspect or change ARP and IPv6 neighbor-cache entries and reachability state.

Use when: Primary lookup intent: configure. Use ip neigh when the lookup goal is to inspect or change ARP and IPv6 neighbor-cache entries and reachability state. Tie the result to the same host, namespace, user identity and time window as the symptom.

Quick note: Post-change verification for ip neigh: Read back neighbor state and rerun the target L3/L4/application test. Output review: healthy and suspicious cues are command-specific interpretation boundaries, not fixed literal output samples. Intent class: configure. Safety class: changes_state. Intent describes the primary lookup role; safety remains command-family capability and can be higher than a read-only invocation. ip neigh is documented as an operational lookup primitive under Linux Networking. The canonical leaf intentionally represents the command family; options remain distribution/tool-version specific.

Linux · control plane
tracerouteTroubleshoot
traceroute

Discover path hops toward a destination by eliciting TTL-expiry responses.

Use when: Primary lookup intent: troubleshoot. Use traceroute when the lookup goal is to discover path hops toward a destination by eliciting TTL-expiry responses. Tie the result to the same host, namespace, user identity and time window as the symptom.

Quick note: Output review: healthy and suspicious cues are command-specific interpretation boundaries, not fixed literal output samples. Intent class: troubleshoot. Safety class: read_only. Intent describes the primary lookup role; safety remains command-family capability and can be higher than a read-only invocation. traceroute is documented as an operational lookup primitive under Network Troubleshooting. The canonical leaf intentionally represents the command family; options remain distribution/tool-version specific.

Linux · data plane
digTroubleshoot
dig

Issue DNS queries and display response sections, flags, timing and selected resolver behavior.

Use when: Primary lookup intent: troubleshoot. Use dig when the lookup goal is to issue DNS queries and display response sections, flags, timing and selected resolver behavior. Tie the result to the same host, namespace, user identity and time window as the symptom.

Quick note: Output review: healthy and suspicious cues are command-specific interpretation boundaries, not fixed literal output samples. Intent class: troubleshoot. Safety class: read_only. Intent describes the primary lookup role; safety remains command-family capability and can be higher than a read-only invocation. dig is documented as an operational lookup primitive under DNS. The canonical leaf intentionally represents the command family; options remain distribution/tool-version specific.

Linux · control plane
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Common mistakes Narrow the fault
  • Using the deprecated ifconfig, which hides secondary addresses.
  • Checking /etc/resolv.conf on systemd-resolved hosts (shows only 127.0.0.53).
Command lookup Jump straight to Cisco syntax
Key checks
  • ip -br addr — addresses per interface
  • ip route — default gateway
  • resolvectl status — DNS servers
  • ping -c 3 <gateway> — gateway reachability
ReferenceHow it works1 section · depth on demand

What to read

ip -br address lists each interface with its addresses, ip route shows the default route and resolvectl status (systemd) or /etc/resolv.conf shows DNS. Check that the address is in the right subnet, a default route exists via the expected gateway, and DNS points to reachable servers.

ReferenceImportant terms & boundaries2 sections · depth on demand

In depth

Verifying IP on Linux

On Linux, the ip command shows and changes addresses, routes and neighbours. The ip-address manual describes ip address show [dev IFNAME] for listing addresses, ip address add and del for changing them, and the address lifetimes: when valid_lft expires the kernel removes the address, and after preferred_lft it's no longer used for new outgoing connections.

Core commands

TaskCommand
Addressesip address show (ip a), ip -br a for a brief view
Routesip route, ip route get <dst>
Neighbours (ARP / ND)ip neigh
Link stateip -br link, ethtool <dev>
DNS resolverresolvectl status, /etc/resolv.conf
Socketsss -tunap
host$ ip address show dev eth0
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether 50:54:00:12:34:56 brd ff:ff:ff:ff:ff:ff
    inet 10.110.0.64/24 brd 10.110.0.255 scope global dynamic noprefixroute eth0
       valid_lft 41837sec preferred_lft 41837sec
    inet6 2001:db8:10:110::64/64 scope global dynamic mngtmpaddr
       valid_lft 2591961sec preferred_lft 604761sec
host$ ip route get 10.30.0.15
10.30.0.15 via 10.110.0.1 dev eth0 src 10.110.0.64 uid 1000
host$ ip neigh show dev eth0
10.110.0.1 lladdr a4:bb:6d:10:01:10 REACHABLE
host$ resolvectl query intranet.example.net
host$ sudo ip address add 10.110.0.200/24 dev eth0

dynamic with a finite valid_lft shows a DHCP (or SLAAC) address; a static address shows forever.

Distribution tools

ToolUse
NetworkManager (nmcli)Desktops and many servers
systemd-networkd / netplanServers and cloud images
dhclient / dhcpcdDHCP clients on some systems

Changes made with ip are temporary; make permanent changes in the distribution's network configuration.

Checks

ip route get shows the exact path the kernel will use, including source address, which is useful on hosts with several interfaces.

Documented example, not captured output.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

Quick reference

On Linux, the ip command from iproute2 is the authoritative tool for addresses and routes; older ifconfig and route may be missing or incomplete. Name resolution may go through systemd-resolved, so check resolvectl rather than assuming /etc/resolv.conf is the whole story. ip route get is particularly valuable because it asks the kernel which path it would actually use for a destination.

Linux client verification:

ip -br addr; ip route; ip -6 route
resolvectl status 2>/dev/null || cat /etc/resolv.conf
ping -c3 $(ip route show default | awk '{print $3;exit}')
ip route get 8.8.8.8
getent hosts intranet.corp.example.com
nmcli dev show eth0 | grep -E 'IP4|IP6|DNS'

ip route get shows the exact interface and source address used — key on multi-homed hosts and with VPNs.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
ReferenceConfiguration & state1 section · depth on demand

Commands

ip -br address                      # interfaces and addresses
ip route                            # default gateway
ip route get 8.8.8.8                # route and source used for a destination
resolvectl status                   # DNS servers (systemd-resolved), or cat /etc/resolv.conf
ping -c 3 <gateway> ; dig example.com
nmcli device show eth0              # NetworkManager view

Check that the address and prefix match the VLAN, there is exactly one default route, and DNS answers before testing applications.

Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docCisco IOS / IOS XE Current documentation reviewed 2026-09-14

Authoritative/upstream documentation reviewed for bounded claims in IP Fundamentals → Client IP Verification → Linux. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://www.cisco.com/c/en/us/support/ios-nx-os-software/ios-xe-17/series.html · confidence 94%
Confirmation

Confirm action

Continue?