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