A short post to tell you about a tool named nm-tool. Use nm-tool to display your current network settings. nm-tool is installed as part of the NetworkManager package.
Ubuntu: network-manager package
Fedora: NetworkManager package
As you can see it returns a lot of useful information.
$ nm-tool NetworkManager Tool State: connected - Device: eth0 [Auto eth0] ---------------------------------------------------- Type: Wired Driver: r8169 State: connected Default: yes HW Address: 00:24:8C:95:28:BF Capabilities: Carrier Detect: yes Speed: 100 Mb/s Wired Properties Carrier: on IPv4 Settings: Address: 192.168.140.11 Prefix: 24 (255.255.255.0) Gateway: 192.168.140.1 DNS: 192.168.140.19 DNS: 192.168.140.9 - Device: wlan0 [Auto stargate] ----------------------------------------------- Type: 802.11 WiFi Driver: ath5k State: connected Default: no HW Address: 00:11:6B:62:22:4C Capabilities: Speed: 54 Mb/s Wireless Properties WEP Encryption: yes WPA Encryption: yes WPA2 Encryption: yes Wireless Access Points (* = current AP) stargate: Infra, 00:14:D1:4E:40:EE, Freq 2437 MHz, Rate 54 Mb/s, Strength 48 WPA2 *stargate: Infra, 00:1C:F0:5F:78:A5, Freq 2412 MHz, Rate 54 Mb/s, Strength 90 WPA2 stargate: Infra, 00:14:D1:4E:40:EE, Freq 2462 MHz, Rate 54 Mb/s, Strength 45 WPA2 IPv4 Settings: Address: 192.168.142.106 Prefix: 24 (255.255.255.0) Gateway: 192.168.142.1 DNS: 192.168.140.19 DNS: 192.168.140.9