First execution ip addr view there is no allocation ip
Commands as root execute dhclient -v to get a ip via DHCP protocol, the last line in the figure below you can see ip has been allocated successfully dhclient command can be used to release the IP address of your computer and get a new one from the DHCP server, it need root privileges to run the
Ip addr can again perform well have been assigned ip information