| Crates.io | ls_net |
| lib.rs | ls_net |
| version | 0.1.2 |
| created_at | 2025-05-26 13:20:11.933025+00 |
| updated_at | 2025-06-04 12:23:23.635454+00 |
| description | A CLI tool for displaying local network interfaces, IP addresses and routes. |
| homepage | |
| repository | https://github.com/guangyu-he/ls_net |
| max_upload_size | |
| id | 1689646 |
| size | 38,621 |
A CLI tool for displaying local network interfaces, IP addresses, and routing tables. Built in Rust, ls_net provides a
cross-platform way to inspect your machine's network configuration with simple commands.
Clone the repository:
git clone https://github.com/guangyu-he/ls_net
cd ls_net
Build or install with Cargo:
cargo build --release
or
cargo install --path .
cargo install --git https://github.com/guangyu-he/ls_net
cargo install ls_net
ls_net [OPTIONS]
-p, --protocol <PROTOCOL> Protocol type to use: all, ipv4, or ipv6. Defaults to ipv4.-h, --help Print help information-V, --version Print version informationminimal usage
ls_net
for all protocols
ls_net -p all
Local Network Interfaces and IP Addresses
Main IP address: 192.168.1.100
============================================
eth0 : 192.168.1.100
lo : 127.0.0.1
...
============================================
Found x network interfaces (displaying x)
================ IPv4 Routes ================
Destination Gateway Flags Netif Expire
0.0.0.0 192.168.1.1 UGSC 0.0.0.0
...
================ IPv4 Default Gateway ================
IPv4 Default Gateway: 192.168.1.1 via en0
netstat -nr for route tableroute printMIT