| Crates.io | ifrs |
| lib.rs | ifrs |
| version | 0.1.0 |
| created_at | 2026-01-24 07:33:23.07515+00 |
| updated_at | 2026-01-24 07:33:23.07515+00 |
| description | A network interface information tool |
| homepage | |
| repository | https://github.com/awgn/ifrs |
| max_upload_size | |
| id | 2066342 |
| size | 99,897 |
A command-line tool to display detailed information about network interfaces on Linux and macOS systems.
ifrs (Interface Information Tool) provides a comprehensive view of network interfaces, including IP addresses, MAC addresses, driver details, PCI information, and more. It supports filtering and fuzzy searching to quickly find specific interfaces.
Ensure you have Rust installed. Then clone the repository and build:
git clone https://github.com/awgn/ifrs.git
cd ifrs
cargo build --release
The binary will be available at target/release/ifrs.
If you have Rust installed, you can install directly from crates.io:
cargo install ifrs
ifrs [OPTIONS] [KEYWORDS]...
-a, --all: Display all interfaces, even if they are down.-v, --verbose: Enable verbose output, showing additional details like features, rings, and channels (Linux only).-4, --ipv4: Show only interfaces with IPv4 addresses.-6, --ipv6: Show only interfaces with IPv6 addresses.-r, --running: Show only running interfaces (link detected).-i, --ignore-case: Perform case-insensitive matching for keywords.-h, --help: Print help information.-V, --version: Print version information.You can provide one or more keywords as trailing arguments. The tool performs a fuzzy search, meaning it checks if any of the keywords are substrings of various interface attributes. The search is case-sensitive by default, but can be made case-insensitive with the -i flag.
The following attributes are searched:
If any keyword matches any of these attributes, the interface is displayed. If no keywords are provided, all matching interfaces (based on other filters) are shown.
List all interfaces:
ifrs
Shows only up interfaces with link detected by default.
List all interfaces, including down ones:
ifrs -a
Show only running interfaces:
ifrs -r
Filter by interface name:
ifrs eth0
Shows interfaces whose name contains "eth0".
Case-insensitive search for wireless interfaces:
ifrs -i wifi
Matches interfaces with "wifi" in any attribute, ignoring case.
Show only interfaces with IPv4 addresses:
ifrs -4
Verbose output for all interfaces:
ifrs -a -v
Search for interfaces with a specific MAC address prefix:
ifrs 00:1b:44
Combine filters:
ifrs -r -i ethernet
Shows running interfaces with "ethernet" in any attribute (case-insensitive).
Search for interfaces with a specific driver:
ifrs ixgbe
Shows interfaces whose driver name contains "ixgbe".
Each interface is displayed with its name, status ([link-up] or [link-down]), and optional namespace. Then, indented details include:
MIT OR Apache-2.0