UbuntuThis forum is for the discussion of Ubuntu Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I recently installed Ubuntu 7.04 on my Acer Aspire 3003WLMi. After booting, the network tool next to the clock says: "Connection Established - You are now connected to the wired network." However, Firefox, for example, gives me 404 errors.
This is the output of ifconfig:
Code:
eth0 Link encap:Ethernet HWaddr 00:C0:9F:D2:E0:53
inet6 addr: fe80::2c0:9fff:fed2:e053/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:63 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:3 Base address:0x1800
eth0:avah Link encap:Ethernet HWaddr 00:C0:9F:D2:E0:53
inet addr:169.254.9.148 Bcast:169.254.255.255 Mask:255.255.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:3 Base address:0x1800
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:1048 errors:0 dropped:0 overruns:0 frame:0
TX packets:1048 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:81676 (79.7 KiB) TX bytes:81676 (79.7 KiB)
I know Windoze uses the 169.254. range for when it can't get a DHCP lease and there's no static IP set... I'm going to assume Ubuntu does the same (haven't got one handy that I can test it on)
In which case, what it your network configuration? Do you have a router/modem that should be handing our DHCP addresses to your network?
I know Windoze uses the 169.254. range for when it can't get a DHCP lease and there's no static IP set... I'm going to assume Ubuntu does the same (haven't got one handy that I can test it on)
In which case, what it your network configuration? Do you have a router/modem that should be handing our DHCP addresses to your network?
Yes, a router, and using the same cable, my desktop machine on which I'm writing this has no problems connecting.
Interesting... What IP address / subnet / gateway does your desktop have set when it's plugged in and working?
Can you try manually setting the same settings to your laptop and see if that works? If it does, then there's just a problem with getting a DHCP lease for some reason, if it still doesn't work, then it's something more annoying :P
Just to be clear - does your desktop have a Static IP address or does it DHCP from the router?
$ sudo ifdown eth0
There is already a pid file /var/run/dhclient.eth0.pid with pid 134993416
Internet Systems Consortium DHCP Client V3.0.4
Copyright 2004-2006 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
Listening on LPF/eth0/00:c0:9f:d2:e0:53
Sending on LPF/eth0/00:c0:9f:d2:e0:53
Sending on Socket/fallback
$ sudo ifup eth0
Message from syslogd@athos at Mon Jun 18 03:48:27 2007 ...
athos kernel: [14649.728000] Disabling IRQ #3
There is already a pid file /var/run/dhclient.eth0.pid with pid 134993416
Internet Systems Consortium DHCP Client V3.0.4
Copyright 2004-2006 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
Listening on LPF/eth0/00:c0:9f:d2:e0:53
Sending on LPF/eth0/00:c0:9f:d2:e0:53
Sending on Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 6
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 13
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 9
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
Well your route table with the static IP address looks good - you still can't ping google.com with that setup?
Interesting that it's not getting the DHCP offer, while your desktop gets it fine on the same cable... I can't remember if Ubuntu comes with iptables enabled by default, but try this:
Well your route table with the static IP address looks good - you still can't ping google.com with that setup?
Interesting that it's not getting the DHCP offer, while your desktop gets it fine on the same cable... I can't remember if Ubuntu comes with iptables enabled by default, but try this:
Code:
sudo /etc/init.d/iptables stop
sudo dhclient eth0
EDIT: spelling
Still can't ping google.com. There is no such file (/etc/init.d/iptables) on my system.
I just realized the commands I gave were for DHCP enabled. If you are just trying to get online open your network settings and select "automatic configuration (DHCP)". Then try those commands again.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.