Check the section called "15.04 and newer" above this one in this case. If you're using Ubuntu 15.04 or newer the nm-tool has been replaced by the nmcli command which is different. ![]() To run it just type in a terminal: nm-tool Here is an interesting blog post T-Mobile: Clever or Insane but I don't have T-Mobile as network operator. I actually get a local IPv4 address from them too, it's not the same as I see if I visit an What is my IP service. You can get these with nm-tool (in Ubuntu versions prior to 15.04) which BTW is the command line version of network manager. Matthew: There may be something with my network operator too. To get a list of devices and their status type: nmcli dev status Replace eth0 with the actual device name you're using, which may not be the same. On 16.04 and newer versions there is a IP4.GATEWAY line which is pretty self explanatory. That shows what I want to see 99 of the time, but ipconfig /all also shows things like DHCP lease times and servers. The output lists some device parameters including some IP4.DNS entries, which show the DNS servers and a IP4.ADDRESS line which lists the IP and Gateway used (look for the gw = ?.?.?.? part at the end of the line up to 15.10). ipconfig shows things like hostname, DNS servers, those are in a different place than just IP addresses in linux, so you will need a couple of commands. To get the DNS and Gateway info just type: nmcli dev show eth0 ![]() ![]() The only thing missing from ifconfig are the gateway and DNS servers.
0 Comments
Leave a Reply. |