PDA

View Full Version : [ubuntu] Eth0 not present in Natty (vmware)



jaywhy13
August 8th, 2011, 02:19 AM
Hi all, hope you all can help. I just installed Natty inside of VMware and eth0 for one was missing from my /etc/network/interfaces file and for two it doesn't work no matter what I've tried.

From vmware side I've tried setting the network connection type to Bridged and NAT. I've tried several /etc/init.d/networking restart commands. I've also tried both static and dhcp options in the interfaces file.

Dhclient returns instantly. I can ping and use nslookup but I can't load websites.

HELP?!?! :( :(

lmarmisa
August 8th, 2011, 02:44 AM
Could you post the result of the command ifconfig?. Select NAT in vmware.



luis@UB1104ENG:~$ ifconfig
eth0 Link encap:Ethernet HWaddr 08:00:27:7f:db:1f
inet addr:192.168.2.82 Bcast:192.168.2.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fe7f:db1f/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:173 errors:0 dropped:0 overruns:0 frame:0
TX packets:74 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:20100 (20.1 KB) TX bytes:12119 (12.1 KB)

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:16436 Metric:1
RX packets:56 errors:0 dropped:0 overruns:0 frame:0
TX packets:56 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:5148 (5.1 KB) TX bytes:5148 (5.1 KB)

luis@UB1104ENG:~$

jaywhy13
August 9th, 2011, 04:28 AM
jay@bethel:~$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:0c:29:0c:7a:f3
inet addr:192.168.217.128 Bcast:192.168.217.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fe0c:7af3/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:61 errors:0 dropped:0 overruns:0 frame:0
TX packets:116 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:7403 (7.4 KB) TX bytes:17379 (17.3 KB)
Interrupt:19 Base address:0x2000

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:16436 Metric:1
RX packets:35 errors:0 dropped:0 overruns:0 frame:0
TX packets:35 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:13957 (13.9 KB) TX bytes:13957 (13.9 KB)




jay@bethel:~$ cat /etc/network/interfaces
auto lo
iface lo inet loopback


jay@bethel:~$ cat /etc/resolv.conf
# Generated by NetworkManager
domain localdomain
search localdomain
nameserver 192.168.217.2

lmarmisa
August 9th, 2011, 04:42 AM
Your interface eth0 looks good. Your computer got its IP address and the traffic has no error. The contents of the files /etc/network/interfaces and /etc/resolv.conv seem good too.

If you are not able to load websites, it could be due to a DNS problem.

Type these additional commands and post the results:



route -n
ping -c3 8.8.4.4
ping -c3 google.com
wget www.google.com

jaywhy13
August 9th, 2011, 05:00 AM
login as: jay
jay@192.168.217.128's password:
Welcome to Ubuntu 11.04 (GNU/Linux 2.6.38-10-generic i686)

* Documentation: https://help.ubuntu.com/

Last login: Mon Aug 8 22:26:44 2011 from 192.168.217.1
jay@bethel:~$
jay@bethel:~$ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.217.0 0.0.0.0 255.255.255.0 U 1 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 eth0
0.0.0.0 192.168.217.2 0.0.0.0 UG 0 0 0 eth0
jay@bethel:~$ ping -c3 8.8.4.4
PING 8.8.4.4 (8.8.4.4) 56(84) bytes of data.
64 bytes from 8.8.4.4: icmp_req=1 ttl=128 time=54.2 ms
64 bytes from 8.8.4.4: icmp_req=2 ttl=128 time=56.3 ms
64 bytes from 8.8.4.4: icmp_req=3 ttl=128 time=52.7 ms

--- 8.8.4.4 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2004ms
rtt min/avg/max/mdev = 52.759/54.461/56.352/1.472 ms
jay@bethel:~$ ping -c3 google.com
PING google.com (74.125.229.114) 56(84) bytes of data.
64 bytes from 74.125.229.114: icmp_req=1 ttl=128 time=40.1 ms
64 bytes from 74.125.229.114: icmp_req=2 ttl=128 time=39.0 ms
64 bytes from 74.125.229.114: icmp_req=3 ttl=128 time=38.2 ms

--- google.com ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 11150ms
rtt min/avg/max/mdev = 38.213/39.168/40.198/0.812 ms
jay@bethel:~$ wget www.google.com
--2011-08-08 22:56:37-- http://www.google.com/
Resolving www.google.com... 74.125.229.84, 74.125.229.80, 74.125.229.81, ...
Connecting to www.google.com|74.125.229.84|:80... failed: Connection timed out.
Connecting to www.google.com|74.125.229.80|:80...


Figure it will continue to fail

lmarmisa
August 9th, 2011, 05:27 AM
The two ping commands worked fine. The interface eth0 and the DNS client of you Ubuntu virtual machine look good. I believe that the problem is external to Ubuntu.

What OS are you using in your host (XP, Vista, Windows 7)?. Are you using a firewall there?. Maybe the firewall is cutting the http traffic because you have not given permissions to VMware. Try to disable the firewall and check if the command wget is completed.

jaywhy13
August 9th, 2011, 06:00 AM
I'm running windows 7, I tried disabling my firewall. Nothing :( Wget still times out.

lmarmisa
August 9th, 2011, 06:20 AM
Do you have a router with a http interface in your LAN?. If so, change the interface to Bridged and check if you are able to connect to the router (or to any other web server in your LAN) using Firefox from Ubuntu.

I have used VirtualBox but I have no experience with VMware. According to the previous commands I think that the problem has its origin in the host or in the router. I believe that Ubuntu is not guilty.

jaywhy13
August 9th, 2011, 10:09 AM
How would I go about "connecting" to the router though. I have two different setups. I work from home / work. Both places I have a wireless router, running Windows 7 Premium btw.

When I set the network to bridged I never get an IP.

lmarmisa
August 9th, 2011, 06:24 PM
How would I go about "connecting" to the router though. I have two different setups. I work from home / work. Both places I have a wireless router, running Windows 7 Premium btw.

Both networks (home and work) have computers running Windows 7 Premium playing the role of wireless router. If so, they do not provide any web interface for the routing configuration. Therefore, forget my proposal.

I suppose that your host is a different computer from those routers.




When I set the network to bridged I never get an IP.

According to your previous comments, you are using wireless. So, try to select a wireless bridged adapter in the VMware network setup. You have probably selected a wired adapter. In this case you are connecting your virtual machine using the wired adapter and this is reason because you do not get any IP.

Two questions:

1) Are you able to load web sites normally from your host machine?.

2) Have you some web, ftp or file server in your LAN?. I would like to test the TCP connections between your Ubuntu virtual machine and other computer of your LAN.