I'm new to Linux but liking it so far. My symptom is that I have a machine which dual boots WinXP and Ubuntu -- internet works on WinXP, not on Ubuntu.
Some specs: Ubuntu 11.10; AMD Athlon 64 processor; Network Interface Card by Realtek (RTL-8139/8139C/8139C+); cable modem by Scientific Atlanta (2100R2).
The connectivity is Cable > Modem > PC (by DSL)
The first times I booted into Ubuntu from CD, could not connect to internet. After installing on HDD, and booting (not from CD), internet worked once, and never again.
Searching around, I decided to try editing
Used to read:
auto lo iface lo inet loopback
Based on posts, I decide to change it to
auto lo eth0 iface eth0 inet dhcp iface lo inet loopback
sudo /etc/init.d/networking restart
This gives me a message about the command being deprecated, and then hangs so I kill it. I reboot and now in the splash screen I see "Waiting for network configuration" then "Waiting up to 60 seconds for network configuration" then "Booting without full network configuration".
Reading more online, I decide to keep
/etc/network/interfaces the same, and edit file
[main] plugins=ifupdown,keyfile [ifupdown] managed=true # It was originally false
This changed nothing.
When I run the command
eth0 Link encap:Ethernet HWaddr 00:14:2a:03:f0:77 inet6 addr: fe80::214:2aff:fe03:f077/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:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) Interrupt:22 Base address:0xdf00 eth0:avahi Link encap:Ethernet HWaddr 00:14:2a:03:f0:77 inet addr:169.254.7.133 Bcast:169.254.255.255 Mask:255.255.0.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 Interrupt:22 Base address:0xdf00 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:488 errors:0 dropped:0 overruns:0 frame:0 TX packets:488 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:38880 (38.8 KB) TX bytes:38880 (38.8 KB)
I find it weird that I have no inet address for first entry for eth0, and why two entries? Actually, I don't know if that's unusual. Reading further, I decided to try to force a static ip address, you can tell me if that makes no sense. I changed
/etc/network/interfaces to read:
auto lo iface lo inet loopback address 127.0.0.1 netmask 255.0.0.0 auto eth0 iface eth0 inet static address 126.96.36.199 netmask 255.255.255.0 gateway 188.8.131.52
and reboot. This didn't help a bit. Been searching everywhere. DHCP is supposed to just 'work'. What else to do?
A bit more info: when I run
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface default * 0.0.0.0 U 1002 0 0 eth0 link-local * 255.255.0.0 U 0 0 0 eth0
And when I run
sudo lshw -class network:
*-network description: Ethernet interface product: RTL-8139/8139C/8139C+ vendor: Realtek Semiconductor Co., Ltd. physical id: 5 bus info: pci@0000:02:05.0 logical name: eth0 version: 10 serial: 00:14:2a:03:f0:77 size: 10Mbit/s capacity: 100Mbit/s width: 32 bits clock: 33MHz capabilities: pm bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation configuration: autonegotiation=on broadcast=yes driver=8139too driverversion=0.9.28 duplex=half latency=64 link=yes maxlatency=64 mingnt=32 multicast=yes port=MII speed=10Mbit/s resources: irq:22 ioport:df00(size=256) memory:fddff000-fddff0ff
Well, I am mucking around in things I don't understand. Time to ask: any help is much appreciated! I am teachable.