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.
Linux
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.
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
ip addressPrimary Commands
Configuration and operational commands for this Topic.
ip addressConfigureDisplay or change IP addresses on Linux interfaces.
Linux · mixedip linkReferenceInspect 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.
ip routeReferenceInspect 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.
ip neighReferenceInspect 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.
pingTroubleshootSend ICMP echo requests from Windows.
Use when: Use at the Network Troubleshooting, Ping, Traceroute and Debugging boundary after prerequisite state is verified.
Quick note: Operational guidance. One successful probe does not prove all sources, packet sizes, protocols, directions or times are healthy.
Windows / PowerShell · mixedtracerouteTroubleshootDiscover 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.
digTroubleshootIssue 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.
nslookupTroubleshootQuery DNS servers from Windows.
Windows / PowerShell · mixedVerification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
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.confon systemd-resolved hosts (shows only 127.0.0.53).
ip -br addr— addresses per interfaceip route— default gatewayresolvectl status— DNS serversping -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
| Task | Command |
|---|---|
| Addresses | ip address show (ip a), ip -br a for a brief view |
| Routes | ip route, ip route get <dst> |
| Neighbours (ARP / ND) | ip neigh |
| Link state | ip -br link, ethtool <dev> |
| DNS resolver | resolvectl status, /etc/resolv.conf |
| Sockets | ss -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
| Tool | Use |
|---|---|
NetworkManager (nmcli) | Desktops and many servers |
| systemd-networkd / netplan | Servers and cloud images |
dhclient / dhcpcd | DHCP 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.
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.
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
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
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%