K
K
Kerm2019-03-22 14:19:31
linux
Kerm, 2019-03-22 14:19:31

What is the equivalent of ipconfig in Linux?

I need to find out what network settings my device (android tv) received from the DHCP server, such as ip, gateway, mask, dns server and dhcp server name.
I tried ifconfig, but if I just enter this command, I can only find out the ip and interface mask, maybe I don’t know what keys to specify.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
R
Ruslan Fedoseev, 2019-03-22
@martin74ua

there is no complete analogue of ipconfig
information is scattered in several places
address:
ifconfig
ip a
routing:
route
ip r
DNS:
cat /etc/resolv.conf

E
Evgen, 2019-03-22
@etaliorum

ip a
To learn more:
man ip

N
newdancer, 2019-03-24
@newdancer

You must remember that Android is not a full-fledged Linux and a lot is cut out there.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question