To view only host ip addrees type below commandhostname -Iifconfig is used to configure (or) view the configuration details of network interface.Open terminal Type