-2

I have a ubuntu 14.04 running in my VmWare virtual machine and I unable to connect to internet from VM.I can't see eth0 in ifconfig in either bridged or NAT mode. The only setting I have is Network Adapter:NAT,Connected and Connect on Power on both are checked.

xyz@ubuntu:~$ ifconfig
lo    Link encap:Local Loopback  
      inet addr:127.0.0.1  Mask:255.0.0.0
      inet6 addr: ::1/128 Scope:Host
      UP LOOPBACK RUNNING  MTU:65536  Metric:1
      RX packets:170 errors:0 dropped:0 overruns:0 frame:0
      TX packets:170 errors:0 dropped:0 overruns:0 carrier:0
      collisions:0 txqueuelen:0 
      RX bytes:22628 (22.6 KB)  TX bytes:22628 (22.6 KB)

xyz@ubuntu:~$ ifconfig -a
eth0  Link encap:Ethernet  HWaddr 00:0c:29:f0:87:76  
      BROADCAST MULTICAST  MTU:1500  Metric:1
      RX packets:0 errors:0 dropped:0 overruns:0 frame:0
      TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
      collisions:0 txqueuelen:1000 
      RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

lo    Link encap:Local Loopback  
      inet addr:127.0.0.1  Mask:255.0.0.0
      inet6 addr: ::1/128 Scope:Host
      UP LOOPBACK RUNNING  MTU:65536  Metric:1
      RX packets:170 errors:0 dropped:0 overruns:0 frame:0
      TX packets:170 errors:0 dropped:0 overruns:0 carrier:0
      collisions:0 txqueuelen:0 
      RX bytes:22628 (22.6 KB)  TX bytes:22628 (22.6 KB)
WillMcavoy
  • 1,795
  • 4
  • 22
  • 34

1 Answers1

1

I'm placing the answer to your question in an answer rather than in the comments to make it easier to find for others finding this question via Google.

Check you /etc/network/interfaces file and make sure it includes the following two lines for eth0 (or your network interface)

auto eth0
iface eth0 inet dhcp

For your question about ssh, check all the permission on both the client and server (https://stackoverflow.com/a/6377073/2263949), and check if you can ping it. If you can ping, and permissions are OK but you still can't connect, check firewall settings.

Community
  • 1
  • 1
Jonathan
  • 6,507
  • 5
  • 37
  • 47