Viewing the status of NetworkManager managed links


As I mentioned in a previous post, I spent some time trying to get the NetworkManager to respect my custom DNS settings. When I was looking into this issue, I learned about the nm-tool utility. This nifty tool will print the status of each NetworkManager managed interface, as well as the connection state:

$ nm-tool

NetworkManager Tool

State: connected

- Device: eth0 [System eth0] --------------------------------------------------
Type: Wired
Driver: tg3
State: connected
Default: yes
HW Address: 00:19:B9:3A:26:BC

Capabilities:
Carrier Detect: yes
Speed: 100 Mb/s

Wired Properties
Carrier: on

IPv4 Settings:
Address: 192.168.1.91
Prefix: 24 (255.255.255.0)
Gateway: 192.168.1.254

DNS: 192.168.1.1
DNS: 192.168.1.2

I found the IPv4 settings section to be rather useful while I was debugging a network connectivity problem (nm-tool and ethtool make it SUPER easy to debug link problems), and will definitely be using this tool in the future!

This article was posted by Matty on 2009-09-20 09:32:00 -0400 -0400