you can use command:
ip -br addr show

example:
root@raspi:~ $ ip -br addr show
lo UNKNOWN 127.0.0.1/8 ::1/128
enxb827ebb0b9a8 UP 192.168.2.8/24 192.168.2.9/24

>> this linux device has two ip addresses 192.168.2.8 + 192.168.2.9

computer2know :: thank you for your visit :: have a nice day :: © 2024