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.
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 188.8.131.52/24 brd 184.108.40.206 scope global bond0
inet 220.127.116.11/24 brd 18.104.22.168 scope global secondary bond0:1
inet 22.214.171.124/24 brd 126.96.36.199 scope global secondary bond0:2
inet 188.8.131.52/24 brd 184.108.40.206 scope global secondary bond0:0
inet 220.127.116.11/20 brd 18.104.22.168 scope global bond0:2032
inet 22.214.171.124/22 brd 126.96.36.199 scope global bond0:2056
inet 188.8.131.52/22 brd 184.108.40.206 scope global secondary bond0.2058:1
inet 220.127.116.11/22brd 18.104.22.168 scope global secondary bond0.2058:2