How to find physical and virtual ips?

MQMB&WAS

New Member
Hello guys,

I’m a beginner in Linux and was given a task of finding the physical IPs and Virtual IPs for a few servers. Ilooked online but couldn’tfind any helpful info.
Could someone please explain me on how to find the physical IPs and virtual IPs oof a server? Thank you.
 


MQMB&WAS

New Member
Thanks for the links.
with the commands, ifconfig -a | grep "^ *inet addr:" and ip addr | grep "^ *inet ", the output shows multiple ips. I thought a server has only 1 physical IP and 1 Virtual IP.
How to tell which one is the physical IP and which one is virtual IP from the output?


The output looks like this with the command ip addr | grep "^ *inet "

inet 127.0.0.1/8 scope host 1o
inet 19.24.189.38/24 brd 19.24.189.255 scope global bond0
inet 19.24.189.122/24 brd 19.24.189.255 scope global secondary bond0:1
inet 19.24.189.138/24 brd 19.24.189.255 scope global secondary bond0:2
inet 19.24.189.15/24 brd 19.24.189.255 scope global secondary bond0:0
inet 19.24.189.64/20 brd 19.24.47.255 scope global bond0:2032
inet 19.24.189.32/22 brd 19.24.59.255 scope global bond0:2056
inet 19.24.189.16/22 brd 19.24.59.255 scope global secondary bond0.2058:1
inet 19.24.189.74/22brd 19.24.59.255 scope global secondary bond0.2058:2

Appreciate your help.
 

Staff online

Members online


Latest posts

Top