The wired internet connection by default is configured properly in Ubuntu installation. We can directly dial-up via sudo pppoeconf, or connect to a cable which already on internet. But sometimes wired connection stop working because of kernel upgraded, installed a special program, or even something to do with wireless.
Here’s a solution that fixed my wired problem while I was trying access internet via a router(that has already access to internet) and before I directly pppoe dial-up. It also works for kernel upgrade reason, but not sure for every situation.
1.) First run
ifconfig -a
and the problem’s always that no assigned ip from cable on eth0. Use
sudo dhclient eth0
and it works again, but it stops working after reboot.
2.) Edit the file “/etc/network/interfaces” and change it looks like this:
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet dhcp
BTW: if you have the wireless connection up, that might interfere with wired connection, you can try wicd-network-manager(available in Ubuntu Software Center) to configure the wireless connection.



Adam Reply:
September 13th, 2011 at 1:51 pm
As soon as I hit submit on my question above, the process ended with the following error:
SIOCSIFADDR: No such device
Auto: ERROR while getting interface flags: No such device
Auto: ERROR while getting interface flags: No such device
[Reply]
tsedoo Reply:
January 16th, 2012 at 9:12 am
how did you solve this problem ?
We are having problem like this can you help us ?
[Reply]