Deepak
Deepak

Reputation: 83

linux command which shows physical IP of system

Is there any command which determine physical IP of the system ( on each physical Interface)?

Actually I want to make a script which un plump all IP except physical IP.

Thanks in advance, Deepak

Upvotes: 0

Views: 458

Answers (2)

DevSolar
DevSolar

Reputation: 70293

...on each physical Interface...

That would be ifconfig.

You can also call hostname -I (note the uppercase "I"), which lists all configured IP's except loopback and IPv6 link-local.

Upvotes: 1

Steephen
Steephen

Reputation: 15824

There will be one IP address for a server, since it is an entity in network for that server. To get the IP adrress in linux:

 hostname -i 

Upvotes: 1

Related Questions