Probleme getting the IP address of eth0 on lab docker service

Hello ,
I’am into the course of Docker Swarm|Docker Services and STACK and i’m making a lab of docker service.
the labs is invinting me to initiate the the swarm using ip address of eth0 used by the system
i have tested all the possibilities in that system to get the ip address, here is the output ( Debian)

$ cat /etc/os-release 
PRETTY_NAME="Debian GNU/Linux 9 (stretch)"
NAME="Debian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
VERSION_CODENAME=stretch
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
$

$ ip ad sh
bash: ip: command not found
$ ifconfig
bash: ifconfig: command not found
$ nmtui
bash: nmtui: command not found
$ ip ad
bash: ip: command not found
$ route -n
bash: route: command not found
$

has anyone the same issue ?
Waiting for respond
Thanks

i just found that the ip address will not be viewed running the commands that i have mentionned but when running docker swarm init i can get the ip of eth0

Hello,

you can install apt install iproute2and try ip ad sh again

Thanks,
KodeKloud Support

Hello dear @Ayman .
Yes i know how to install it, i just want to make this note about futur students.
Thanks for the support.

Hello @houariabdelmouhssine,
Great! Thanks for sharing!