To check the IP address :
root@gcloud:~# ip -br a lo UNKNOWN 127.0.0.1/8 ::1/128 eth0 UP 10.27.2.58/24 fe80::20c:29ff:fe7e:89c4/64 docker0 UP 172.17.0.1/16 fe80::42:6dff:fe1c:28d6/64 vethe1bf053@if4 UP fe80::d0b3:dfff:fe8b:b0aa/64
To check the MAC address :
root@gcloud:~# ip -br l lo UNKNOWN 00:00:00:00:00:00 <LOOPBACK,UP,LOWER_UP> eth0 UP 00:0c:29:7e:89:c4 <BROADCAST,MULTICAST,UP,LOWER_UP> docker0 UP 02:42:6d:1c:28:d6 <BROADCAST,MULTICAST,UP,LOWER_UP> vethe1bf053@if4 UP d2:b3:df:8b:b0:aa <BROADCAST,MULTICAST,UP,LOWER_UP>
Interface Up and Down Command :
Interface Up :
root@gcloud:~# ip link set eth0 up root@gcloud:~# ifconfig eth0 up
Interface down:
root@gcloud:~# ip link set eth0 down root@gcloud:~# ifconfig eth0 down
Interface Add and del Workout :
ip addr del 10.10.10.10/8 dev eth0 ip addr add 10.10.10.10/8 dev eth0
Interface restart Workout :
systemctl restart networking
Interface edit Workout :
nano /etc/networks/interfaces
Leave A Comment?