-2

Hi, I have installed Cent OS inside VM Ware. I want to know the IP address. When I try to find it using "ifconfig" in terminal, it is showing Local address(127.0.0.1). What might be the issue? I want to know the actual IP address.

sebenalern
  • 2,515
  • 3
  • 26
  • 36
bgt
  • 19
  • 5
  • I shutdown the guest OS and VM Ware and again restarted. Now it's giving the actual ip address(192.XXX.XXX.XX). Don't know the exact reason for this behaviour! – bgt Jan 16 '16 at 14:15
  • @Idos.Ya sure.I am new to this. I will do it from now onwards. Actually I tried both the solutions. But they didn't work. – bgt Jan 19 '16 at 17:03

2 Answers2

0

You can try ip a s or ifconfig -a

What you see if the address of the localhost interface, it seems your VM doesn't have any ethXXX of emXXX interface configured

iXô
  • 1,133
  • 1
  • 16
  • 39
0

Try running dhclient eth0 first, as dhclient is used to get an IP address from a DHCP server.
Then run ifconfig and you will see the IPv4/IPv6 (inet addr and inet6 addr respectively) that has been assigned to your VM.

Idos
  • 15,053
  • 14
  • 60
  • 75