The "ipaddrs" Command
The ipaddrs
command in ChromeOS provides a straightforward way to display IP addresses assigned to your device through the Chrome OS Shell (crosh). This section explains how to use this networking utility effectively.
Command Overview
The basic syntax for the command is:
ipaddrs [-4] [-6]
Understanding the Command
Basic Usage
The ipaddrs
command without any flags will: - Display all IP addresses assigned to the device - Show both IPv4 and IPv6 addresses - List addresses for all network interfaces
Command Options
-4
: Only display IPv4 addresses-6
: Only display IPv6 addresses
Using the Command
View All IP Addresses
To see all IP addresses:
ipaddrs
View IPv4 Addresses Only
To display only IPv4 addresses:
ipaddrs -4
View IPv6 Addresses Only
To display only IPv6 addresses:
ipaddrs -6
Understanding the Output
Address Types
The command displays: - Local addresses - Network interface addresses - Loopback addresses
Network Interfaces
Addresses are shown for: - WiFi connections - Ethernet connections - Virtual interfaces - Loopback interface